I have integrated with Socket Mobile scanners using the ScanApiSDK (v 10.2.227). We received a crash log on -[AccessoryMonitor CheckForChanges:] which seems to be part of the SDK.
Has anyone experienced this before? What would be the best way to find the cause of the issue?
Appreciate any help. Crash log is below.
*** -[__NSArrayM getObjects:range:]: range {0, 1} extends beyond bounds for empty array
#7. Crashed: com.twitter.crashlytics.ios.exception
0 MyFirstApp 0x10076389c CLSProcessRecordAllThreads + 4302256284
1 MyFirstApp 0x10076389c CLSProcessRecordAllThreads + 4302256284
2 MyFirstApp 0x100763d4c CLSProcessRecordAllThreads + 4302257484
3 MyFirstApp 0x10074e78c CLSHandler + 4302169996
4 MyFirstApp 0x100761aa4 __CLSExceptionRecord_block_invoke + 4302248612
5 libdispatch.dylib 0x1811d947c _dispatch_client_callout + 16
6 libdispatch.dylib 0x1811e4728 _dispatch_barrier_sync_f_invoke + 100
7 MyFirstApp 0x10076163c CLSExceptionRecord + 4302247484
8 MyFirstApp 0x100761454 CLSExceptionRecordNSException + 4302246996
9 MyFirstApp 0x1007610b4 CLSTerminateHandler() + 4302246068
10 libc++abi.dylib 0x180de6f44 std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x180de685c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
12 libobjc.A.dylib 0x180df4094 _objc_exception_destructor(void*) + 330
13 CoreFoundation 0x181672ff8 -[NSMutableArray sortUsingSelector:] + 634
14 CoreFoundation 0x181672b10 -[NSArray initWithArray:range:copyItems:] + 248
15 CoreFoundation 0x181672a04 +[NSArray arrayWithArray:] + 80
16 MyFirstApp 0x1004f59d8 -[AccessoryMonitor CheckForChanges:] (AccessoryMonitor.m:204)
17 MyFirstApp 0x1004f5be0 SktAccessoryEnumerator::Wait(unsigned long, TSktHardware**, CSktTransport**) (SktAccessoryEnumerator.mm:86)
18 MyFirstApp 0x1004e6130 SktScanAPIListenerThread(void*) (SktListener.mm:207)
19 libsystem_pthread.dylib 0x1813f3b28 _pthread_body + 156
20 libsystem_pthread.dylib 0x1813f3a8c _pthread_body + 154
21 libsystem_pthread.dylib 0x1813f1028 thread_start + 4
--
Fatal Exception: NSRangeException
0 CoreFoundation 0x18178edb0 __exceptionPreprocess
1 libobjc.A.dylib 0x180df3f80 objc_exception_throw
2 CoreFoundation 0x181672ff8 -[NSMutableArray sortUsingSelector:]
3 CoreFoundation 0x181672b10 -[NSArray initWithArray:range:copyItems:]
4 CoreFoundation 0x181672a04 +[NSArray arrayWithArray:]
5 MyFirstApp 0x1004f59d8 -[AccessoryMonitor CheckForChanges:] (AccessoryMonitor.m:204)
6 MyFirstApp 0x1004f5be0 SktAccessoryEnumerator::Wait(unsigned long, TSktHardware**, CSktTransport**) (SktAccessoryEnumerator.mm:86)
7 MyFirstApp 0x1004e6130 SktScanAPIListenerThread(void*) (SktListener.mm:207)
8 libsystem_pthread.dylib 0x1813f3b28 _pthread_body
9 libsystem_pthread.dylib 0x1813f3a8c _pthread_body
10 libsystem_pthread.dylib 0x1813f1028 thread_start
Related
The app crashed when I just stay in it for over 1 hour. I did not do anything else beside staying in it. I have no idea what this log is trying to tell me so if anyone can help me I would appreciate it a lot.
This is the crash log
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 29
Last Exception Backtrace:
0 CoreFoundation 0x1856a186c __exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x19a6bcc50 objc_exception_throw + 60 (objc-exception.mm:565)
2 unikapp 0x1002f52ac RCTFatal + 668 (RCTAssert.m:146)
3 unikapp 0x100374e7c -[RCTExceptionsManager reportFatal:stack:exceptionId:suppressRedBox:] + 504 (RCTExceptionsManager.mm:78)
4 unikapp 0x1003758d0 -[RCTExceptionsManager reportException:] + 1532 (RCTExceptionsManager.mm:148)
5 CoreFoundation 0x1856a68f4 __invoking___ + 148
6 CoreFoundation 0x18557ddf8 -[NSInvocation invoke] + 448 (NSForwarding.m:3389)
7 CoreFoundation 0x18557e3cc -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3495)
8 unikapp 0x10032780c -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584)
9 unikapp 0x100329e18 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 540 (RCTNativeModule.mm:183)
10 unikapp 0x100329a48 operator() + 68 (RCTNativeModule.mm:104)
11 unikapp 0x100329a48 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 112 (RCTNativeModule.mm:95)
12 libdispatch.dylib 0x18529424c _dispatch_call_block_and_release + 32 (init.c:1454)
13 libdispatch.dylib 0x185295db0 _dispatch_client_callout + 20 (object.m:559)
14 libdispatch.dylib 0x18529d10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
15 libdispatch.dylib 0x18529dc5c _dispatch_lane_invoke + 408 (queue.c:3862)
16 libdispatch.dylib 0x1852a7d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
17 libsystem_pthread.dylib 0x1d1151814 _pthread_wqthread + 276 (pthread.c:2211)
18 libsystem_pthread.dylib 0x1d115876c start_wqthread + 8
Thread 29 Crashed:
0 libsystem_kernel.dylib 0x00000001b35f6414 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001d1150b50 pthread_kill + 272 (pthread.c:1392)
2 libsystem_c.dylib 0x000000018eacfb74 abort + 104 (abort.c:110)
3 libc++abi.dylib 0x000000019a7c2cf8 abort_message + 132 (abort_message.cpp:76)
4 libc++abi.dylib 0x000000019a7b3e4c demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67)
5 libobjc.A.dylib 0x000000019a6bcf64 _objc_terminate() + 144 (objc-exception.mm:701)
6 libc++abi.dylib 0x000000019a7c20e0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x000000019a7c206c std::terminate() + 44 (cxa_handlers.cpp:88)
8 libdispatch.dylib 0x0000000185295dc4 _dispatch_client_callout + 40 (object.m:562)
9 libdispatch.dylib 0x000000018529d10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
10 libdispatch.dylib 0x000000018529dc5c _dispatch_lane_invoke + 408 (queue.c:3862)
11 libdispatch.dylib 0x00000001852a7d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
12 libsystem_pthread.dylib 0x00000001d1151814 _pthread_wqthread + 276 (pthread.c:2211)
13 libsystem_pthread.dylib 0x00000001d115876c start_wqthread + 8
I have downloaded symbolicated crash report using Xcode but unable to understand it as in backtrace it shows below method where it crashed:
-[UIView(Internal) _addSubview:positioned:relativeTo:] + 132 (UIView.m:16297). However, I can't find that specific method in my code where exception occurred. Below is the crash report:
Incident Identifier: 36EACC3D-E19F-4F23-B788-CD18C8D21052
Hardware Model: iPad13,4
Process: SuperApp [1625]
Path: /private/var/containers/Bundle/Application/5AEC3228-FC0F-48FA-9812-276AAD48B44D/SuperApp.app/SuperApp
Identifier: sa.com.stc.SuperMobileApp
Version: 1.0 (1.4.0)
AppStoreTools: 12E262
AppVariant: 1:iPad13,4:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: sa.com.stc.SuperMobileApp [793]
Date/Time: 2021-06-20 17:34:25.7885 +0300
Launch Time: 2021-06-19 22:08:42.5573 +0300
OS Version: iPhone OS 15.0 (19A5261w)
Release Type: Beta
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18082ff90 __exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x198eeb21c objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreFoundation 0x1808bcce0 +[NSException raise:format:] + 112 (NSException.m:155)
3 UIKitCore 0x182c4a458 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 132 (UIView.m:16297)
4 UIKitCore 0x182ff5638 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1304 (_UINavigationParallaxTransition.m:383)
5 UIKitCore 0x182c2acf4 +[UIView(Animation) performWithoutAnimation:] + 104 (UIView.m:14461)
6 UIKitCore 0x183144bb8 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 260 (_UINavigationParallaxTransition.m:319)
7 UIKitCore 0x182e91458 +[UIView _performBlockDelayingTriggeringResponderEvents:forScene:] + 252 (UIView.m:15984)
8 UIKitCore 0x182fb249c -[_UINavigationParallaxTransition animateTransition:] + 1092 (_UINavigationParallaxTransition.m:317)
9 UIKitCore 0x182f276ec ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 76 (UIViewControllerTransitioning.m:0)
10 UIKitCore 0x182ecee34 +[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:] + 172 (UIKeyboardSceneDelegate.m:1968)
11 UIKitCore 0x1834cd880 ___UIViewControllerTransitioningRunCustomTransition_block_invoke.663 + 204 (UIViewControllerTransitioning.m:1258)
12 UIKitCore 0x182da8914 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 204 (UIView.m:14416)
13 UIKitCore 0x182da879c _UIViewControllerTransitioningRunCustomTransition + 628 (UIViewControllerTransitioning.m:1249)
14 UIKitCore 0x182e60ed8 -[UINavigationController _startCustomTransition:] + 3412 (UINavigationController.m:2224)
15 UIKitCore 0x182d2bbec -[UINavigationController _startDeferredTransitionIfNeeded:] + 692 (UINavigationController.m:7291)
16 UIKitCore 0x182d29e28 -[UINavigationController __viewWillLayoutSubviews] + 168 (UINavigationController.m:7596)
17 UIKitCore 0x182d66bf0 -[UILayoutContainerView layoutSubviews] + 228 (UILayoutContainerView.m:88)
18 UIKitCore 0x182be1498 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2768 (UIView.m:18074)
19 QuartzCore 0x184440f10 CA::Layer::layout_if_needed(CA::Transaction*) + 536 (CALayer.mm:10004)
20 QuartzCore 0x18444f664 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 144 (CALayer.mm:2476)
21 QuartzCore 0x184479fa8 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 480 (CAContextInternal.mm:2549)
22 QuartzCore 0x1844b8910 CA::Transaction::commit() + 680 (CATransactionInternal.mm:449)
23 QuartzCore 0x184617394 CA::Transaction::flush_as_runloop_observer(bool) + 72 (CATransactionInternal.mm:941)
24 CoreFoundation 0x1807dbd04 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1799)
25 CoreFoundation 0x18076a334 __CFRunLoopDoObservers + 572 (CFRunLoop.c:1912)
26 CoreFoundation 0x1807c89c0 __CFRunLoopRun + 1052 (CFRunLoop.c:2958)
27 CoreFoundation 0x1807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
28 GraphicsServices 0x19c174600 GSEventRunModal + 164 (GSEvent.c:2200)
29 UIKitCore 0x182fae9b0 -[UIApplication _run] + 1084 (UIApplication.m:3409)
30 UIKitCore 0x182fae424 UIApplicationMain + 2204 (UIApplication.m:4949)
31 SuperApp 0x1028eec30 main + 68 (AppDelegate.swift:24)
32 dyld 0x102f2121c start + 520 (dyldMain.cpp:857)
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b63471f4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f0e0123c pthread_kill + 268 (pthread.c:1609)
2 libsystem_c.dylib 0x000000018b8b2500 __abort + 128 (abort.c:155)
3 libsystem_c.dylib 0x000000018b8b2480 abort + 176 (abort.c:126)
4 libc++abi.dylib 0x0000000198ff0a7c abort_message + 132 (abort_message.cpp:78)
5 libc++abi.dylib 0x0000000198fe19b8 demangling_terminate_handler() + 352 (cxa_default_handlers.cpp:67)
6 libobjc.A.dylib 0x0000000198eef2fc _objc_terminate() + 144 (objc-exception.mm:701)
7 SuperApp 0x0000000102ae3b00 CLSTerminateHandler+ 2079488 () + 348
8 libc++abi.dylib 0x0000000198fefe10 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
9 libc++abi.dylib 0x0000000198ff2dc4 __cxa_rethrow + 148 (cxa_exception.cpp:616)
10 libobjc.A.dylib 0x0000000198eeb1d4 objc_exception_rethrow + 44 (objc-exception.mm:604)
11 CoreFoundation 0x00000001807d6408 CFRunLoopRunSpecific + 836 (CFRunLoop.c:3262)
12 GraphicsServices 0x000000019c174600 GSEventRunModal + 164 (GSEvent.c:2200)
13 UIKitCore 0x0000000182fae9b0 -[UIApplication _run] + 1084 (UIApplication.m:3409)
14 UIKitCore 0x0000000182fae424 UIApplicationMain + 2204 (UIApplication.m:4949)
15 SuperApp 0x00000001028eec30 main + 68 (AppDelegate.swift:24)
16 dyld 0x0000000102f2121c start + 520 (dyldMain.cpp:857)
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 Foundation 0x0000000181f7b018 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 Foundation 0x0000000181f7aee4 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:424)
7 UIKitCore 0x0000000182c92cec -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1054)
8 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
9 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
10 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 AudioSession 0x00000001897e5330 CADeprecated::GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:95)
6 AudioSession 0x00000001897eae58 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001b63474ec select$DARWIN_EXTSN + 8
1 WebRTC 0x0000000103b18d5c 0x103ac0000 + 363868
2 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
3 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
4 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
5 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
6 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24604 0x103ac0000 + 411140
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103b11884 0x103ac0000 + 333956
5 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
6 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
7 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24614 0x103ac0000 + 411156
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103b11884 0x103ac0000 + 333956
5 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
6 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
7 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24604 0x103ac0000 + 411140
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103bdf4bc 0x103ac0000 + 1176764
5 WebRTC 0x0000000103bdee4c 0x103ac0000 + 1175116
6 WebRTC 0x0000000103b23fcc 0x103ac0000 + 409548
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 SuperApp 0x0000000102ad1320 CLSMachExceptionServer + 100
3 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
4 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 CFNetwork 0x00000001811bae6c +[__CFN_CoreSchedulingSetRunnable _run:] + 464 (CoreSchedulingSet.mm:1372)
6 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001b63474ec select$DARWIN_EXTSN + 8
1 CoreFoundation 0x00000001808068a8 __CFSocketManager + 648 (CFSocket.c:1343)
2 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
3 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 Foundation 0x0000000181f7b018 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 CocoaAsyncSocket 0x000000010323e0b4 +[GCDAsyncSocket cfstreamThread:] + 376 (GCDAsyncSocket.m:7655)
7 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 11:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 13:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001b6349068 kevent_id + 8
1 libdispatch.dylib 0x000000018047774c _dispatch_kq_poll + 220 (event_kevent.c:750)
2 libdispatch.dylib 0x0000000180478210 _dispatch_event_loop_wait_for_ownership + 436 (event_kevent.c:2203)
3 libdispatch.dylib 0x0000000180463eb0 __DISPATCH_WAIT_FOR_QUEUE__ + 364 (queue.c:1670)
4 libdispatch.dylib 0x0000000180463a38 _dispatch_sync_f_slow + 164 (queue.c:1751)
5 CoreData 0x0000000187b8b77c -[NSManagedObjectContext performBlockAndWait:] + 268 (NSManagedObjectContext.m:4015)
6 ChatCore 0x00000001043d8d5c specialized NSManagedObjectContext.fetch<A>(where:sortedBy:) + 468 (NSManagedObjectContext+ChatCore.swift:112)
7 ChatCore 0x0000000104363cd0 CoreDataMessageStorage.fetchSentUnreadMessages(forConversationWith:currentUser:) + 792 (CoreDataMessageStorage.swift:663)
8 ChatCore 0x00000001043ce87c ChatMessageStore.fetchSentUnreadMessages(forConversationWith:currentUser:) + 32 (ChatMessageStore.swift:158)
9 ChatCore 0x00000001043ce87c closure #3 in XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 64 (XMPPConversationHistoryModule.swift:137)
10 ChatCore 0x00000001043ce87c thunk for #callee_guaranteed (#guaranteed XMPPJID) -> (#owned [Message]?, #error #owned Error) + 64 (<compiler-generated>:0)
11 ChatCore 0x00000001043ce87c specialized Optional.flatMap<A>(_:) + 64 (<compiler-generated>:0)
12 ChatCore 0x00000001043ce87c specialized XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 744 (XMPPConversationHistoryModule.swift:136)
13 ChatCore 0x0000000104372e80 XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 12 (<compiler-generated>:124)
14 ChatCore 0x0000000104372e80 protocol witness for XMPPMessageArchiveModuleDelegate.xmppMessageArchiveModule(_:didFinishArchiveFor:) in conformance XMPPConversationHistoryModule + 12 (XMPPMessageArchiveModule.swift:0)
15 ChatCore 0x0000000104372e80 specialized XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 356
16 ChatCore 0x0000000104371594 XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 16 (<compiler-generated>:0)
17 ChatCore 0x0000000104371594 #objc XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 96
18 CoreFoundation 0x00000001807c5e04 __invoking___ + 148
19 CoreFoundation 0x000000018076cc3c -[NSInvocation invoke] + 376 (NSForwarding.m:3448)
20 CoreFoundation 0x000000018076c690 -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3549)
21 XMPPFramework 0x0000000104053fac __42-[GCDMulticastDelegate forwardInvocation:]_block_invoke + 40 (GCDMulticastDelegate.m:281)
22 libdispatch.dylib 0x0000000180451c6c _dispatch_call_block_and_release + 32 (init.c:1510)
23 libdispatch.dylib 0x0000000180453a78 _dispatch_client_callout + 20 (object.m:560)
24 libdispatch.dylib 0x000000018045b8bc _dispatch_lane_serial_drain + 692 (inline_internal.h:2603)
25 libdispatch.dylib 0x000000018045c4c4 _dispatch_lane_invoke + 412 (queue.c:3926)
26 libdispatch.dylib 0x00000001804678f4 _dispatch_workloop_worker_thread + 780 (queue.c:6720)
27 libsystem_pthread.dylib 0x00000001f0e02058 _pthread_wqthread + 288 (pthread.c:2496)
28 libsystem_pthread.dylib 0x00000001f0e09620 start_wqthread + 8
Thread 15:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 16:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
EOF
Its because this crash is possibly a side effect of your view configuration and happens in an Apple framework, noticed you are also using a beta version, try running the same code in ios 14.6, if you can reproduce the crash with the device connected you can enable the Exception breakpoint in Xcode to isolate the line that triggered the chain of events.
I am Getting CoreFoundation CFSetRemoveAllValues and crash report as following on crashlytics. Seems like this crash never appeared before, because could not find any solution. Can anyone help me, please? Thanks in advance!
Crashed: Thread
0 CoreFoundation 0x1b5a16cf8 CFSetRemoveAllValues + 52
1 CoreFoundation 0x1b5a0dff0 __CFRunLoopKillOneTimer + 36
2 CoreFoundation 0x1b59aa1e0 CFArrayApplyFunction + 80
3 CoreFoundation 0x1b5a0dfb0 __CFRunLoopDeallocateTimers + 64
4 CoreFoundation 0x1b5a16888 __CFSetApplyFunction_block_invoke + 24
5 CoreFoundation 0x1b5ab10fc CFBasicHashApply + 132
6 CoreFoundation 0x1b5a16864 CFSetApplyFunction + 172
7 CoreFoundation 0x1b5a07784 __CFRunLoopDeallocate + 212
8 CoreFoundation 0x1b5a10290 _CFRelease + 224
9 CoreFoundation 0x1b59f5a08 __CFTSDFinalize + 124
10 libsystem_pthread.dylib 0x1b57a9f8c _pthread_tsd_cleanup + 580
11 libsystem_pthread.dylib 0x1b57a6df4 _pthread_exit + 80
12 libsystem_pthread.dylib 0x1b57a7e64 _pthread_wqthread_legacy_worker_wrap + 94
13 libsystem_pthread.dylib 0x1b57a7c04 _pthread_wqthread + 416
14 libsystem_pthread.dylib 0x1b57aa740 start_wqthread + 8
I couldn't understand where is my problem. My apps crash on launch with this crash log.
iOS 7.0.2 (11A501) Report Version: 104
Exception Type: 00000020 Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information: com.myapps failed
to launch in time
Elapsed total CPU time (seconds): 4.420 (user 4.420, system 0.000),
10% CPU Elapsed application CPU time (seconds): 0.714, 2% CPU
Thread 0: 0 libsystem_kernel.dylib 0x3878ead4
semaphore_wait_trap + 8 1 libdispatch.dylib 0x386dbdec
_dispatch_semaphore_wait_slow + 172 2 CFNetwork 0x2dabab16 CFURLConnectionSendSynchronousRequest + 266 3 Foundation
0x2e883a4e +[NSURLConnection
sendSynchronousRequest:returningResponse:error:] + 110 4 Foundation
0x2e8d8c80 -[NSString initWithContentsOfURL:encoding:error:] + 188 5
QuizPatente! 0x0004d980 0x3e000 + 63872 6
QuizPatente! 0x00048820 0x3e000 + 43040 7
QuizPatente! 0x00048644 0x3e000 + 42564 8 UIKit
0x306fc020 -[UIApplication _stopDeactivatingForReason:] + 376 9
UIKit 0x306e762c -[UIApplication
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 1092 10 UIKit 0x30681be2 -[UIApplication handleEvent:withNewEvent:] + 3138 11 UIKit
0x30680ed8 -[UIApplication sendEvent:] + 68 12 UIKit
0x306e6c9c _UIApplicationHandleEvent + 660 13 GraphicsServices
0x32b6276a _PurpleEventCallback + 606 14 GraphicsServices
0x32b62352 PurpleEventCallback + 30 15 CoreFoundation
0x2dec177c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 32 16 CoreFoundation 0x2dec1716 __CFRunLoopDoSource1 + 342 17 CoreFoundation 0x2debfee2 __CFRunLoopRun + 1402 18 CoreFoundation
0x2de2a53c CFRunLoopRunSpecific + 520 19 CoreFoundation
0x2de2a31e CFRunLoopRunInMode + 102 20 UIKit
0x306e5f3e -[UIApplication _run] + 758 21 UIKit
0x306e11e0 UIApplicationMain + 1132 22 QuizPatente!
0x00045a28 0x3e000 + 31272 23 libdyld.dylib
0x386eaab4 start + 0
Thread 1: 0 libsystem_kernel.dylib 0x3878e838 kevent64 + 24
1 libdispatch.dylib 0x386dd0d0 _dispatch_mgr_invoke +
228 2 libdispatch.dylib 0x386d763e _dispatch_mgr_thread
+ 34
Thread 2: 0 libsystem_kernel.dylib 0x3878ead4
semaphore_wait_trap + 8 1 libdispatch.dylib 0x386dbf90
_dispatch_group_wait_slow + 168 2 GameCenterFoundation 0x2ea86dc4 __35-[GKDaemonProxy buildServiceLookup]_block_invoke + 628
3 libdispatch.dylib 0x386d6100
_dispatch_call_block_and_release + 8 4 libdispatch.dylib 0x386dae72 _dispatch_queue_drain + 370 5 libdispatch.dylib
0x386d7f96 _dispatch_queue_invoke + 38 6 libdispatch.dylib
0x386db74e _dispatch_root_queue_drain + 74 7 libdispatch.dylib
0x386db9cc _dispatch_worker_thread2 + 52 8 libsystem_pthread.dylib
0x38805dfc _pthread_wqthread + 296 9 libsystem_pthread.dylib
0x38805cc0 start_wqthread + 4
Thread 3: 0 libsystem_kernel.dylib 0x387a1c7c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x38805e06 _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x38805cc0 start_wqthread + 4
Thread 4: 0 libsystem_kernel.dylib 0x387a1c7c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x38805e06 _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x38805cc0 start_wqthread + 4
Thread 5: 0 libsystem_kernel.dylib 0x387a0f38
psynch_cvwait + 24 1 libsystem_pthread.dylib 0x38807262 _pthread_cond_wait + 538 2 libsystem_pthread.dylib 0x3880803c pthread_cond_wait + 36 3 Foundation 0x2e86574a
-[NSCondition wait] + 190 4 QuizPatente! 0x0026c5b0 0x3e000 + 2287024 5 Foundation
0x2e8dadc2 _NSThread_main + 1058 6 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 7 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 8 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 6: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de6e1a6 CFRunLoopRun + 94 6
QuizPatente! 0x001ec3b4 0x3e000 + 1762228 7
Foundation 0x2e8dadc2 _NSThread_main + 1058 8
libsystem_pthread.dylib 0x38807c5a _pthread_body + 138 9
libsystem_pthread.dylib 0x38807bca _pthread_start + 98 10
libsystem_pthread.dylib 0x38805ccc thread_start + 4
Thread 7 name: com.apple.NSURLConnectionLoader Thread 7: 0
libsystem_kernel.dylib 0x3878ea84 mach_msg_trap + 20 1
libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2
CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de2a31e CFRunLoopRunInMode +
102 6 Foundation 0x2e86564c
+[NSURLConnection(Loader) _resourceLoadLoop:] + 316 7 Foundation 0x2e8dadc2 _NSThread_main + 1058 8 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 9 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 10 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 8: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de2a31e CFRunLoopRunInMode +
102 6 Foundation 0x2e818822
-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250 7 Foundation 0x2e869664 -[NSRunLoop(NSRunLoop) run] + 76 8 QuizPatente!
0x000e9fd4 0x3e000 + 704468 9 Foundation
0x2e8dadc2 _NSThread_main + 1058 10 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 11 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 12 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 9: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c __CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c _CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de6e1a6 CFRunLoopRun + 94 6
CoreMotion 0x2e4e2394
__lldb_unnamed_function1407$$CoreMotion + 724 7 libsystem_pthread.dylib 0x38807c5a _pthread_body + 138 8
libsystem_pthread.dylib 0x38807bca _pthread_start + 98 9
libsystem_pthread.dylib 0x38805ccc thread_start + 4
I update my app today. The strange behavior has come only when the app is updated. If users reinstall the app it work fine.
Based on:
Application Specific Information: com.myapps failed to launch in time
Elapsed total CPU time (seconds): 4.420 (user 4.420, system 0.000),
10% CPU Elapsed application CPU time (seconds): 0.714, 2% CPU
it looks like your app is not returning from application:didFinishLaunchingWithOptions: in time.
You are probably doing something in that method that is blocking the thread and preventing it from returning.
Unfortunately there is a bug in my App I can't reproduce but my user's can see it. My Logging software unfortunately only gives me this to work with.
This occurs when the user logs in but it dosn't give me any clues as to why this occurs.
PRIMARY THREAD THREAD 0
0 uKash 0x000ce446 testflight_backtrace + 382
1 uKash 0x000cf094 TFSignalHandler + 264
2 libsystem_c.dylib 0x394c9e92 _sigtramp + 42
3 uKash 0x00137fe4 CLSSignalHandler + 196
4 libsystem_c.dylib 0x394c9e92 _sigtramp + 42
5 libsystem_c.dylib 0x394c0122 pthread_kill + 58
6 libsystem_c.dylib 0x394fc972 abort + 94
7 libc++abi.dylib 0x38a9ad4e abort_message + 74
8 libc++abi.dylib 0x38a97ff8 _ZL17default_terminatev + 24
9 libobjc.A.dylib 0x3904ba76 _ZL15_objc_terminatev + 146
10 libc++abi.dylib 0x38a9807a _ZL19safe_handler_callerPFvvE + 78
11 libc++abi.dylib 0x38a98113 _ZSt9terminatev + 19
12 libc++abi.dylib 0x38a99598 __cxa_current_exception_type + 0
13 libobjc.A.dylib 0x3904b9d0 objc_exception_rethrow + 12
14 CoreFoundation 0x31269f20 CFRunLoopRunSpecific + 456
15 CoreFoundation 0x31269d48 CFRunLoopRunInMode + 104
16 GraphicsServices 0x34e422ea GSEventRunModal + 74
17 UIKit 0x3317f300 UIApplicationMain + 1120
18 uKash 0x0008065a main (main.m:17)
19 libdyld.dylib 0x39482b1f start + 3
Hide Other Threads
COM.CRASHLYTICS.MACHEXCEPTIONSERVER
0 libsystem_c.dylib 0x394a2310 _pthread_start + 308
1 libsystem_c.dylib 0x394a21d7 thread_start + 7
COM.APPLE.NSURLCONNECTIONLOADER
0 CoreFoundation 0x312f6da2 __CFRunLoopRun + 882
1 CoreFoundation 0x31269ebc CFRunLoopRunSpecific + 356
2 CoreFoundation 0x31269d48 CFRunLoopRunInMode + 104
3 Foundation 0x31bb63d4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 308
4 Foundation 0x31c39e84 __NSThread__main__ + 972
5 libsystem_c.dylib 0x394a2310 _pthread_start + 308
6 libsystem_c.dylib 0x394a21d7 thread_start + 7
COM.APPLE.CFSOCKET.PRIVATE
0 libsystem_c.dylib 0x394a21d7 thread_start + 7
THREAD 13
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
THREAD 10
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
THREAD 11
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
THREAD 14
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
WEBTHREAD
0 CoreFoundation 0x312f6da2 __CFRunLoopRun + 882
1 CoreFoundation 0x31269ebc CFRunLoopRunSpecific + 356
2 CoreFoundation 0x31269d48 CFRunLoopRunInMode + 104
3 WebCore 0x3727d504 _ZL12RunWebThreadPv + 444
4 libsystem_c.dylib 0x394a2310 _pthread_start + 308
5 libsystem_c.dylib 0x394a21d7 thread_start + 7
THREAD 8
0 CoreFoundation 0x312f6da2 __CFRunLoopRun + 882
1 CoreFoundation 0x31269ebc CFRunLoopRunSpecific + 356
2 CoreFoundation 0x31269d48 CFRunLoopRunInMode + 104
3 Foundation 0x31b8cf96 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
4 Foundation 0x31c30864 -[NSRunLoop(NSRunLoop) run] + 80
5 uKash 0x0008d8c8 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:151)
6 Foundation 0x31c39e84 __NSThread__main__ + 972
7 libsystem_c.dylib 0x394a2310 _pthread_start + 308
8 libsystem_c.dylib 0x394a21d7 thread_start + 7
THREAD 9
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
THREAD 12
0 libsystem_c.dylib 0x394978a3 start_wqthread + 7
THREAD 1
0 0xffffffff 0xffffffff
THREAD 4
0 CoreFoundation 0x312f6da2 __CFRunLoopRun + 882
1 CoreFoundation 0x31269ebc CFRunLoopRunSpecific + 356
2 CoreFoundation 0x31269d48 CFRunLoopRunInMode + 104
3 Foundation 0x31b8cf96 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
4 Foundation 0x31c30864 -[NSRunLoop(NSRunLoop) run] + 80
5 uKash 0x000e468c -[TFNetworkManager networkRunLoopThreadEntry] + 124
6 Foundation 0x31c39e84 __NSThread__main__ + 972
7 libsystem_c.dylib 0x394a2310 _pthread_start + 308
8 libsystem_c.dylib 0x394a21d7 thread_start + 7
THREAD 7
0 CoreFoundation 0x312f6da2 __CFRunLoopRun + 882
1 CoreFoundation 0x31269ebc CFRunLoopRunSpecific + 356
2 CoreFoundation 0x312c89ba CFRunLoopRun + 98
3 uKash 0x00102802 +[UA_ASIHTTPRequest runRequests] (UA_ASIHTTPRequest.m:4794)
4 Foundation 0x31c39e84 __NSThread__main__ + 972
5 libsystem_c.dylib 0x394a2310 _pthread_start + 308
6 libsystem_c.dylib 0x394a21d7 thread_start + 7
LOAD ADDRESS
0x0007f000
REGISTER VALUES
cpsr: 16
exception: 0
far: 950698525
fsr: 7
lr: 1277925
pc: 961841208
r0: 0
r1: 0
r10: 9
r11: 2145364
r12: 37
r2: 1
r3: 989958088
r4: 802691172
r5: 0
r6: 802691236
r7: 802691140
r8: 6
r9: 989915304
sp: 802691112
It looks like you have both Testflight and Crashlytics crash handlers in your app.
If you aren't getting good information out of Testflight, check your Crashlytics account for better crash reports. In our experience we get good crash reports from Crashlytics but similarly unhelpful stack traces from Testflight when we have both SDKs active, and Crashlytics is initialized last.
You need to symbolicate the crash report is pretty easy using Xcode organizer, you just need to drag into it (device tab). For more there is an Apple Tech Note.
After that we can understand better the crash.
It seems something realted to connections, and probably test flight.