-
-
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
Bevy freezes on Wayland #10546
Comments
Same thing happening to me using KDE Wayland, rust 1.76.0, and bevy main. |
Can confirm that this happens for me using Hyprland on Arch using bevy 0.13, with Nvidia 550 drivers. All bevy apps/examples (eg. breakout) completely freeze when enabling the |
I suspect this is gfx-rs/wgpu#4775 (fixed in gfx-rs/wgpu#4967). I've made a fork of wgpu 0.19 that includes this fix here. [patch.crates-io]
wgpu = { git = "https://github.com/Friz64/wgpu.git", branch = "v0.19-4967" }
wgpu-types = { git = "https://github.com/Friz64/wgpu.git", branch = "v0.19-4967" }
naga = { git = "https://github.com/Friz64/wgpu.git", branch = "v0.19-4967" } Adding this to the bottom of bevy's Cargo.toml (or any bevy project's Cargo.toml) should fix the issue. Can anyone confirm this? |
FWIW the linked bug mentions that NVIDIA has fixed the issue in their drivers causing it. I can run the example just fine without the original issue with driver version 550.76. |
@AndrewDanial has confirmed that this fixes the issue for him on the discord. |
This was fixed by #13186 and can be closed. |
Bevy version
Tested both 0.12 and commit
18d001d27ce475388743d9825f2833ce51f5b20d
(current main as of writing)[Optional] Relevant system information
Arch Linux, Hyprland compositor v0.30.0, laptop with AMD / Nvidia hybrid graphics.
What you did
In
bevy/examples
, runcargo run --example button --features wayland
, and attempt to press the buttonWhat went wrong
The button does not highlight on hover or clicking as expected. The cursor is stuck on the "text entry" cursor. The window does not respond to window closing, and must be closed via Ctrl+C from the console.
If I add a simple system that prints on update, the system only prints 5 times before stopping.
Additional information
Removing the
wayland
feature from bevy fixes the issue.Output of
env RUST_LOG=debug cargo run --example button --features wayland
(unfortunately includes coloring escape sequences): log.txtThe text was updated successfully, but these errors were encountered: