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

Winit Error when running Example on Ubuntu 19.04 #70

Closed
cetra3 opened this issue Nov 25, 2019 · 4 comments · Fixed by #354
Closed

Winit Error when running Example on Ubuntu 19.04 #70

cetra3 opened this issue Nov 25, 2019 · 4 comments · Fixed by #354
Labels
bug Something isn't working
Milestone

Comments

@cetra3
Copy link

cetra3 commented Nov 25, 2019

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,
    }
@hecrj
Copy link
Member

hecrj commented Nov 26, 2019

Thanks for the report!

I found rust-windowing/winit#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!

@hecrj hecrj added the bug Something isn't working label Nov 26, 2019
@hecrj hecrj added this to the 0.2.0 milestone Nov 26, 2019
@cetra3
Copy link
Author

cetra3 commented Nov 26, 2019

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

@hecrj hecrj modified the milestones: 0.2.0, 0.1.0 Nov 26, 2019
@cetra3
Copy link
Author

cetra3 commented Nov 27, 2019

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:

  • Installed vulkan-tools with sudo apt install vulkan-tools
  • Ran vkcube - noticed it turned out black
  • Removed the file at /usr/share/vulkan/icd.d/intel_icd.x86_64.json
  • Ran vkcube again - noticed it worked.

Now the tour works too!

@swiesend
Copy link

swiesend commented Sep 7, 2021

Removing the json helped. I had this problem together with this lines:

MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

[2021-09-07T11:45:27Z ERROR winit::platform_impl::platform] X11 error: XError {
        description: "BadDrawable (invalid Pixmap or Window parameter)",
        error_code: 9,
        request_code: 149,
        minor_code: 4,
    }
thread 'main' panicked at 'Next frame: Timeout', /home/sebastian/develop/rust/iced/wgpu/src/window/compositor.rs:126:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants