Skip to content

Crash on 0.30.1+ when creating immediate child viewports #3800

@ArthurBrussee

Description

@ArthurBrussee

Description

Hiya! I've been doing some work for a winit upgrade for egui (emilk/egui#4849), but, it seems that this commit has introduced a crash on macOS. The multiple_viewports example spawns a immediate child viewport, but on macOS this crashes with:

Segmentation fault: 11

It seems some precondition of retain is violated (though it's a safe function? Is objc2 wrong? Really above my paygrade I'm afraid!)

Screenshot 2024-07-19 at 01 04 30

This might already be fixed in 0.31.0 as I think the code in that area has changed a bit, but either way wanted to let you know.

macOS version

ProductName:		macOS
ProductVersion:		14.5
BuildVersion:		23F79

Winit version

0.30.0 works, 0.30.1+ crashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedB - regressionDS - appkitAffects the AppKit/macOS backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions