React Native App crashing on ios 15.4.1

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.

React native Version - 0.67.2 iPad OS - 15.4.1 Please help us with the 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
}

If any one has an idea what is this crash about or some a clue that help me to continue looking for the specific root issue, I would really appreciate it a lot.
Thanks!!

Please post your issue on the React Native github site: https://github.com/facebook/react-native/issues

MobileTen is correct in that you’re more likely to get help from folks familiar with the third-party tooling you’re using. However, I have one thing I’d like to check before you head down that path. You wrote:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
…
Triggered by Thread:  8

but then posted a backtrace of thread 0, which isn’t helpful. Please post your full crash report. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

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

We will post it in React native community. Please see attached log for further details of the [crash.] Please let us know if there is anything you may find.

Thanks for the crash report. Looking at the crashing thread it’s deep within JavaScriptCore.

Thread 19 name:  com.facebook.react.JavaScript
Thread 19 Crashed:
0   JavaScriptCore … 0x18ba25000 + 3638724 (<redacted> + 20)
1   JavaScriptCore … 0x18ba25000 + 18586752 (WTF::StringBuilder::reifyStri…
2   JavaScriptCore … 0x18ba25000 + 14317648 (<redacted> + 272)
3   JavaScriptCore … 0x18ba25000 + 14476832 (<redacted> + 148)
4   JavaScriptCore … 0x18ba25000 + 2850976 (<redacted> + 160236)
5   JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
6   JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
7   JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
8   JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
9   JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
10  JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
11  JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
12  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
13  JavaScriptCore … 0x18ba25000 + 2842512 (<redacted> + 151772)
14  JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
15  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
16  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
17  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
18  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
19  JavaScriptCore … 0x18ba25000 + 2837064 (<redacted> + 146324)
20  JavaScriptCore … 0x18ba25000 + 2836880 (<redacted> + 146140)
21  JavaScriptCore … 0x18ba25000 + 2664832 (<redacted> + 8)
22  JavaScriptCore … 0x18ba25000 + 10477544 (<redacted> + 532)
23  JavaScriptCore … 0x18ba25000 + 13871796 (<redacted> + 716)
24  JavaScriptCore … 0x18ba25000 + 2850976 (<redacted> + 160236)
25  JavaScriptCore … 0x18ba25000 + 2664832 (<redacted> + 8)
26  JavaScriptCore … 0x18ba25000 + 10477544 (<redacted> + 532)
27  JavaScriptCore … 0x18ba25000 + 13871796 (<redacted> + 716)
28  JavaScriptCore … 0x18ba25000 + 2665264 (<redacted> + 284)
29  JavaScriptCore … 0x18ba25000 + 10477584 (<redacted> + 572)
30  JavaScriptCore … 0x18ba25000 + 13061296 (JSC::profiledCall(JSC::JSGlob…
31  JavaScriptCore … 0x18ba25000 + 3599612 (JSObjectCallAsFunction + 572)
32  jsi            … 0x106a28000 + 40800 (facebook::jsc::JSCRuntime::call(…

The lack of symbolication makes it hard to uncover anything but I believe that you’re hitting this trap

void StringBuilder::reifyString() const
{
    RELEASE_ASSERT(!hasOverflowed());
    …

Unfortunately I don’t know enough about WebKit to tell you what that means. It’s possible that the React Native community might have some ideas. Alternatively, you could ask the WebKit folks.

Share and Enjoy

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

React Native App crashing on ios 15.4.1
 
 
Q