Frequent Crashes after Script Compilation on Unity 6000.0.24f1 with AppUI 2.0.0-pre11 (macOS Ventura 13.0)

Hello,

I’m using Unity version 6000.0.24f1 on macOS Ventura 13.0. After compiling scripts, the Unity editor frequently crashes. I’ve checked the crash logs and the mono_crash.0.0.json file, which contain the following information:

  • Error Message: After [Licensing::Client] Successfully resolved entitlement details, I see objc[58296]: Attempt to use unknown class 0x13d6a2170. followed by a crash.
  • Key Information from mono_crash.0.0.json:
    • native_thread_id: “0x1fcffe500”
    • The unmanaged_frames section includes multiple native addresses, and it appears that the crash is related to the AppUI module.
    • The crash follows the “Attempt to use unknown class” message, with repeated calls to AppUITouchGestureResponder methods in the stack trace.
  • Dependencies: I installed Behavior 1.0.3, which included AppUI 2.0.0-pre11 as a dependency. This version of AppUI seems potentially related to the crash.

Troubleshooting Attempts:

  1. Disabled external plugins one by one, but the crash still occurs.
  2. Deleted the Library folder to reset the cache and rebuilt the project.
  3. Tested on different versions of macOS.
  4. Considering switching to a more stable Unity release.

Request: Has anyone else experienced a similar issue or found a solution? It seems to be related to a compatibility issue with the AppUI module on macOS. If anyone has insights or potential fixes, I’d really appreciate your help!

2 Likes

Im On MacOS Ventura 13.0 and Unity 6000.0.25f1 is crashing every 4-5th compile. I have the behaviour package installed which has the App UI as a dependency

Do you see any similar crash logs mentioning ‘Attempt to use unknown class’ or ‘AppUITouchGestureResponder’?

You might want to check the Unity Editor log file at ~/Library/Logs/Unity/Editor.log for more details on the crash. On macOS, you can access this file by:

  1. Opening Finder.
  2. Selecting Go > Go to Folder… from the top menu.
  3. Entering ~/Library/Logs/Unity/Editor.log and pressing Enter.

In my case, I found that the last few lines in the log mention AppUITouchGestureResponder , which seems to be related to the crashes. I haven’t been able to resolve the issue yet, so I’ve currently removed the Behavior module altogether to avoid these crashes. Let me know if you find anything similar or if you’ve found a workaround!

In my case it did find the AppUITouchGestureResponder class
It seems smth to do with ILPP PostProcessingAssembly or smth of the sort

This is the stack trace

Obtained 46 stack frames.
#0  0x000001a13de290 in lookUpImpOrForward
#1  0x62640001a13ddf64 in _objc_msgSend_uncached
#2  0x73030001097b00cc in AppUITouchGestureResponder* FindResponderInChain<AppUITouchGestureResponder>(NSResponder*)
#3  0x000001097aea40 in ClearKeyWindow()
#4  0x000001097ac6fc in OnKeyWindowChanged()
#5  0x000001097ac4a8 in -[ApplicationObserver observeValueForKeyPath:ofObject:change:context:]
#6  0x000001a27a4540 in NSKeyValueNotifyObserver
#7  0xea0a0001a2854264 in NSKeyValueDidChange
#8  0x3780001a2ccdec0 in NSKeyValueDidChangeWithPerThreadPendingNotifications
#9  0xd52d0001a4b776fc in -[NSApplication _setKeyWindow:]
#10 0xcf008001a525a9d4 in -[NSWindow _orderOut:calculatingKeyWithOptions:documentWindow:]
#11 0xc9180001a4abf230 in NSPerformVisuallyAtomicChange
#12 0x34498001a525c390 in -[NSWindow _reallyDoOrderWindowOutRelativeTo:]
#13 0xbb5c8001a525c728 in -[NSWindow _reallyDoOrderWindow:]
#14 0x9b0c0001a4abf230 in NSPerformVisuallyAtomicChange
#15 0x9a0b0001a525cbdc in -[NSWindow _doOrderWindow:]
#16 0x212480010347f074 in -[ProgressbarController hideWindow]
#17 0x0000010347fb20 in -[ProgressbarNotificationHandler handleClearNotification:]
#18 0x000001a184b180 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
#19 0x81430001a18e6eec in ___CFXRegistrationPost_block_invoke
#20 0xa4258001a18e6e34 in _CFXRegistrationPost
#21 0x7d248001a181c4cc in _CFXNotificationPost
#22 0xbd2e0001a277a8e4 in -[NSNotificationCenter postNotificationName:object:userInfo:]
#23 0xb06f00010347ff64 in ModalProgressBackendMac::Clear()
#24 0x000001025f53f8 in UpdateProgressBarState(bool)
#25 0x000001025f5900 in ProgressScope::PopScope(unsigned long)
#26 0x000001029360dc in LegacyImportProgress::EndMeasuring()
#27 0x0000010285ec58 in StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*, char const*)
#28 0x0000010285f678 in RefreshV2(AssetDatabase::UpdateAssetOptions)
#29 0x0000010281aa50 in AssetDatabase::Refresh(AssetDatabase::UpdateAssetOptions)
#30 0x00000102130c74 in Application::AutoRefresh()
#31 0x0000010346962c in -[EditorApplication applicationDidBecomeActive:]
#32 0x000001a184b180 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
#33 0x5e5e8001a18e6eec in ___CFXRegistrationPost_block_invoke
#34 0xcd348001a18e6e34 in _CFXRegistrationPost
#35 0x2b500001a181c4cc in _CFXNotificationPost
#36 0xb86c8001a277a8e4 in -[NSNotificationCenter postNotificationName:object:userInfo:]
#37 0x9a298001a4bcdf38 in -[NSApplication _handleActivatedEvent:]
#38 0x7b210001a4ba7be0 in -[NSApplication(NSEvent) sendEvent:]
#39 0x10300010347dd58 in -[EditorApplicationPrincipalClass sendEvent:]
#40 0x000001a4df7c48 in -[NSApplication _handleEvent:]
#41 0x53500001a4a6efa0 in -[NSApplication run]
#42 0x68008001a4a463cc in NSApplicationMain
#43 0xd32c80010347e538 in EditorMain(int, char const**)
#44 0x0000010347e894 in main
#45 0x000001a141ff28 in start
Launching bug reporter
e[40me[32minfoe[39me[22me[49m: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...
e[40me[32minfoe[39me[22me[49m: Unity.ILPP.Runner.PostProcessingAssemblyLoadContext[0]
      ALC ILPP context 1 is unloading
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.

We are not experiencing crashing, but I am constantly getting a beach ball and I need to wait couple of seconds, then I get this message “Successfully resolved entitlement details” in Editor.log. This happens on each Play inside the Editor.

Using Unity 6.0.25 and MacOS Sequoia.

It’s very very annoying

Hello @roughdolphdolph,

Sorry for the late reply, we have been able to reproduce the crash on MacOS (Ventura only) and a fix will be available in App UI 2.0.0-pre.13 very soon. Behavior will then upgrade to this version. Thank you for the feedback!

1 Like

Running into the same issue. Leaving a comment to get notified about updates :slightly_smiling_face:

same here - pls notify me when App UI new version with bugfix will be released!
Thank you!

[日本語原文]
似たようなクラッシュを2.0.0-pre.15でも確認しました。
スクリプトの保存時やスクリプトの保存後にGameViewの再生をしようとすると発生することがあります。
macOS MontereyでUnity6(6000.0.23f1)を使用しています。

[Translated text]
I have confirmed a similar crash with 2.0.0-pre.15.
It can occur when saving a script or when trying to play GameView after saving a script.
I am using Unity 6 (6000.0.23f1) on macOS Monterey.