winit: Bus error when changing cursor
Pressing the space bar seven times in the cursor example causes the program to crash with a bus error on macOS Sonoma 14.2.
- Run the example.
$ git checkout v0.29.4 $ cargo run --example cursor - Focus the example window.
- Press the space bar seven times (trying to load CursorIcon::Help).
- The program crashes.
Setting cursor to "Help" TRACE [winit::platform_impl::platform::view] Triggered `resetCursorRects` TRACE [winit::platform_impl::platform::view] Completed `resetCursorRects` [1] 9362 bus error cargo run --example cursor
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 17 (7 by maintainers)
Ha, same.
“Bus error” usually means an operation was given an invalid argument, such as an address that doesn’t meet the instruction’s alignment requirements. It happens sometimes when pointers get corrupted. If this one ever gets cleared up, I’ll let you know (but it’s a mystery to me, too). Thanks anyway for the quick response.