emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.61k stars 1.62k forks source link

Eframe unusable when rendering with WGPU backend on Wayland #3924

Open anantnrg opened 10 months ago

anantnrg commented 10 months ago

Describe the bug

When running eframe with the wgpu and wayland features enabled, the result window is unresponsive to any mouse or keyboard events. Running with glow works perfectly fine as intended.

To Reproduce Steps to reproduce the behavior:

  1. Clone emilk/eframe_template repo.
  2. Open Cargo.toml
  3. Change glow in eframe features to wgpu
  4. Add wayland feature to eframe
  5. Run with cargo run
  6. Try clicking or typing anything.

Expected behavior App should work as expected like when using the Glow backend.

Desktop (please complete the following information):

Friz64 commented 10 months ago

Are you on NVIDIA, by chance? I presume this is https://github.com/gfx-rs/wgpu/issues/4775. A fix for this has already been implemented in wgpu, and will most likely be released in the next major version (0.20).

anantnrg commented 10 months ago

@Friz64 yes, I have an Nvidia GTX 1060. I'll test it once the new release of wgpu comes out. Maybe that'll solve it.

Wumpf commented 2 months ago

@anantnrg it's been a few updates by now, did you try again?