__pthread_kill + 8 crash after splash screen application launch

This crash happens right after launch. just showing the splash screen.

Exception Type:  EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note:  EXC_CORPSE_NOTIFY

Triggered by Thread:  5



Last Exception Backtrace:

0   CoreFoundation                	0x19fe05288 __exceptionPreprocess + 220 (NSException.m:200)

1   libobjc.A.dylib               	0x1b8b35744 objc_exception_throw + 60 (objc-exception.mm:565)

2   FagDrill                      	0x102affd24 RCTFatal + 568 (RCTAssert.m:147)

3   FagDrill                      	0x102b72e94 -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:] + 476 (RCTExceptionsManager.mm:77)

4   FagDrill                      	0x102b736d8 -[RCTExceptionsManager reportException:] + 1292 (RCTExceptionsManager.mm:147)

5   CoreFoundation                	0x19fd8db24 __invoking___ + 148

6   CoreFoundation                	0x19fdab610 -[NSInvocation invoke] + 468 (NSForwarding.m:3378)

7   CoreFoundation                	0x19fde25fc -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3475)

8   FagDrill                      	0x102b2dd70 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 388 (RCTModuleMethod.mm:584)

9   FagDrill                      	0x102b2fee8 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 452 (RCTNativeModule.mm:183)

10  FagDrill                      	0x102b2fb70 facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const + 68 (RCTNativeModule.mm:104)

11  FagDrill                      	0x102b2fb70 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 112 (RCTNativeModule.mm:95)

12  libdispatch.dylib             	0x19fa6ae6c _dispatch_call_block_and_release + 32 (init.c:1517)

13  libdispatch.dylib             	0x19fa6ca30 _dispatch_client_callout + 20 (object.m:560)

14  libdispatch.dylib             	0x19fa74124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)

15  libdispatch.dylib             	0x19fa74c80 _dispatch_lane_invoke + 392 (queue.c:3944)

16  libdispatch.dylib             	0x19fa7f500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)

17  libsystem_pthread.dylib       	0x210fc10bc _pthread_wqthread + 288 (pthread.c:2599)

18  libsystem_pthread.dylib       	0x210fc0e5c start_wqthread + 8



Thread 0 name:

Thread 0:

0   libsystem_kernel.dylib        	0x00000001d78a24a0 mach_msg_trap + 8

1   libsystem_kernel.dylib        	0x00000001d78a2ae4 mach_msg + 76 (mach_msg.c:119)

2   CoreFoundation                	0x000000019fd72d30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)

3   CoreFoundation                	0x000000019fd771bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)

4   CoreFoundation                	0x000000019fd8abc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)

5   GraphicsServices              	0x00000001bbef6374 GSEventRunModal + 164 (GSEvent.c:2200)

6   UIKitCore                     	0x00000001a26feb58 -[UIApplication _run] + 1100 (UIApplication.m:3511)

7   UIKitCore                     	0x00000001a2480090 UIApplicationMain + 364 (UIApplication.m:5064)

8   FagDrill                      	0x0000000102a08024 main + 80 (main.m:7)

9   dyld                          	0x0000000102f61da4 start + 520 (dyldMain.cpp:879)



Thread 1:

0   libsystem_pthread.dylib       	0x0000000210fc0e54 start_wqthread + 0



Thread 2:

0   libsystem_pthread.dylib       	0x0000000210fc0e54 start_wqthread + 0



Thread 3:

0   libsystem_pthread.dylib       	0x0000000210fc0e54 start_wqthread + 0



Thread 4:

0   libsystem_pthread.dylib       	0x0000000210fc0e54 start_wqthread + 0



Thread 5 name:

Thread 5 Crashed:

0   libsystem_kernel.dylib        	0x00000001d78a8b38 __pthread_kill + 8

1   libsystem_pthread.dylib       	0x0000000210fc73bc pthread_kill + 268 (pthread.c:1668)

2   libsystem_c.dylib             	0x00000001aaf17524 abort + 168 (abort.c:118)

3   libc++abi.dylib               	0x00000001b8c40b7c abort_message + 132 (abort_message.cpp:78)

4   libc++abi.dylib               	0x00000001b8c309c4 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)

5   libobjc.A.dylib               	0x00000001b8b3bc68 _objc_terminate() + 144 (objc-exception.mm:701)

6   libc++abi.dylib               	0x00000001b8c3ff18 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)

7   libc++abi.dylib               	0x00000001b8c3feb4 std::terminate() + 64 (cxa_handlers.cpp:88)

8   libdispatch.dylib             	0x000000019fa6ca44 _dispatch_client_callout + 40 (object.m:563)

9   libdispatch.dylib             	0x000000019fa74124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)

10  libdispatch.dylib             	0x000000019fa74c80 _dispatch_lane_invoke + 392 (queue.c:3944)

11  libdispatch.dylib             	0x000000019fa7f500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)

12  libsystem_pthread.dylib       	0x0000000210fc10bc _pthread_wqthread + 288 (pthread.c:2599)

13  libsystem_pthread.dylib       	0x0000000210fc0e5c start_wqthread + 8

thank you in advance!

Accepted Answer

i solved it. the line at frame 0 says that the OS is terminating the app. ( libsystem_kernel.dylib 0x00000001d78a8b38 __pthread_kill + 8) So had to get the live console log from my device to find the error. (i used iTools 4) to get the logs. And then just look for "Terminating app" i found it on line 4520 so it can be far down. In my case it was an API Error from Firebase. (<Error>: FirebaseError: Firebase: Error (auth/invalid-api-key).)

Use and share

OnlyBlade

__pthread_kill &#43; 8 crash after splash screen application launch
 
 
Q