Our app integrated AdMob SDK(v7.24.1) and the app crash randomly on iOS 11 when app launching. From the crash log, we saw AdMob SDK perform time consuming operation which resulted in app launching get over time and app crashed.
Incident Identifier: FBBDD5E5-A8D3-4E73-B7D7-92156ACAAB51
CrashReporter Key: 2f43252abf47582f990e5f57bb0002284578019f
Hardware Model: iPhone9,2
Process: NewsMasterENVideos [3117]
Path: /private/var/containers/Bundle/Application/E8C5F3A3-6133-4AFF-83CB-CEE537A570AD/NewsMasterENVideos.app/NewsMasterENVideos
Identifier: com.topbuzz.videoen
Version: 4.2.5.0 (4.2.5)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.topbuzz.videoen [1453]
Date/Time: 2017-10-30 10:24:25.0300 +0800
Launch Time: 2017-10-30 10:24:04.9615 +0800
OS Version: iPhone OS 11.0.3 (15A432)
Baseband Version: 3.00.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.topbuzz.videoen exhausted real (wall clock) time allowance of 19.93 seconds | | Elapsed total CPU time (seconds): 23.180 (user 23.180, system 0.000), 58% CPU | Elapsed application CPU time (seconds): 21.188, 53% CPU |
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182958c00 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001827e73d4 _dispatch_sema4_wait$VARIANT$mp + 24
2 libdispatch.dylib 0x00000001827e7d84 _dispatch_semaphore_wait_slow + 140
3 StoreKit 0x000000019616349c +[SKPaymentQueue canMakePayments] + 172
4 NewsMasterENVideos 0x0000000101527bec GADDiskUsageStatisticsWithError + 10396
5 NewsMasterENVideos 0x0000000101525650 GADDiskUsageStatisticsWithError + 768
6 NewsMasterENVideos 0x000000010152559c GADDiskUsageStatisticsWithError + 588
7 libdispatch.dylib 0x00000001827e5048 _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001827e8710 dispatch_once_f$VARIANT$mp + 60
9 NewsMasterENVideos 0x000000010152556c GADDiskUsageStatisticsWithError + 540
10 NewsMasterENVideos 0x00000001014927d4 GADiTunesMetadataForFileAtPath + 3280
11 NewsMasterENVideos 0x0000000101491d1c GADiTunesMetadataForFileAtPath + 536
12 Foundation 0x000000018374b014 -[__NSObserver _doit:] + 312
13 CoreFoundation 0x0000000182df212c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
14 CoreFoundation 0x0000000182df16cc _CFXRegistrationPost + 420
15 CoreFoundation 0x0000000182df1430 ___CFXNotificationPost_block_invoke + 60
16 CoreFoundation 0x0000000182e6e9f4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1408
17 CoreFoundation 0x0000000182d283e0 _CFXNotificationPost + 380
18 Foundation 0x0000000183748498 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
19 UIKit 0x000000018c4d29d8 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3748
20 UIKit 0x000000018c4d76e4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1712
21 UIKit 0x000000018c765454 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 800
22 UIKit 0x000000018ca351f0 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
23 UIKit 0x000000018c7650b8 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 252
24 UIKit 0x000000018c765928 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 748
25 UIKit 0x000000018cece6e8 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 260
26 UIKit 0x000000018cece58c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 448
27 UIKit 0x000000018cc4a9c0 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
28 UIKit 0x000000018cddffc8 _performActionsWithDelayForTransitionContext + 112
29 UIKit 0x000000018cc4a870 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 252
30 UIKit 0x000000018ca34850 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 364
31 UIKit 0x000000018c4d5e28 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
32 UIKit 0x000000018c8d96ec -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364
33 FrontBoardServices 0x0000000185501768 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
34 FrontBoardServices 0x000000018550a070 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224
35 libdispatch.dylib 0x00000001827e5048 _dispatch_client_callout + 16
36 libdispatch.dylib 0x00000001827ec6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
37 FrontBoardServices 0x0000000185535a04 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
38 FrontBoardServices 0x00000001855356a8 -[FBSSerialQueue _performNext] + 404
39 FrontBoardServices 0x0000000185535c44 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
40 CoreFoundation 0x0000000182e08358 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
41 CoreFoundation 0x0000000182e082d8 __CFRunLoopDoSource0 + 88
42 CoreFoundation 0x0000000182e07b60 __CFRunLoopDoSources0 + 204
43 CoreFoundation 0x0000000182e05738 __CFRunLoopRun + 1048
44 CoreFoundation 0x0000000182d262d8 CFRunLoopRunSpecific + 436
45 GraphicsServices 0x0000000184bb7f84 GSEventRunModal + 100
46 UIKit 0x000000018c2d3880 UIApplicationMain + 208
47 NewsMasterENVideos 0x00000001002cb648 main + 325192 (main.swift:0)
48 libdyld.dylib 0x000000018284a56c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x0000000182958bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182958a3c mach_msg + 72
2 CoreFoundation 0x0000000182e07ce4 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182e058b0 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000182d262d8 CFRunLoopRunSpecific + 436
5 Foundation 0x000000018374e6e4 -[NSRunLoop+ 50916 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018376dafc -[NSRunLoop+ 178940 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018ce1f02c -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018384f860 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x0000000182a8c32c _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000182a8c1f8 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000182a8ac38 thread_start + 4
Thread 2 name: Dispatch queue: com.bytedance.ttmonitor.serialqueue
Thread 2:
0 libsystem_kernel.dylib 0x0000000182979198 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x0000000182a8f6bc _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x0000000182a8f600 _pthread_mutex_lock_slow$VARIANT$mp + 264
3 CoreFoundation 0x0000000182d29f7c _CFRunLoopGet2 + 32
4 Foundation 0x0000000183744770 +[NSRunLoop+ 10096 (NSRunLoop) currentRunLoop] + 32
5 NewsMasterENVideos 0x00000001005b3064 static Reachability.sharedManager() + 3371108 (Reachability.swift:62)
6 NewsMasterENVideos 0x000000010040f4b8 specialized static NetworkClientHook.commonParameters.getter + 1651896 (NewsMaster+URL.swift:69)
7 NewsMasterENVideos 0x000000010040d6e0 protocol witness for static NetworkClientProtocol.commonParameters.getter in conformance NetworkClientHook + 1644256 (NetworkClientHook.swift:15)
8 NewsMasterENVideos 0x000000010076a324 closure #1 in AppInitializer.performNetworkPhase() + 5169956 (AppInitializer+Phases.swift:63)
9 NewsMasterENVideos 0x000000010076a3b0 thunk for @callee_owned () -> (@owned [AnyHashable : Any]?) + 5170096 (AppInitializer+Phases.swift:0)
10 NewsMasterENVideos 0x0000000100c35168 -[TTNetworkManagerAFNetworking pickCommonParams] + 10195304 (TTNetworkManagerAFNetworking.m:0)
11 NewsMasterENVideos 0x0000000100c35218 -[TTNetworkManagerAFNetworking needCommonParams:] + 10195480 (TTNetworkManagerAFNetworking.m:0)
12 NewsMasterENVideos 0x0000000100c36c98 -[TTNetworkManagerAFNetworking synchronizedRequstForURL:method:headerField:jsonObjParams:needCommonParams:needResponse:needEncrypt:needContentEncodingAfterEncrypt:] + 10202264 (TTNetworkManagerAFNetworking.m:0)
13 NewsMasterENVideos 0x0000000100c36b70 -[TTNetworkManagerAFNetworking synchronizedRequstForURL:method:headerField:jsonObjParams:needCommonParams:needResponse:needEncrypt:] + 10201968 (TTNetworkManagerAFNetworking.m:507)
14 NewsMasterENVideos 0x0000000100c369ec -[TTNetworkManagerAFNetworking synchronizedRequstForURL:method:headerField:jsonObjParams:needCommonParams:needResponse:] + 10201580 (TTNetworkManagerAFNetworking.m:475)
15 NewsMasterENVideos 0x0000000100c1af64 -[TTMonitorReporter _reportForData:] + 10088292 (TTMonitorReporter.m:0)
16 NewsMasterENVideos 0x0000000100c1aa00 -[TTMonitorReporter reportForData:] + 10086912 (TTMonitorReporter.m:0)
17 NewsMasterENVideos 0x0000000100c104bc -[TTMonitor flushIfNeed] + 10044604 (TTMonitor.m:0)
18 libdispatch.dylib 0x00000001827e5088 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x00000001827e5048 _dispatch_client_callout + 16
20 libdispatch.dylib 0x00000001827eee48 _dispatch_queue_serial_drain$VARIANT$mp + 528
21 libdispatch.dylib 0x00000001827ef7d8 _dispatch_queue_invoke$VARIANT$mp + 340
22 libdispatch.dylib 0x00000001827f0200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
23 libdispatch.dylib 0x00000001827f84a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
24 libsystem_pthread.dylib 0x0000000182a8afe0 _pthread_wqthread + 932
25 libsystem_pthread.dylib 0x0000000182a8ac30 start_wqthread + 4
Thread 3 name: Dispatch queue: bytedance.ios.applog.sending
Thread 3:
0 libsystem_kernel.dylib 0x0000000182979198 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x0000000182a8f6bc _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x0000000182a8f600 _pthread_mutex_lock_slow$VARIANT$mp + 264
3 CoreFoundation 0x0000000182d29f7c _CFRunLoopGet2 + 32
4 Foundation 0x0000000183744770 +[NSRunLoop+ 10096 (NSRunLoop) currentRunLoop] + 32
5 NewsMasterENVideos 0x00000001004c7d10 specialized static NewsMaster.currentUserNotificationSettings() + 2407696 (NewsMaster+APNs.swift:80)
6 NewsMasterENVideos 0x000000010090eb10 specialized static TTTrackable.customDataHeaderParams() + 6892304 (NewsMaster+APNs.swift:60)
7 NewsMasterENVideos 0x000000010090e220 closure #2 in closure #1 in TTTrackable.initClosure.getter + 6890016 (TTTracker+Trackable.swift:30)
8 NewsMasterENVideos 0x000000010076a3b0 thunk for @callee_owned () -> (@owned [AnyHashable : Any]?) + 5170096 (AppInitializer+Phases.swift:0)
9 NewsMasterENVideos 0x0000000100ef064c __31-[TTTrackerCleaner startClean:]_block_invoke + 13059660 (TTTrackerCleaner.m:0)
10 libdispatch.dylib 0x00000001827e5088 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x00000001827e5048 _dispatch_client_callout + 16
12 libdispatch.dylib 0x00000001827eee48 _dispatch_queue_serial_drain$VARIANT$mp + 528
13 libdispatch.dylib 0x00000001827ef7d8 _dispatch_queue_invoke$VARIANT$mp + 340
14 libdispatch.dylib 0x00000001827f0200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
15 libdispatch.dylib 0x00000001827f84a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
16 libsystem_pthread.dylib 0x0000000182a8afe0 _pthread_wqthread + 932
17 libsystem_pthread.dylib 0x0000000182a8ac30 start_wqthread + 4
Thread 4 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 4:
0 libsystem_kernel.dylib 0x0000000182958bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182958a3c mach_msg + 72
2 NewsMasterENVideos 0x0000000101306c14 CLSMachExceptionServer + 100
3 libsystem_pthread.dylib 0x0000000182a8c32c _pthread_body + 308
4 libsystem_pthread.dylib 0x0000000182a8c1f8 _pthread_body + 0
5 libsystem_pthread.dylib 0x0000000182a8ac38 thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x0000000182958bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182958a3c mach_msg + 72
2 CoreFoundation 0x0000000182e07ce4 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182e058b0 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000182d262d8 CFRunLoopRunSpecific + 436
5 CFNetwork 0x000000018348fb40 +[NSURLConnection+ 715584 (Loader) _resourceLoadLoop:] + 404
6 Foundation 0x000000018384f860 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x0000000182a8c32c _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000182a8c1f8 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000182a8ac38 thread_start + 4
Thread 6:
0 libsystem_pthread.dylib 0x0000000182a8ac2c start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000e x1: 0x0000000000000000 x2: 0x0000000000000008 x3: 0x00000001829c0320
x4: 0x0000000000000000 x5: 0x000000016fb80a34 x6: 0x0000000000000000 x7: 0x0000000000000403
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0xffffffffffffffff x11: 0x0000000000000000
x12: 0x00000001c00f1c70 x13: 0x00000001b36f9e88 x14: 0x0000000000000001 x15: 0xffffffffffffffff
x16: 0xffffffffffffffdc x17: 0x0000000182d70c98 x18: 0x0000000000000000 x19: 0x00000001c02814d8
x20: 0x00000001c02814a0 x21: 0xffffffffffffffff x22: 0x0000000000000010 x23: 0x000000018cfdbdea
x24: 0x00000001b3708000 x25: 0x0000000000000000 x26: 0x0000000102005000 x27: 0x00000001b3703580
x28: 0x0000000000000001 fp: 0x000000016fb80c60 lr: 0x00000001827e73d4
sp: 0x000000016fb80c50 pc: 0x0000000182958c00 cpsr: 0x60000000
...
EOF