React Native app crashing on iOS 16.2

Hello, unable to understand what's going on here, but basically, our app logs some info from third-party pkg and then crashes for some reason.

The only thing you can learn from this crash report is that you need to ditch the third-party crash reporter that you’re using in your app )-:

Consider this backtrace:

Thread 0 Crashed:
0   libobjc.A.dylib          … class_createInstance + 4
…
178 inspireApp-Dev           … -[TFCrashReportingFeature sessionCrashed] + 760
179 inspireApp-Dev           … post_crash_callback + 56
180 inspireApp-Dev           … signal_handler_callback + 180
181 inspireApp-Dev           … internal_callback_iterator(int, __siginfo*, __darwin_ucontext*, void*) + 124
182 inspireApp-Dev           … TestFairy_plcrash_signal_handler + 24
183 libsystem_platform.dylib … _sigtramp + 56
184 OrigoSDK                 … 0x10aa00000 + 395164

Frames 183 through 182 indicate that your third-party crash reporter has caught a signal. Later on, in frame 178, it calls into Objective-C. This is completely bogus. Async signal handlers are not allowed to call Objective-C, or Swift, or even allocate memory with malloc. Some of the time that’ll work but it’s never actually correct. And in this case it’s seems to have been working OK until you get to frame 0 and something went horribly wrong.

So, here’s what’s happened here:

  1. In frame 184 your app has actually crashed.

  2. In frame 178 your third-party crash reporter has started breaking the rules.

  3. In frame 0 that’s caught up with it, and your crash reporter has crashed.

  4. The Apple crash reporter caught that and generated this crash report.

There’s nothing you can learn about the original crash from step 1 here; the Apple crash reporter has captured the state of your crash reporter failing in step 3. The original crash state is gone.

Remove your third-party crash reporter and see if you can capture some ‘clean’ crash reports for this.


For more details about the rules of the road for a crash reporter, and why it’s impossible to create a trustworthy third-party crash reporter, see Implementing Your Own Crash Reporter.

Share and Enjoy

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

Very grateful, we will look into it!

React Native app crashing on iOS 16.2
 
 
Q