Skip to content

eframe+wgpu freezes on Windows on language switch #5854

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

Open
Awpteamoose opened this issue Mar 28, 2025 · 2 comments
Open

eframe+wgpu freezes on Windows on language switch #5854

Awpteamoose opened this issue Mar 28, 2025 · 2 comments
Labels
bug Something is broken native-windows Running on native Windows OS

Comments

@Awpteamoose
Copy link

Describe the bug
Using wgpu feature for eframe, like in the hello_world example:

--- a/examples/hello_world/Cargo.toml
+++ b/examples/hello_world/Cargo.toml
@@ -15,4 +15,5 @@
 eframe = { workspace = true, features = [
     "default",
+    "wgpu",
     "__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO
 ] }

When I switch languages with alt+shift+1/2/3/4/5 (I have 5 languages) - my application freezes.

To Reproduce

  1. Set up several languages in Windows with alt-shift-number hotkeys (e.g. english for 1 and russian for 2)
  2. Run an egui app (an empty fn update(...) also works) with eframe using wgpu backend
  3. Change language via alt+shift+1/2 (has to be a different to the one currently active)

Expected behavior
Language changes, egui doesn't freeze.

Screenshots

hello_world_LsQYYCkjrB.mp4

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
May be related to #3739 - I don't know enough about egui/eframe/winit internals or Windows event loop handling to know for sure, but I suspect it's not related to changing language specifically.

@Awpteamoose Awpteamoose added the bug Something is broken label Mar 28, 2025
@lucasmerlin
Copy link
Collaborator

Can you try running the examples in the winit and wgpu repos to check whether this is a issue with eframe or one of those crates?

@lucasmerlin lucasmerlin added the native-windows Running on native Windows OS label Apr 8, 2025
@Awpteamoose
Copy link
Author

Awpteamoose commented Apr 8, 2025

Yep, winit's examples are fine, wgpu's examples freeze in the same way.

Reported to them: gfx-rs/wgpu#7492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken native-windows Running on native Windows OS
Projects
None yet
Development

No branches or pull requests

2 participants