When saving the scene in Unity 2022.2.17 (apple silicon) on m1 pro macOS 13.3.1(a) the Unity Editor freezes relatively frequently (every 30~ minutes). Unfortunately because it’s a freeze and not a “crash” there is no Unity bug report window I can fill out.
When I force quit the frozen editor after a few minutes the Mac crash reporter window gives me some information. I don’t really know what to do with it, and it’s super long with hundreds of pages of stack traces etc.
It does mention the Unity Hub though Responsible: Unity Hub [76301] [unique pid 374398]
, but I don’t know what that means.
Short snippet of crash reporter output:
Date/Time: 2023-05-17 12:48:02.894 +0200
End time: 2023-05-17 12:48:03.966 +0200
OS Version: macOS 13.3.1 (Build 22E772610a)
Architecture: arm64e
Report Version: 40
Incident Identifier: 8DC81A0D-8A79-4AE5-BAB9-FA43CD6261DB
Data Source: Stackshots
Shared Cache: A52A6D6B-AD23-3F37-B4F1-4B6316ACD74C slid base address 0x186544000, slide 0x6544000 (System Primary)
Shared Cache: E990E3C2-0315-350B-ABEA-EA4F4343CD14 slid base address 0x1bbff8000, slide 0x3bff8000 (DriverKit)
Shared Cache: B81581AE-FF6F-3644-8C21-C969AC66F1FA slid base address 0x7ff800e6c000, slide 0xe6c000 (Rosetta)
Command: Unity
Path: /Applications/Unity/*/Unity.app/Contents/MacOS/Unity
Identifier: com.unity3d.UnityEditor5.x
Version: Unity version 2022.2.17f1 (2022.2.17f1)
Team ID: BVPN9UFA9B
Is First Party: No
Architecture: arm64
Responsible: Unity Hub [76301] [unique pid 374398]
PID: 82599
Time Since Fork: 297s
Event: hang
Duration: 1.07s
Steps: 11 (100ms sampling interval)
Hardware model: MacBookPro18,3
Active cpus: 10
HW page size: 16384
VM page size: 16384
Time Since Boot: 1038000s
Time Awake Since Boot: 281189s
Time Since Wake: 2234s
Fan speed: 2329 rpm
Total CPU Time: 2.478s (4.0G cycles, 5.9G instructions, 0.68c/i)
Advisory levels: Battery → 3, User → 2, ThermalPressure → 0, Combined → 2
Free disk space: 423.33 GB/926.35 GB, low space threshold 3072 MB
Vnodes Available: 77.76% (204641/263168)
Preferred User Language: en-AU
Country Code: AU
Keyboards: Australian, USInternational-PC
OS Cryptex File Extents: 108
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
Heaviest stack for the main thread of the target process:
11 start + 2236 (dyld + 24360) [0x1865ebf28]
11 main + 12 (Unity + 45263324) [0x10761a9dc]
11 EditorMain(int, char const**) + 964 (Unity + 45262496) [0x10761a6a0]
11 NSApplicationMain + 880 (AppKit + 14760) [0x189c0a9a8]
11 -[NSApplication run] + 464 (AppKit + 181592) [0x189c33558]
11 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 (AppKit + 229620) [0x189c3f0f4]
11 _DPSNextEvent + 636 (AppKit + 233304) [0x189c3ff58]
11 _BlockUntilNextEventMatchingListInModeWithFilter + 76 (HIToolbox + 199048) [0x190255988]
11 ReceiveNextEventCommon + 220 (HIToolbox + 199300) [0x190255a84]
11 RunCurrentEventLoopInMode + 292 (HIToolbox + 200180) [0x190255df4]
11 CFRunLoopRunSpecific + 612 (CoreFoundation + 513420) [0x186a2058c]
11 __CFRunLoopRun + 1852 (CoreFoundation + 517148) [0x186a2141c]
11 __CFRunLoopDoTimers + 356 (CoreFoundation + 625804) [0x186a3bc8c]
11 __CFRunLoopDoTimer + 940 (CoreFoundation + 626996) [0x186a3c134]
11 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32 (CoreFoundation + 627852) [0x186a3c48c]
11 __NSFireTimer + 104 (Foundation + 611640) [0x1879d1538]
11 -[EditorApplication TickTimer] + 328 (Unity + 45162404) [0x107601fa4]
11 Application::TickTimer() + 4048 (Unity + 25614356) [0x10635d814]
11 PlayerLoopController::UpdateSceneIfNeededFromMainLoop() + 92 (Unity + 25625168) [0x106360250]
11 PlayerLoopController::InternalUpdateScene(bool, bool) + 996 (Unity + 25656296) [0x106367be8]
11 GUIView::RepaintAll(bool) + 464 (Unity + 45246596) [0x107616884]
11 GUIView: oPaint() + 136 (Unity + 45245912) [0x1076165d8]
11 -[GUIMetalView drawRect:] + 256 (Unity + 45291484) [0x1076217dc]
11 GUIView::BeginCurrentContext() + 88 (Unity + 45247840) [0x107616d60]
11 ThreadedWindow::BeginRendering() + 36 (Unity + 15391744) [0x10599dc00]
11 GfxDeviceClient::BeginRendering(ClientDeviceWindow*) + 60 (Unity + 15368488) [0x105998128]
11 GfxDeviceClient::WaitForPendingPresent() + 132 (Unity + 15331876) [0x10598f224]
11 Semaphore::WaitForSignal(int) + 188 (Unity + 5961648) [0x10509f7b0]
11 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 28 (Unity + 45955424) [0x1076c3960]
11 _dispatch_semaphore_wait_slow + 132 (libdispatch.dylib + 20560) [0x186795050]
11 semaphore_wait_trap + 8 (libsystem_kernel.dylib + 3728) [0x186903e90]
*11 ??? (kernel.release.t6000 + 613540) [0xfffffe0008459ca4]
Process: Unity [82599] [unique pid 380694]
UUID: 69085FA3-3088-374A-BC9F-96CBA26CA8C2
Path: /Applications/Unity/*/Unity.app/Contents/MacOS/Unity
Identifier: com.unity3d.UnityEditor5.x
Version: Unity version 2022.2.17f1 (2022.2.17f1)
Team ID: BVPN9UFA9B
Is First Party: No
Shared Cache: A52A6D6B-AD23-3F37-B4F1-4B6316ACD74C slid base address 0x186544000, slide 0x6544000 (System Primary)
Architecture: arm64
Responsible: Unity Hub [76301] [unique pid 374398]
Footprint: 2778.43 MB
Time Since Fork: 297s
Num samples: 11 (1-11)
CPU Time: 0.011s (18.5M cycles, 7.0M instructions, 2.65c/i)
Note: 1 idle work queue thread omitted
I tried moving up to 2022.2.19 but it didn’t help unfortunately.
It seems when I save the scene the changes are saved because when I relaunch all my changes exist, some somehow it’s happening near the end/after the actual data on disk part. The UI never updates to reflect though, the asterisk is still shown next to the scene name above the hierarchy window.
I have found a solution. It might be too late though. This is a bug present only on MacOS, if you have VSync enabled in game view the editor pretty consistanly crashes when:
Saving scene
Reloading script
Entering/exiting play mode
To avoid crashes start play mode, turn on vsync, play test, turn off vsync and stop play mode. I hope this helps!