Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X server found. dri2 connection failed! #17

Open
cedws opened this issue Jun 21, 2019 · 4 comments
Open

X server found. dri2 connection failed! #17

cedws opened this issue Jun 21, 2019 · 4 comments

Comments

@cedws
Copy link

cedws commented Jun 21, 2019

I'm trying to run the tests for the arithmetic example (env RUST_BACKTRACE=1 cargo test), but am getting undefined behaviour. In most cases a double free is detected and the program crashes:

running 2 tests
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
double free or corruption (top)
error: process didn't exit successfully: `/home/cedwards/git/emu/examples/arithmetic/target/debug/deps/arithmetic-8e93e645dd4fd0c6` (signal: 6, SIGABRT: process abort signal)
@calebwin
Copy link
Owner

The tests work fine for me on my Ubuntu VMware VM running on Windows 10 Intel i7 so.. maybe it's an issue with your setup? Emu uses OpenCL behind the scenes - do you know if you can successfully run OpenCL programs from your computer?

This might be relevant - https://bugzilla.redhat.com/show_bug.cgi?id=1460400

@cedws
Copy link
Author

cedws commented Jun 22, 2019

This is a bit of a weird one. I saw a comment noting that it can have issues when a Wayland compositor is running, so I closed the compositor and ran the tests from the TTY. I got equally bad UB, but no X server found. dri2 connection failed! error. Sometimes the tests would pass, sometimes they'd fail and the program would display the same double free or corruption (top) error.
If you're not sure what's going on then it's probably an issue at a lower level. Feel free to close this, I'm out of ideas and I don't have too much time to invest into trying this out.

@calebwin
Copy link
Owner

That's really strange. What I would try next is seeing if OpenCL works by trying to run one of the examples in https://github.com/cogciprocate/ocl. If that doesn't work, then the problem really is just OpenCL.

@cedws
Copy link
Author

cedws commented Jun 25, 2019

I've tried a few examples in that repository, by running for instance cargo run --example basic. The X server found. dri2 connection failed! warning still appears when a Wayland compositor is running, but the program does not segfault. The program continues running as normal it appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants