Bevy freezes on Wayland
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## 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`, run `cargo run --example button --features wayland`, and attempt to press the button
## What 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.txt](https://github.com/bevyengine/bevy/files/13340572/log.txt)
Contributor guide
Research direction
Reproduce the freeze with `cargo run --example button --features wayland` from `bevy/examples` on the reported Wayland setup, and review the linked `log.txt` output. Compare behavior with the Wayland feature removed; done means the button responds to hover and clicks, the window closes normally, and the update system does not stop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- desktop-dev, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100