My app is very similar to a fitness tracker and I have the following bug that I reproduced on iphone 5s and 5c: when I start tracking a run, under certain conditions, the application gets killed while running in the background.
The conditions seem to be:
- as soon as I click on the start tracking button in the app, lock the screen after no more than 2 seconds
- leave the application running in the background for 30 min at least.
I managed to get the crash log on the device, and symbolicate the report, but it doesn't give me any more hint. It just mentions generic react native js and ios classes where it receives the error.
I am using bugsnag to collect crash reports, but in that case it doesn't submit any report (maybe because the app gets killed and it hasn't time to submit the report).
- Does someone has idea about what's going on?
- Any idea about how to push the investigation further?
- Anything significant that I missed from the crash log?
Thanks!
Interesting bits from the crash log:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace <0xF>, Code 0x8badf00d
Triggered by Thread: 0
xcrun atos -arch arm64 -o appDsyms/4C682DF9-82D7-342C-ABC3-6218A1EED4F6.dSYM/Contents/Resources/DWARF/MyApp -l 0x100074000 0x000000010007b2bc 0x00000001001452f4 0x0000000100145318 0x00000001000aba84
main (in MyApp) (main.m:16)
ksmachexc_i_handleExceptions (in MyApp) (KSCrashSentry_MachException.c:237)
ksmachexc_i_handleExceptions (in MyApp) (KSCrashSentry_MachException.c:233)
+[RCTJSCExecutor runRunLoopThread] (in MyApp) (RCTJSCExecutor.mm:211)