App Randomly Crashes both on Expo Go iOS and on TestFlight With EXC_CRASH (SIGABRT)


My Expo app randomly crashes on Expo Go and testFlight. There are no error messages when the app crashes and I have tried adding try/catch and print statements to no luck. Im having a hard time tracking down which part of the code is even failing. Im starting to get some ideas as I comment out parts of the code but still haven’t found anything. There are a number of warning statements including “Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.” but I’m not sure if that has anything to do with the random crashes.

Here is a sample crash log from AppStore Connect:

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 30

And here is the thread that crashes:

Thread 30 name:
Thread 30 Crashed:
0 libsystem_kernel.dylib 0x00000001d372d414 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f1288b50 pthread_kill + 272 (pthread.c:1392)
2 libsystem_c.dylib 0x00000001aec0bbf4 __abort + 116 (abort.c:147)
3 libsystem_c.dylib 0x00000001aec0bb80 abort + 116 (abort.c:118)
4 libc++abi.dylib 0x00000001ba8fccf8 abort_message + 132 (abort_message.cpp:76)
5 libc++abi.dylib 0x00000001ba8ede4c demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67)
6 libobjc.A.dylib 0x00000001ba7f6f64 _objc_terminate() + 144 (
7 libc++abi.dylib 0x00000001ba8fc0e0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
8 libc++abi.dylib 0x00000001ba8fc06c std::terminate() + 44 (cxa_handlers.cpp:88)
9 libdispatch.dylib 0x00000001a53d1dc4 _dispatch_client_callout + 40 (object.m:562)
10 libdispatch.dylib 0x00000001a53d910c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
11 libdispatch.dylib 0x00000001a53d9c5c _dispatch_lane_invoke + 408 (queue.c:3862)
12 libdispatch.dylib 0x00000001a53e3d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
13 libsystem_pthread.dylib 0x00000001f1289814 _pthread_wqthread + 276 (pthread.c:2211)
14 libsystem_pthread.dylib 0x00000001f129076c start_wqthread + 8

“react-native”: “”,
“expo”: “~40.0.0”,

Any help and advice on where I could get started on even debugging this would be much much appreciated