lldb hangs 1-2s whenever I press Ctrl+key or Cmd+key for the first time on Mac (since winit v0.30) #14010
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
O-MacOS
Specific to the MacOS (Apple) desktop operating system
S-Blocked
This cannot move forward until something else changes
Bevy version
Present on v0.14.0-rc.3, not present on v0.13.2. I've bissected this to commit 061bee7, which fixes #13366 "fix: upgrade to winit v0.30".
[Optional] Relevant system information
Mac M1 Sonoma
What you did
When I debug my app via vscode (which uses lldb), I noticed that the first time I press Ctrl+key or Cmd+key, my app always hangs for 1-2 seconds: the window does not respond, and the Bevy main loop hangs during this time. (Things like .just_pressed are also broken -- the key eventually gets "pressed" without ever triggering "just_pressed")
Things run normally
What went wrong
I was expecting the app not to hang when I press shortcuts.
Additional information
I used this to reproduce the bug:
cargo build --example empty_defaults && lldb -o run target/debug/examples/empty_defaults
This builds the empty defaults example (a simple empty window) and runs it with the lldb debugger. As soon as the window appears, I press a random Ctrl+key shortcut, e.g. Ctrl+L, and the following happens:
I've bisected into winit, and this issue seems to have been introduced in rust-windowing/winit#3231 , which adds the "Services menu" feature to the app on Mac.
The text was updated successfully, but these errors were encountered: