Skip to content

Workaround a crash in macOS tahoe 26 / xcode 16.4+ #20146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArthurBrussee
Copy link
Contributor

Objective

Workaround a crash in macOS tahoe 26, and newer xcode versions.

Fixes #19625, and see #19567

Solution

Disable debug assertions in objc2 untl winit has a new release enabling a more precise workaround.

Testing

cargo run --example breakout goes from crashing to working fine on the macOS tahoe beta.

Alternative

A beta is a beta so maybe it's just not supported and we should just wait for the winit update. madsmtm/objc2#765 (comment) implies that an incoming xcode update has the same issue however so it might be more urgent.

@BD103 BD103 added C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash O-MacOS Specific to the MacOS (Apple) desktop operating system C-Dependencies A change to the crates that Bevy depends on A-Cross-Cutting Impacts the entire engine labels Jul 15, 2025
@BD103
Copy link
Member

BD103 commented Jul 15, 2025

As a small note: the advisories CI failure is unrelated to this PR, so it can be ignored.

@BD103 BD103 added this to the 0.17 milestone Jul 17, 2025
@BD103
Copy link
Member

BD103 commented Jul 17, 2025

I think this should be included in 0.17. It's a small change, and we don't want to crash on platforms we will need to support in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Cross-Cutting Impacts the entire engine C-Bug An unexpected or incorrect behavior C-Dependencies A change to the crates that Bevy depends on O-MacOS Specific to the MacOS (Apple) desktop operating system P-Crash A sudden unexpected crash
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Objc2 framework panics on MacOS 26 developer beta
2 participants