We have an issue where calling .pause(true) when application moves to background (applicationWillResignActive) causes a crash. We’ve upgraded unity 2018 to 2019.4.9, we’ve tested the application across all iOS devices with not a single problem but since released a few days ago I’ve had 15K+ crashes and it’s mostly happening on iOS 13. All I have is this the stack trace attached. Any help would be appreciated.
Crashed: com.apple.main-thread
0 UnityFramework 0x102d2d544 AudioManager::SetApplicationPause(bool) + 1809920
1 UnityFramework 0x102f7daa8 SetPlayerPause(PlayerPause, bool) + 1577348
2 UnityFramework 0x1032eaac4 UnityPause + 123272
3 xxx 0x100e41ee4 specialized AppDelegate.applicationWillResignActive(_
+ 17 (FirebaseManager.swift:17)
4 xxx 0x100e3f854 @objc AppDelegate.applicationWillResignActive(_
+ 4343658580 (:4343658580)
6 UIKitCore 0x19c5f9180 -[UIApplication _deactivateForReason:notify:] + 792
7 UIKitCore 0x19bda6f44 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 256
8 UIKitCore 0x19bda733c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 740
9 UIKitCore 0x19bda6bfc -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 336
10 UIKitCore 0x19bdab098 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 188
11 UIKitCore 0x19c17b2ac +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 812
12 UIKitCore 0x19c27062c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 244
13 UIKitCore 0x19bdaadf4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 140
14 UIKitCore 0x19c270528 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 100
15 UIKitCore 0x19bdaac5c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 376
16 UIKitCore 0x19bc1ae30 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 636
17 UIKitCore 0x19bc199d0 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
18 UIKitCore 0x19bc1ab68 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220
19 UIKitCore 0x19c1a0a08 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464
20 FrontBoardServices 0x19d6d80a8 -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:] + 528
21 FrontBoardServices 0x19d6fc684 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2 + 120
22 FrontBoardServices 0x19d6e1bfc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
23 FrontBoardServices 0x19d6fc5b8 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke + 184
24 libdispatch.dylib 0x198216524 _dispatch_client_callout + 16
25 libdispatch.dylib 0x1981bf434 _dispatch_block_invoke_direct$VARIANT$mp + 224
26 FrontBoardServices 0x19d720850 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40
27 FrontBoardServices 0x19d72051c -[FBSSerialQueue _queue_performNextIfPossible] + 404
28 FrontBoardServices 0x19d720a44 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
29 CoreFoundation 0x1984cead8 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
30 CoreFoundation 0x1984cea30 __CFRunLoopDoSource0 + 80
31 CoreFoundation 0x1984ce1b8 __CFRunLoopDoSources0 + 184
32 CoreFoundation 0x1984c91e8 __CFRunLoopRun + 788
33 CoreFoundation 0x1984c8ba8 CFRunLoopRunSpecific + 424
34 GraphicsServices 0x1a2638344 GSEventRunModal + 160
35 UIKitCore 0x19c6043e4 UIApplicationMain + 1932
36 xxxxx 0x100d96340 main + 28
37 libdyld.dylib 0x1983508f0 start + 4
