最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - Watchdog terminates app on entering foreground - Stack Overflow

programmeradmin8浏览0评论

Please help me interpret stacktrace of a crashlog.

My iOS app crashes on entering foreground while being in background for some time. Crashlogs say that the watchdog terminated the app for being active for too long. Thats okay. My question is, how do I determine what exactly my app was doing in background for so long? Stacktrace looks like a totally normal clean launch with app being killed at the end.

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205 
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: app<com.XXX.MY_APP(49CC08AB-5EA5-4DE4-9479-56BD69D0BA47)>:671 exhausted real (wall clock) time allowance of 10.00 seconds
ProcessVisibility: Background
ProcessState: Running
WatchdogEvent: scene-update
WatchdogVisibility: Background
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 26.560 (user 26.560, system 0.000), 44% CPU",
"Elapsed application CPU time (seconds): 9.941, 17% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>

Triggered by Thread:  0

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib                 0x1dcb52090 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x216168f98 _pthread_cond_wait + 1204
2   Foundation                             0x18a0cd5fc -[NSOperation waitUntilFinished] + 508
3   CoreFoundation                         0x18b47505c _CFXNotificationPost + 792
4   Foundation                             0x18a0cca9c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
5   UIKitCore                              0x18de42604 -[UIApplication _deactivateForReason:notify:] + 1492
6   UIKitCore                              0x18e036cf4 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 176
7   UIKitCore                              0x18ddfd834 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 608
8   UIKitCore                              0x18ddfd554 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 248
9   UIKitCore                              0x18ddfd00c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
10  UIKitCore                              0x18ddfc1b4 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
11  UIKitCore                              0x18ddfb7ec _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
12  UIKitCore                              0x18ddfb49c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
13  UIKitCore                              0x18de97394 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.229 + 612
14  UIKitCore                              0x18de96ce4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 208
15  UIKitCore                              0x18de8e708 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
16  UIKitCore                              0x18de8dee8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336
17  FrontBoardServices                     0x1a4f61290 __76-[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.146 + 244
18  FrontBoardServices                     0x1a4f5e834 -[FBSScene _callOutQueue_coalesceClientSettingsUpdates:] + 68
19  FrontBoardServices                     0x1a4f5c090 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 796
20  FrontBoardServices                     0x1a4f74868 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 148
21  FrontBoardServices                     0x1a4f744c8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
22  FrontBoardServices                     0x1a4f5f510 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340
23  libdispatch.dylib                      0x1931e6fa8 _dispatch_client_callout + 20
24  libdispatch.dylib                      0x1931ea9f0 _dispatch_block_invoke_direct + 284
25  FrontBoardServices                     0x1a4f6d378 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
26  FrontBoardServices                     0x1a4f6d2f8 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240
27  FrontBoardServices                     0x1a4f6d1d0 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28
28  CoreFoundation                         0x18b49cf4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
29  CoreFoundation                         0x18b49cee0 __CFRunLoopDoSource0 + 176
30  CoreFoundation                         0x18b49fb40 __CFRunLoopDoSources0 + 244
31  CoreFoundation                         0x18b49ed3c __CFRunLoopRun + 840
32  CoreFoundation                         0x18b4f1284 CFRunLoopRunSpecific + 588
33  GraphicsServices                       0x1d872d4c0 GSEventRunModal + 164
34  UIKitCore                              0x18e036674 -[UIApplication _run] + 816
35  UIKitCore                              0x18dc5ce88 UIApplicationMain + 340
36  MY_APP                                 0x102b6c8cc 0x102b64000 + 35020
37  dyld                                   0x1b1731de8 start + 2724
发布评论

评论列表(0)

  1. 暂无评论