I have 10-20 crashes in my app from last 2 weeks.
On devices iOS 15 or above.
logs has minimum infos:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000```
```OS Version: iPhone OS 15.1 (19B74)```
with something strange:
```Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - Compressor failed a blocking pager_get```
Opening the crashlog in the Xcode project just points to the *main* line of *UnityFramework.framework*
Has anyone come across this? I will be glad for any help or information.
partical crashlog
```csharp
Incident Identifier: BE20139B-0956-4AA7-8AE8-6922C053B4F3
Hardware Model: iPhone12,1
Process: %AppName% [6821]
Path: /private/var/containers/Bundle/Application/460BE69F-AA91-4611-954B-C837622941A2/%AppName%.app/%AppName%
Identifier: %Identifier%
Version: 2.3.2020 (2020)
AppStoreTools: 13A1030d
AppVariant: 1:iPhone12,1:13
Code Type: ARM-64 (Native)
Role: Background
Parent Process: launchd [1]
Coalition: %Identifier% [1751]
Date/Time: 2021-10-29 17:51:37.1505 +0300
Launch Time: 2021-10-29 17:37:45.9539 +0300
OS Version: iPhone OS 15.1 (19B74)
Release Type: User
Baseband Version: 3.00.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - Compressor failed a blocking pager_get
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b7412ae4 __semwait_signal + 8
1 libsystem_c.dylib 0x000000018b3f3f00 nanosleep + 216 (nanosleep.c:104)
2 libc++.1.dylib 0x0000000198cec820 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 84 (__threading_support:546)
3 libAudioToolboxUtility.dylib 0x00000001995c6d50 caulk::concurrent::guarded_lookup_hash_table<unsigned int, BaseOpaqueObject*, (caulk::concurrent::guarded_lookup_hash_table_options)0>::remove(unsigned int) + 184 (thread:386)
4 libAudioToolboxUtility.dylib 0x00000001995ca118 BaseOpaqueObject::~BaseOpaqueObject() + 68 (OpaqueObjectMgr.cpp:87)
5 libEmbeddedSystemAUs.dylib 0x00000001bc1d6a04 AURemoteIO::~AURemoteIO() + 336 (OpaqueObjectMgr.h:181)
6 libEmbeddedSystemAUs.dylib 0x00000001bc1e0040 ausdk::ComponentBase::AP_Close(void*) + 116 (ComponentBase.cpp:68)
7 AudioToolboxCore 0x00000001932346cc AudioComponentInstanceDispose + 88 (APComponent.mm:415)
8 UnityFramework 0x00000001058eda84 FMOD::OutputCoreAudio::reset(bool, bool) + 472
9 Foundation 0x0000000181d8eb80 -[__NSObserver _doit:] + 348 (NSNotification.m:327)
10 CoreFoundation 0x0000000180562ed8 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
11 CoreFoundation 0x00000001805feb8c ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
12 CoreFoundation 0x00000001805d1f44 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
13 CoreFoundation 0x0000000180578d44 _CFXNotificationPost + 716 (CFNotificationCenter.c:1147)
14 Foundation 0x0000000181d74628 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
15 AudioSession 0x00000001898f10a0 -[AVAudioSession privateInterruptionWithInfo:] + 2036 (AVAudioSession_iOS.mm:2962)
16 AudioSession 0x00000001898f1db8 ___ZN8avfaudio30AVAudioSessionPropertyListenerEPvjjPKv_block_invoke.5 + 56 (AVAudioSession_iOS.mm:416)
17 libdispatch.dylib 0x0000000180241914 _dispatch_call_block_and_release + 32 (init.c:1517)
18 libdispatch.dylib 0x0000000180243660 _dispatch_client_callout + 20 (object.m:560)
19 libdispatch.dylib 0x0000000180251b60 _dispatch_main_queue_callback_4CF + 944 (inline_internal.h:2601)
20 CoreFoundation 0x0000000180589cd4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
21 CoreFoundation 0x0000000180543eac __CFRunLoopRun + 2540 (CFRunLoop.c:3144)
22 CoreFoundation 0x00000001805573b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
23 GraphicsServices 0x000000019bee738c GSEventRunModal + 164 (GSEvent.c:2200)
24 UIKitCore 0x0000000182ef76a8 -[UIApplication _run] + 1100 (UIApplication.m:3493)
25 UIKitCore 0x0000000182c767f4 UIApplicationMain + 2092 (UIApplication.m:5046)
26 UnityFramework 0x0000000104cb3518 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 108 (main.mm:96)
27 %AppName% 0x000000010019be00 main + 68 (main.mm:26)
28 dyld 0x00000001003e5a24 start + 520 (dyldMain.cpp:876)
added:
Xcode: 12.5
Unity: 2019.4.29
7622515–948085–2021-10-29_17-51-37.1505_+0300-31d200a49045d41c5c4f89e82cb19e17f26fe815.txt (62.1 KB)
1 Like
We have pretty the same crashlogs in top1 and top2 for our app on iOS. Built with Unity 2020.3.14f1
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b80a2504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b80a2b9c mach_msg + 76 (mach_msg.c:119)
2 libsystem_kernel.dylib 0x00000001b80ab36c clock_get_time + 88 (clockUser.c:241)
3 libsystem_c.dylib 0x000000018c083e98 nanosleep + 112 (nanosleep.c:97)
4 libc++.1.dylib 0x000000019997c820 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 84 (__threading_support:546)
5 libAudioToolboxUtility.dylib 0x000000019a256d50 caulk::concurrent::guarded_lookup_hash_table<unsigned int, BaseOpaqueObject*, (caulk::concurrent::guarded_lookup_hash_table_options)0>::remove(unsigned int) + 184 (thread:386)
6 libAudioToolboxUtility.dylib 0x000000019a25a118 BaseOpaqueObject::~BaseOpaqueObject() + 68 (OpaqueObjectMgr.cpp:87)
7 libEmbeddedSystemAUs.dylib 0x00000001bce66a04 AURemoteIO::~AURemoteIO() + 336 (OpaqueObjectMgr.h:181)
8 libEmbeddedSystemAUs.dylib 0x00000001bce70040 ausdk::ComponentBase::AP_Close(void*) + 116 (ComponentBase.cpp:68)
9 AudioToolboxCore 0x0000000193ec46cc AudioComponentInstanceDispose + 88 (APComponent.mm:415)
10 UnityFramework 0x000000010bd58408 0x109fe0000 + 30901256
11 Foundation 0x0000000182a1eb80 -[__NSObserver _doit:] + 348 (NSNotification.m:327)
12 CoreFoundation 0x00000001811f2ed8 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
13 CoreFoundation 0x000000018128eb8c ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
14 CoreFoundation 0x0000000181261f44 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
15 CoreFoundation 0x0000000181208d44 _CFXNotificationPost + 716 (CFNotificationCenter.c:1147)
16 Foundation 0x0000000182a04628 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
17 AudioSession 0x000000018a5810a0 -[AVAudioSession privateInterruptionWithInfo:] + 2036 (AVAudioSession_iOS.mm:2962)
18 AudioSession 0x000000018a581db8 ___ZN8avfaudio30AVAudioSessionPropertyListenerEPvjjPKv_block_invoke.5 + 56 (AVAudioSession_iOS.mm:416)
19 libdispatch.dylib 0x0000000180ed1914 _dispatch_call_block_and_release + 32 (init.c:1517)
20 libdispatch.dylib 0x0000000180ed3660 _dispatch_client_callout + 20 (object.m:560)
21 libdispatch.dylib 0x0000000180ee1b60 _dispatch_main_queue_callback_4CF + 944 (inline_internal.h:2601)
22 CoreFoundation 0x0000000181219cd4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
23 CoreFoundation 0x00000001811d3eac __CFRunLoopRun + 2540 (CFRunLoop.c:3144)
24 CoreFoundation 0x00000001811e73b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
25 GraphicsServices 0x000000019cb7738c GSEventRunModal + 164 (GSEvent.c:2200)
26 UIKitCore 0x0000000183b876a8 -[UIApplication _run] + 1100 (UIApplication.m:3493)
27 UIKitCore 0x00000001839067f4 UIApplicationMain + 2092 (UIApplication.m:5046)
28 UnityFramework 0x0000000109ffa604 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 108 (main.mm:96)
29 %AppName% 0x0000000100793e00 main + 68 (main.mm:26)
30 dyld 0x0000000100b11a24 start + 520 (dyldMain.cpp:876)
AvenSlayer, what version of xcode you’ve used for the build that crashes?
For me, I’m using the second most recent version I believe 13.0. I guess I should update that now. Seeing similar crashes. 32 of these showing in Xcode:
Incident Identifier: 0E0CDC42-2DA0-492F-9088-61B1CF5CED81
Hardware Model: iPhone12,8
Process: SuperSquares [3812]
Path: /private/var/containers/Bundle/Application/3619F938-F403-4256-A2FA-358F939272C2/SuperSquares.app/SuperSquares
Identifier: com.react.supersquares
Version: 4.0.1 (241)
AppStoreTools: 13A1030d
AppVariant: 1:iPhone12,8:13
Code Type: ARM-64 (Native)
Role: Background
Parent Process: launchd [1]
Coalition: com.react.supersquares [1019]
Date/Time: 2021-11-02 15:23:57.6124 -0400
Launch Time: 2021-11-02 15:23:45.0169 -0400
OS Version: iPhone OS 15.0.2 (19A404)
Release Type: User
Baseband Version: 3.00.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b7f4eff0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f11ac274 _pthread_cond_wait + 1228 (pthread_cond.c:636)
2 UnityFramework 0x000000010c4f5c60 il2cpp: s::posix::posixWaitObject::Wait(unsigned int, bool) + 400 (PosixWaitObject.cpp:119)
3 UnityFramework 0x000000010c4ecafc il2cpp: s::Event::Wait(unsigned int, bool) + 16 (Event.cpp:46)
4 UnityFramework 0x000000010c4ecafc il2cpp: s: :Join(unsigned int) + 16 (Thread.cpp:213)
5 UnityFramework 0x000000010c4ecafc il2cpp: s: :Join() + 24 (Thread.cpp:207)
6 UnityFramework 0x000000010c512014 il2cpp::vm: :KillAllBackgroundThreadsAndWaitForForegroundThreads() + 152 (Thread.cpp:317)
7 UnityFramework 0x000000010c51c2d8 il2cpp::vm::Runtime::Shutdown() + 68 (Runtime.cpp:393)
8 UnityFramework 0x000000010bd10fbc CleanupIl2Cpp() + 20 (MonoManager_Il2Cpp.cpp:293)
9 UnityFramework 0x000000010bc25558 PlayerCleanup(bool) + 84 (Player.cpp:621)
10 UnityFramework 0x000000010c03569c UnityCleanup + 16 (LibEntryPoint.mm:219)
11 UnityFramework 0x000000010c035900 UnityPlayerLoopImpl(bool) + 260 (LibEntryPoint.mm:315)
12 UnityFramework 0x000000010b507b6c UnityRepaint + 140 (UnityAppController+Rendering.mm:282)
13 UnityFramework 0x000000010b50241c -[UnityAppController applicationWillResignActive:] + 100 (UnityAppController.mm:524)
14 UIKitCore 0x0000000183d04b68 -[UIApplication _deactivateForReason:notify:] + 1352 (UIApplication.m:1833)
15 UIKitCore 0x0000000183de03dc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 212 (_UISceneLifecycleMultiplexer.m:101)
16 UIKitCore 0x0000000184021acc -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 760 (_UISceneLifecycleMultiplexer.m:564)
17 UIKitCore 0x0000000183fad1f0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 (_UISceneLifecycleMultiplexer.m:470)
18 UIKitCore 0x0000000183b94044 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block… + 196 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
19 UIKitCore 0x0000000183c5462c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 (BSAnimationSettings+UIKit.m:50)
20 UIKitCore 0x0000000183b95f54 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276 (_UISceneSettingsDiffAction.m:23)
21 UIKitCore 0x0000000183c8118c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
22 UIKitCore 0x0000000184109b0c __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.610 + 776 (UIScene.m:1775)
23 UIKitCore 0x0000000183bc4d5c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 (UIScene.m:1476)
24 UIKitCore 0x0000000183c08494 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288 (UIScene.m:1742)
25 UIKitCore 0x0000000183b91f84 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 492 (UIApplicationSceneClientAgent.m:80)
26 FrontBoardServices 0x000000019300d110 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 528 (FBSScene.m:549)
27 FrontBoardServices 0x0000000193025d5c __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 152 (FBSWorkspaceScenesClient.m:581)
28 FrontBoardServices 0x000000019300a6c4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:352)
29 FrontBoardServices 0x0000000193010b20 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 396 (FBSWorkspaceScenesClient.m:580)
30 libdispatch.dylib 0x0000000181245950 _dispatch_client_callout + 20 (object.m:560)
31 libdispatch.dylib 0x00000001812493e8 _dispatch_block_invoke_direct + 264 (queue.c:489)
32 FrontBoardServices 0x000000019300bfa4 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 48 (FBSSerialQueue.m:157)
33 FrontBoardServices 0x000000019300b3e4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181)
34 FrontBoardServices 0x000000019300f9f4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194)
35 CoreFoundation 0x00000001815f5030 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 (CFRunLoop.c:1972)
36 CoreFoundation 0x0000000181605cf0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016)
37 CoreFoundation 0x000000018153fff8 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053)
38 CoreFoundation 0x0000000181545804 __CFRunLoopRun + 820 (CFRunLoop.c:2951)
39 CoreFoundation 0x00000001815593c8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
40 GraphicsServices 0x000000019cd6a38c GSEventRunModal + 164 (GSEvent.c:2200)
41 UIKitCore 0x0000000183eff060 -[UIApplication _run] + 1100 (UIApplication.m:3457)
42 UIKitCore 0x0000000183c7cb8c UIApplicationMain + 2124 (UIApplication.m:5013)
43 UnityFramework 0x000000010b506548 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 108 (main.mm:96)
44 SuperSquares 0x0000000104ccf0ac main + 68 (main.mm:26)
45 dyld 0x0000000105041a24 start + 520 (dyldMain.cpp:876)
I am also seeing this on iOS 15 / Unity 2020.3.21f1. It seems to happen when recording from mic then going to the background soon after, though I have limited data there. Did anybody submit a Unity bug report?
1 Like
I use Xcode 12.5
Unity version is 2019.4.29
system
November 23, 2021, 8:34am
7
@AvenSlayer The same thing happened to us on an iPad with 15.1, Unity 2020.3.18f1. But it’s random, did not work all day. Reinstalling it helped
mcptt
November 24, 2021, 11:27am
8
We have seen something very similar in a completely different project, pjsip.
I am crossposting our github issue here in case either project manage to advance on the issue.
system
December 1, 2021, 6:48am
9
checked where the stacktraces differ:
@mcptt :
8 ios_sdk 0x0000000105fb7f7c ca_stream_destroy + 2670460 (coreaudio_dev.m:2281)
mine / @AvenSlayer / @nikita_khvorov :
8 UnityFramework 0x000000010466c808 FMOD::OutputCoreAudio::reset(bool, bool) + 472
In both cases, this is the next call 7 AudioToolboxCore 0x0000000195f46d14 AudioComponentInstanceDispose + 60 (APComponent.mm:415)
Did you find a solution to this issue?
We removed the mobile notifications package and it works now.
Yeah, as my mother used to say, the only good packaged in an uninstalled package.
system
December 7, 2021, 7:37am
13
@lightchris How did you find out about this? Trial and error? Does it reliably fix the problem for now?
lkj_dpc
December 21, 2021, 9:31pm
14
I am experiencing this issue, same callstack.
Reliable repro steps are to tell siri to play some music while the Unity app is running.
We don not use the MobileNotificationsPackage.
Unity version 2020.3.15f2.
1 Like
I’m also experiencing the same issue. The error stacks all seem to be rooted in audio-related stuff. My tester has reported it happening when using Siri to look up things, and when a call is incoming. Also in Unity 2020. I wonder if it’s an issue in 2021?
Petr777
January 12, 2022, 2:31pm
17
We have 3 crashes in our iOS Unity app (many crash reports for each of them in Xcode Organizer, iOS 15 only, iOS 14 is ok):
Related to audio with fmod: utputcoreaudio::reset in stack - stack is very close to posted by this topic author
Related to shaders compiling with ShaderLab::SubProgram::Compile in stack,
Related to writing to keychain. Ń„
They all have
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
and have no “Termination Reason” field.
Looks like this is iOS 15 bug, see Crash in background on iOS 15 EXC_… | Apple Developer Forums
We have submitted an iOS app that works perfectly in Testflight on all our iPhone models, even with iOS 15.4.1 (same as in App Review, according to the crash logs) but it crashes instantly on launch for Apple’s App Review. Only difference I see is that they tested it using iPad Air 3rd Gen (seems they always test iPhone apps on iPad, fig knows why)
We’re still on Unity 2019.4.34
Anyway, four crashlogs, all looking like this:
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"CineGame","byPid":91267},
"ktriageinfo" : "VM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\n",
...```