Crashes when restoring connectivity (only in testflight, not in debug mode)

The crash only occurs for release builds submitted to testflight but not on debug mode.

Incident Identifier: B7EFE42B-B154-47B2-A89D-8176CEE82938
Hardware Model:      iPhone7,1
Process:             Stadius [1471]
Path:                /private/var/containers/Bundle/Application/29702A4A-7EB2-4EDE-8283-3878ED4C543A/Stadius.app/Stadius
Identifier:          com.fligno.Stadius
Version:             11 (1.0)
AppStoreTools:       13C90b
AppVariant:          1:iPhone7,1:12.2
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd [1]
Coalition:           com.fligno.Stadius [545]


Date/Time:           2021-12-29 16:56:00.2358 +0800
Launch Time:         2021-12-29 16:25:54.9315 +0800
OS Version:          iPhone OS 12.5.5 (16H62)
Baseband Version:    7.80.04
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  10

Last Exception Backtrace:
0   CoreFoundation                	0x1cdb87180 __exceptionPreprocess + 228 (NSException.m:172)
1   libobjc.A.dylib               	0x1ccd5f9f8 objc_exception_throw + 56 (objc-exception.mm:557)
2   Stadius                       	0x10103d1a8 RCTFatal + 668 (RCTAssert.m:145)
3   Stadius                       	0x1010b7e58 -[RCTExceptionsManager reportFatal:stack:exceptionId:suppressRedBox:] + 492 (RCTExceptionsManager.mm:76)
4   Stadius                       	0x1010b8780 -[RCTExceptionsManager reportException:] + 1532 (RCTExceptionsManager.mm:145)
5   CoreFoundation                	0x1cdb8e800 __invoking___ + 144
6   CoreFoundation                	0x1cda703c0 -[NSInvocation invoke] + 292 (NSForwarding.m:3052)
7   CoreFoundation                	0x1cda70ff4 -[NSInvocation invokeWithTarget:] + 60 (NSForwarding.m:3123)
8   Stadius                       	0x10106c408 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584)
9   Stadius                       	0x10106e560 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 244 (RCTNativeModule.mm:114)
10  Stadius                       	0x10106e2d0 operator() + 44 (RCTNativeModule.mm:75)
11  Stadius                       	0x10106e2d0 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 88 (RCTNativeModule.mm:67)
12  libdispatch.dylib             	0x1cd5c4a38 _dispatch_call_block_and_release + 24 (init.c:1372)
13  libdispatch.dylib             	0x1cd5c57d4 _dispatch_client_callout + 16 (object.m:511)
14  libdispatch.dylib             	0x1cd56e324 _dispatch_lane_serial_drain$VARIANT$mp + 592 (inline_internal.h:2441)
15  libdispatch.dylib             	0x1cd56ee40 _dispatch_lane_invoke$VARIANT$mp + 428 (queue.c:3805)
16  libdispatch.dylib             	0x1cd5774ac _dispatch_workloop_worker_thread + 596 (queue.c:5889)
17  libsystem_pthread.dylib       	0x1cd7a6114 0x1cd79a000 + 49428
18  libsystem_pthread.dylib       	0x1cd7a8cd4 0x1cd79a000 + 60628

Thread 10 name:
Thread 10 Crashed:
0   libsystem_kernel.dylib        	0x00000001cd7230dc 0x1cd700000 + 143580
1   libsystem_pthread.dylib       	0x00000001cd79c094 0x1cd79a000 + 8340
2   libsystem_c.dylib             	0x00000001cd67bea8 abort + 140 (abort.c:94)
3   libc++abi.dylib               	0x00000001ccd48788 abort_message + 132 (abort_message.cpp:75)
4   libc++abi.dylib               	0x00000001ccd48934 default_terminate_handler() + 308 (cxa_default_handlers.cpp:68)
5   libobjc.A.dylib               	0x00000001ccd5fe00 _objc_terminate() + 124 (objc-exception.mm:693)
6   libc++abi.dylib               	0x00000001ccd54838 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
7   libc++abi.dylib               	0x00000001ccd548c4 std::terminate() + 84 (cxa_handlers.cpp:97)
8   libdispatch.dylib             	0x00000001cd5c57e8 _dispatch_client_callout + 36 (object.m:514)
9   libdispatch.dylib             	0x00000001cd56e324 _dispatch_lane_serial_drain$VARIANT$mp + 592 (inline_internal.h:2441)
10  libdispatch.dylib             	0x00000001cd56ee40 _dispatch_lane_invoke$VARIANT$mp + 428 (queue.c:3805)
11  libdispatch.dylib             	0x00000001cd5774ac _dispatch_workloop_worker_thread + 596 (queue.c:5889)
12  libsystem_pthread.dylib       	0x00000001cd7a6114 0x1cd79a000 + 49428
13  libsystem_pthread.dylib       	0x00000001cd7a8cd4 0x1cd79a000 + 60628

Thread 10 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000283a6c437
    x4: 0x00000001ccd57b71   x5: 0x000000016f2a2460   x6: 0x000000000000006e   x7: 0xffffffffffffffeb
    x8: 0x0000000000000c00   x9: 0x00000001cd7a0888  x10: 0x00000001cd79bf18  x11: 0x0000000000000003
   x12: 0x0000000000000000  x13: 0x0000000000000001  x14: 0x0000000000000010  x15: 0x0000000000000011
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000016f2a3000  x21: 0x000000016f2a2460  x22: 0x000000000000f06f  x23: 0x000000016f2a30e0
   x24: 0x0000000280e3c640  x25: 0x0000000000000000  x26: 0x0000000280e3c640  x27: 0x0000000000000000
   x28: 0x000000016f2a30e0   fp: 0x000000016f2a23c0   lr: 0x00000001cd79c094
    sp: 0x000000016f2a2390   pc: 0x00000001cd7230dc cpsr: 0x00000000

debug

Looking at your crash report, this:

Last Exception Backtrace:

indicates that the app crashed due to an unhandled language exception. The associated backtrace looks like this:

0 CoreFoundation  … __exceptionPreprocess + 228 (NSException.m:172)
1 libobjc.A.dylib … objc_exception_throw + 56 (objc-exception.mm:557)
2 Stadius         … RCTFatal + 668 (RCTAssert.m:145)
3 Stadius         … -[RCTExceptionsManager reportFatal:stack:exceptionId:suppressRedBox:] + 492 (RCTExceptionsManager.mm:76)
4 Stadius         … -[RCTExceptionsManager reportException:] + 1532 (RCTExceptionsManager.mm:145)
5 CoreFoundation  … __invoking___ + 144
6 CoreFoundation  … -[NSInvocation invoke] + 292 (NSForwarding.m:3052)
7 CoreFoundation  … -[NSInvocation invokeWithTarget:] + 60 (NSForwarding.m:3123)
8 Stadius         … -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584)
9 Stadius         … facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 244 (RCTNativeModule.mm:114)

Frame 2 is the key here. It’s code in your app that’s throwing a language exception. As to why it’s doing that, my understanding is that frames 4 through 3 indicate that this language exception is coming from the third-party runtime you’re using in your app. I don’t have any insight into that code. I recommend that you escalate this via the support channel for that runtime.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Crashes when restoring connectivity (only in testflight, not in debug mode)
 
 
Q