React Native App crash upon review, but can't reproduce it myself

Hi,

I've recently submitted twice a new app and got it refused twice as well because the app crashed in the hands of the tester. I can't reproduce the crash on my devices nor in simulator, and don't understand the crash log.

See attached the crash report sent by the Apple tester.

Context : The app is built using react native & expo using the managed workflow and supposedly no funny stuff.

Some help would be greatly appreciated.

Thanks !

In your crash report

Exception Type:  EXC_CRASH (SIGABRT)

This usually means that the app crashed itself by calling abort. The most common cause of this is an unhandled language exception. And the presence of the Last Exception Backtrace confirms that:

Last Exception Backtrace:
0   CoreFoundation  … __exceptionPreprocess + 220 …
1   libobjc.A.dylib … objc_exception_throw + 60 …
2   racine          …

As to why your app did that, it’s hard to say. To make progress on this you need to symbolicate your log to uncover the identity of the code at frame 2. For more on this, see Adding Identifiable Symbol Names to a Crash Report. Or perhaps escalate this via the support channel for the third-party tools you’re using, because it seems like this this exception is being raised by their runtime.

Share and Enjoy

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

Thank you for your answer Quinn.

With a bit of struggle and a lot of luck my issue has been identified, thanks to :

  • Crashlytics, that gave me the React Native error "Error: Text strings must be rendered within a component".
  • And my mom who navigating the app randomly, crashed it and found out the faulty code :D

Hello Apple Team, We are facing bunch of Crashes with our app especially on OS - 15.4.1 - iPad. Our Application Build in React Native. Below are our combination of Versions.
  1. React native Version - 0.67.2
  2. iPad OS - 15.4.1

Please help us for resolution.

Few Crashes details -

JavaScriptCore: WTFCrashWithInfo(int, char const*, char const*, int) + 20 
Incident Identifier: AF04B559-ED71-4D37-970B-936A4B9C492D
Hardware Model:      iPad11,6
Process:             HN MyClub [22228]
Path:                /private/var/containers/Bundle/Application/7BD07FFF-14C9-439A-BC82-B203D221F70C/HN MyClub.app/HN MyClub
Identifier:          com.herbalife.ncx.ordering
Version:             1.0.104 (3153)
AppStoreTools:       13F15
AppVariant:          1:iPad11,6:15
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.herbalife.ncx.ordering [417]

Date/Time:           2022-05-18 16:21:19.9925 -0500
Launch Time:         2022-05-18 15:21:17.4635 -0500
OS Version:          iPhone OS 15.4.1 (19E258)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000018bda95c4
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  8

Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib        	0x00000001b75dc4e0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x00000001b75dcb24 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x0000000180804820 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x0000000180808cac __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                	0x000000018081c6b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   GraphicsServices              	0x000000019c8b6374 GSEventRunModal + 164 (GSEvent.c:2200)
6   UIKitCore                     	0x0000000183181e88 -[UIApplication _run] + 1100 (UIApplication.m:3511)
7   UIKitCore                     	0x0000000182f035ec UIApplicationMain + 364 (UIApplication.m:5064)
8   HN MyClub                     	0x0000000104dab974 main + 68 (AppDelegate.swift:17)
9   dyld                          	0x0000000105465ce4 start + 520 (dyldMain.cpp:879)


Another Crash

Incident Identifier: 412D9D60-97E1-492D-AEEB-D1B360DFCA72
CrashReporter Key:   920e264a09d2674e3e297b9b826ad4cc2ee24a8c
Hardware Model:      iPad12,1
Process:         HN MyClub [42004]
Path:            /private/var/containers/Bundle/Application/AD416DD9-2515-4AD8-99C4-5D91F71600F7/HN MyClub.app/HN MyClub
Identifier:      com.herbalife.ncx.ordering
Version:         3153 (1.0.104)
Code Type:       ARM-64
Parent Process:  ? [1]

Date/Time:       2022-05-24 11:02:58.148 -0500
OS Version:      iPadOS 15.4.1 (19E258)
Report Version:  104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000000 at 0x000000018bd9d5c4
Crashed Thread:  19

Thread 0:
0   libsystem_kernel.dylib          0x00000001b75d04e0 0x1b75cf000 + 5344 (mach_msg_trap + 8)
1   libsystem_kernel.dylib          0x00000001b75d0b24 0x1b75cf000 + 6948 (mach_msg + 76)
2   CoreFoundation                  0x00000001807f8820 0x1807f1000 + 30752 (<redacted> + 372)
3   CoreFoundation                  0x00000001807fccac 0x1807f1000 + 48300 (<redacted> + 1180)
4   CoreFoundation                  0x00000001808106b8 0x1807f1000 + 128696 (CFRunLoopRunSpecific + 600)
5   GraphicsServices                0x000000019c8aa374 0x19c8a9000 + 4980 (GSEventRunModal + 164)
6   UIKitCore                       0x0000000183175e88 0x182c62000 + 5324424 (<redacted> + 1100)
7   UIKitCore                       0x0000000182ef75ec 0x182c62000 + 2708972 (UIApplicationMain + 364)
8   HN MyClub                       0x0000000102c0f974 0x102c08000 + 31092
9   (null) 0x0000000103349ce4 0x0 + 4348746980

Notable Addresses:
{
    "stack@0x2a1e8fc78": {
        "address": 6658003453,
        "type": "string",
        "value": "void ***::StringBuilder::reifyString() const"
    },
    "stack@0x2a1e8fc80": {
        "address": 6658003373,
        "type": "string",
        "value": "/Library/Caches/com.apple.xbs/Sources/***/Source/***/***/text/StringBuilder.cpp"
    },
    "x1": {
        "address": 6658003373,
        "type": "string",
        "value": "/Library/Caches/com.apple.xbs/Sources/***/Source/***/***/text/StringBuilder.cpp"
    },
    "x2": {
        "address": 6658003453,
        "type": "string",
        "value": "void ***::StringBuilder::reifyString() const"
    }
}

Application Stats:
{
    "active_time_since_last_crash": 76929.9,
    "active_time_since_launch": 76929.9,
    "application_active": true,
    "application_in_foreground": true,
    "background_time_since_last_crash": 97308.6,
    "background_time_since_launch": 97308.6,
    "launches_since_last_crash": 0,
    "sessions_since_last_crash": 7,
    "sessions_since_launch": 7
}

We are facing bunch of Crashes with our app

This seems unrelated to the crash that started this thread (notably, it’s SIGTRAP not SIGABRT). Given that, I’d like you to start a new thread for your problem. Tag it with Debugging so that I see it.

Share and Enjoy

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

React Native App crash upon review, but can't reproduce it myself
 
 
Q