Unity Issue Tracker - Crash on -[NSApplication _crashOnException:] when opening a specific custom Editor window
Closed
UUM-67205
Crash on -[NSApplication _crashOnException:] when opening a specific custom Editor window
Unity: Metal
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2023.2.X
Unity 6000.2 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Cancelling: the 6000.1 version has reached its end of life. If you need additional fixes, please upgrade to a newer Unity version.
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
Reproduction steps:
1. Open the attached project “ReproProj”
2. Set the Editor layout to default (Window > Layout > Default)
3. Open the Menu item “[MENUPATH]”
Expected result: The window is opened
Actual result: The Editor crashes
Reproducible with: 2023.2.15f1, 6000.0.0b12
Could not test with: 2021.3.36f1, 2022.3.22f1 (Various script errors)
Reproducible on: macOS 14.3.1 (M1 Max)
Not reproducible on: Windows 10
Note: Doesn’t crash if the layout is not reset
First few lines of the stack trace:
#0 0x000001889f733c in -[NSApplication _crashOnException:]
#1 0x4d34000188844c8c in __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke
#2 0x714b8001891faf04 in ___NSRunLoopObserverCreateWithHandler_block_invoke
#3 0xf973000184f3ed80 in CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
#4 0xf818000184f3ec6c in __CFRunLoopDoObservers
#5 0xd7b000184f3e29c in __CFRunLoopRun
#6 0xa452000184f3d93c in CFRunLoopRunSpecific
#7 0xe85100018f506448 in RunCurrentEventLoopInMode
Prioritise and Follow this issue
Have a workaround or additional info about this issue?