-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Crash due to wgpu during startup on Wayland #14494
Comments
Looks like winit is using the X11 backend. Maybe something with XWayland is broken on your machine. What happens when you enable bevy's |
I'll try it and get back to you in a week or so, I'm away from my desktop ATM. But even if it solves the issue, that would mean I need to provide two binaries for Linux distribution which is not ideal. |
That's not how that works. You can have both features enabled. Bevy will prefer Wayland but seamlessly fall back to X11 as needed. |
Oh, okay I'll try and let you know then. Btw, why isn't it enabled by default then? |
Because there has historically always been some kind of problem on Wayland affecting a portion of users. Sometimes it's our fault (gfx-rs/wgpu#5505), sometimes not (gfx-rs/wgpu#4775). On the other hand though, there have also been issues that were solved by turning the Wayland feature on (maybe yours is one of those), so it's hard to say. I will personally try to push for Wayland-By-Default once gfx-rs/wgpu#5505 gets resolved. Hopefully nothing else "major" crops up until then. |
Enabling
|
Ohh you don't have a Vulkan driver. Native Wayland is currently broken on OpenGL (as linked in my previous comment). You might want to install NVK given you're not using the proprietary drivers? |
Installing the driver fixed the issue 🥳 Though if there is a way to improve the error messages, they should be improved IMO. Like detecting OpenGL is being tried to be used in Wayland and logging an error saying it's not supported. Thanks! |
Bevy version
v0.14.0
Relevant system information
What you did
What went wrong
Additional information
Let me know if anything else is needed!
The text was updated successfully, but these errors were encountered: