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.

  1. Run the example.
    $ git checkout v0.29.4
    $ cargo run --example cursor
    
  2. Focus the example window.
  3. Press the space bar seven times (trying to load CursorIcon::Help).
  4. 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)

Most upvoted comments

I’m not really experienced with system recovery sadly, all I know is how to run the Disk Utility to check for corruption 😕

Ha, same.

Though that the error is a bus error, and not a segmentation fault, may point to faulty hardware? But again, very unsure on this.

“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.