-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
REGRESSION: wgpu panic BadDisplay
after winit 0.30 on Wayland OpenGL
#13923
Comments
FWIW I can reproduce this exact same behavior on x86. This is gfx-rs/wgpu#5505. |
BadDisplay
after winit 0.30 on Asahi Linux OpenGLBadDisplay
after winit 0.30 on Wayland OpenGL
Reproduced on nixos x86 with AMD graphiscs. I am using a dev-shell so adding |
SystemInfo { os: "Linux 23.10 Ubuntu", kernel: "6.5.0-44-generic", cpu: "Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz", core_count: "4", memory: "11.5 GiB" } by default : bevy choose : what works for me : with a terrible performance and this warning : |
I would try this and see if it resolves the issue for you: sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt-get update
sudo apt-get upgrade I was having a similar issue when using an NVIDIA GPU + Vulkan (although I was falling back to llvmpipe) and the solution was to install newer mesa drivers. |
I think my device primarily supports Opengl I did update the mesa drivers although my Ubuntu version is 23.10 Bionic (18.04) - Discontinued - Long term users can use kisak-mesa stable
|
Bevy version
I first found the bug when trying the 0.14 release candidates. I ran a git bisect and tracked down the problem to the commit which updated bevy to use winit 0.30. So all Bevy versions that are based on winit 0.30 are affected.
Bevy 0.13.x (and commits before the winit 0.30 update) are not affected.
Relevant system information
Asahi does not have a GPU Vulkan driver yet (though probably will soon…) and this bug makes Bevy unusable.
What you did
Run any bevy app or example.
You need
--features wayland
andWGPU_BACKEND=gl
to run Bevy on Asahi. Bevy chooses CPU Vulkan over OpenGL by default for some reason, and X11 with Gl backend does not work.What went wrong
Bevy immediately crashes with various systems in the Render schedule panicking. The panic comes from
wgpu
unwrapping aBadDisplay
error related to callingeglMakeCurrent
. Something must be going wrong with how winit and wgpu interact in Bevy.Additional Information
winit 0.30.2 is broken on aarch64 and does not compile. winit 0.30.0, 0.30.1, and git main, compile successfully. You have to force cargo to use one of those versions, in order to compile bevy successfully and to reproduce this bug.
The text was updated successfully, but these errors were encountered: