Skip to content

Bevy windowing crashes on launch in MacOs 26 #22605

@ElliottjPierce

Description

@ElliottjPierce

Bevy version and features

Just tried out 0.18, default features.

Relevant system information

MacOs 26.2

What you did

Run the clear_color example.

What went wrong

Bevy crashes immediately with:

invalid message send to -[_TtGCs23_ContiguousArrayStorageCSo8NSScreen_$ countByEnumeratingWithState:objects:count:]: expected return to have type code 'q', but found 'Q'
ERROR winit::platform_impl::macos::event_handler: tried to run event handler, but no handler was set

Additional information

This is a bug with winit 0.30.8, I think and it looks like it was fixed in 0.30.12.
A similar issue is emilk/egui#7376 .
And the winit fix is here: rust-windowing/winit#4302

I think we just need to bump the winit version number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorC-StartupA crash that occurs when first attempting to run a Bevy appO-MacOSSpecific to the MacOS (Apple) desktop operating systemP-CrashA sudden unexpected crashS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions