Skip to content

eframe+wgpu freezes on Windows on language switch #5854

Open
@Awpteamoose

Description

@Awpteamoose

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokennative-windowsRunning on native Windows OS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions