Getting the following error when trying to run cargo run --example tour on my Ubuntu 19.04 lappy.
[2019-11-25T23:31:50Z ERROR winit::platform_impl::platform] X11 error: XError {
description: "BadDrawable (invalid Pixmap or Window parameter)",
error_code: 9,
request_code: 149,
minor_code: 4,
}
Thanks for the report!
I found https://github.com/rust-windowing/winit/issues/748 describing the same issue.
It seems the cause may be that your environment does not support Vulkan. You could try running the vkcube example to confirm this.
I am working on an alternative for rendering that should fix some of these issues. I hope I can share something soon!
Ah right, I'm surprised since I'm using the proprietary nvidia drivers. I assume there is a few more packages I would have to install. I'll have a play around and see if I can get it to work
Ok, looks like it's a nvidia Optimus silly issue. It tries to load the intel driver for some reason.
For posterity here are the steps I took to diagnose:
sudo apt install vulkan-toolsvkcube - noticed it turned out black/usr/share/vulkan/icd.d/intel_icd.x86_64.jsonvkcube again - noticed it worked.Now the tour works too!
Most helpful comment
Ok, looks like it's a nvidia Optimus silly issue. It tries to load the intel driver for some reason.
For posterity here are the steps I took to diagnose:
sudo apt install vulkan-toolsvkcube- noticed it turned out black/usr/share/vulkan/icd.d/intel_icd.x86_64.jsonvkcubeagain - noticed it worked.Now the tour works too!