React Native ios app is crashing with generic bu - ios

iOS app is built on react native running successfully on emulator device or when i create build with connected device. However, getting crashed for generic build with test flight.
Here is crash report.
{"app_name":"WashOn","timestamp":"2020-10-05 10:08:48.00 -0700","app_version":"1.2","slice_uuid":"e2d19995-e03c-3d92-823a-0c2eb5276114","adam_id":1534014889,"build_version":"4","platform":2,"bundleID":"com.washon.WashOn","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 14.2 (18B5061e)","incident_id":"46F34E11-C6D2-451D-9277-253D6EE02A45","name":"WashOn"}
Incident Identifier: 46F34E11-C6D2-451D-9277-253D6EE02A45
CrashReporter Key: 6c04358e480fe00b97cb90f6551da92d35bd586e
Hardware Model: iPad11,3
Process: WashOn [329]
Path: /private/var/containers/Bundle/Application/84295AEE-9CD3-4BC6-91CE-7738FB47803B/WashOn.app/WashOn
Identifier: com.washon.WashOn
Version: 4 (1.2)
AppStoreTools: 12A7207
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.washon.WashOn [468]
Date/Time: 2020-10-05 10:08:48.3585 -0700
Launch Time: 2020-10-05 10:08:28.2235 -0700
OS Version: iPhone OS 14.2 (18B5061e)
Release Type: Beta
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.washon.WashOn>:329 exhausted real (wall clock) time allowance of 19.81 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 47.840 (user 47.840, system 0.000), 40% CPU", | "Elapsed application CPU time (seconds): 0.032, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Crash report apple response : https://iosapps-ssl.itunes.apple.com/itunes-assets/Purple124/v4/8e/26/eb/8e26eb51-0cad-6c5a-270f-f76e4df1687f/attachment.crashlog-46F34E11-C6D2-451D-9277-253D6EE02A45.txt?accessKey=1603731196_3150586006139646702_zjr3oMBt8U7mpxvjjKIhYgkh4RHscho2Bf4rRBEBc%2F85VEAadvnuW1d8j03sWD24DZP2hmsJEBUdJZBJ5YN8Ty56%2BmbtthKFG5B0exd6q%2B3i5CWO%2FGqTjbNOCxbpbTBTErkpg4R%2FfSHwcRub4VVqpysVFY3s%2FzgXLIrCaImyuVIVrBPO2dVlVuTms7OuSlfhiIp8IZlB1wxtjtzANZEQOXBJg%2B6v7KvyqAzRTaDEoHw%3D

Related

Archive/release crash on start with Maximum call stack size exceeded

My app starts to crash when I make an archive and send it to TestFlight. And when I open the app on a real device app waiting some time on the splash screen and then crash. But debug version works fine without any problem.
I exported the crash from my phone but I am not able to identify issue there:
Incident Identifier: 4D9DD2F1-E124-4AA3-BFEE-ACB83640F332
CrashReporter Key: 174a3861e99306b19bcfafa5e361aed4835d2a96
Hardware Model: iPhone7,1
Process: APPNAME [4880]
Path: /private/var/containers/Bundle/Application/AD750600-B6E2-4FAA-9A0B-2109E460BBC4/appname.app/APP
Identifier: APPNAMEBUNDLE
Version: 6 (1.3.2)
AppStoreTools: 12D4e
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: APPBANDLE [1036]
Date/Time: 2021-03-22 16:17:10.4435 +0100
Launch Time: 2021-03-22 16:16:50.3099 +0100
OS Version: iPhone OS 12.4.8 (16G201)
Baseband Version: 7.80.04
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog
transgression: APPBANDLE exhausted real (wall clock) time allowance of 19.92 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 5.260 (user 5.260, system 0.000), 13% CPU", | "Elapsed application CPU time (seconds): 2.258, 6% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000197d800f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000197d7f5a0 mach_msg + 72
2 CoreFoundation 0x0000000198180914 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x000000019817b824 __CFRunLoopRun + 1360
4 CoreFoundation 0x000000019817afb4 CFRunLoopRunSpecific + 436
...
After some playing, I was able to make a release build as debug version and I had the same issue and I extract error from the Xcode console:
APPNAME[4964:990367] [javascript] 'Failed to print error: ', 'Maximum call stack size exceeded.'
I am not able to identify what could be wrong...
UPDATE
The issue started when I install react-native-unimodules (I don't use expo just vanilla RN but I needed some lib from the expo) When I remove unimodules it is working fine

EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD

Getting this crash and I'm unable to find the root cause
Exception Type: EXC_CRASH (SIGKILL) Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
{"app_name":"Zeus","app_cohort":"2|date=1575473400000&sf=143465&tid=0b25cf8bf3b0b789b1344a52acaf37febe38ef02d00992e624398dc35995709c&ttype=i","app_version":"2.6.0","timestamp":"2019-12-05 22:09:27.15 +0800","slice_uuid":"f7f8cac0-74dd-36a8-9024-b5b4ef6483d4","adam_id":1280245865,"build_version":"20191203.1717","bundleID":"org.geekbang.GeekTime","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.1.3 (17A878)","incident_id":"8DBD8388-D2E4-4026-905F-D26FD59D1A3C","is_beta":true,"name":"Zeus"}
Incident Identifier: 8DBD8388-D2E4-4026-905F-D26FD59D1A3C
Beta Identifier: EA152B2B-875B-45CD-839E-3EC261D63815
Hardware Model: iPhone11,6
Process: Zeus [16757]
Path: /private/var/containers/Bundle/Application/6A45E661-28E7-4CFA-8C5B-BA2CA8C1534C/Zeus.app/Zeus
Identifier: org.geekbang.GeekTime
Version: 20191203.1717 (2.6.0)
AppStoreTools: 11B48b
Beta: YES
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: org.geekbang.GeekTime [2471]
Date/Time: 2019-12-05 22:09:26.3229 +0800
Launch Time: 2019-12-05 09:48:40.1323 +0800
OS Version: iPhone OS 13.1.3 (17A878)
Release Type: User
Baseband Version: 2.01.08
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-update watchdog transgression: application<org.geekbang.GeekTime>:16757 exhausted real (wall clock) time allowance of 10.00 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: scene-update | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 13.570 (user 13.570, system 0.000), 21% CPU", | "Elapsed application CPU time (seconds): 0.587, 1% CPU" | )
Triggered by Thread: 0
The termination reason (code) 0x8badf00d indicates that the application was terminated by the watchdog process of the operating system. This usually happens if the app (a) uses too much time in the background, or (b) needs too long to launch. Please refer to this answer What does 8badf00d mean? for more information.
Not sure, but I think the reason might be because of a bad splash screen. Try to see how many threads of SPRINGBOARD are running on your device by going to Xcode menu: debug-> attach to process

How to check main reason for crash in crash report shared by app store

I got these crash report from apple for one of my app. But am not sure what exactly they want to address. How can i figure out the reason from crash report. So, i can resolve the crash if it exists. Am not able to reproduce any crash.
Date/Time: 2019-09-26 11:57:38.1059 -0700
Launch Time: 2019-09-26 11:57:17.9594 -0700
OS Version: iPhone OS 12.4.1 (16G102)
Baseband Version: 7.80.04
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: MY_APP_NAME exhausted real (wall clock) time allowance of 17.92 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 30.440 (user 30.440, system 0.000), 51% CPU", | "Elapsed application CPU time (seconds): 0.520, 1% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
Termination Description: SPRINGBOARD, scene-create watchdog transgression: MY_APP_NAME exhausted real (wall clock) time allowance of 17.92 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 30.440 (user 30.440, system 0.000), 51% CPU", | "Elapsed application CPU time (seconds): 0.520, 1% CPU" | )
clearly suggests you have a timeout. Time allowance is of 17.92 seconds.

iOS crashing on launch - Can't recreate on any device

I've been having issues getting my app to be approved by Apple and I've tried multiple devices with no luck in recreating this. Does the below log file help identify what the issue is specifically?
{"app_name":"Instant Delay Repay","timestamp":"2018-08-24 10:14:55.60 -0700","app_version":"1.3","slice_uuid":"e3f8474c-ce25-399c-bde2-39826ea9a0ed","adam_id":1422836598,"build_version":"0","bundleID":"com.traintimes.instantdelayrepay","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.4.1 (15G77)","incident_id":"16CC621D-2141-44BE-BDA0-7333AAC1CCA4","name":"Instant Delay Repay"}
Incident Identifier: 16CC621D-2141-44BE-BDA0-7333AAC1CCA4
CrashReporter Key: 316df79fad95f032c78236a07518a02ba5969f46
Hardware Model: xxx
Process: Instant Delay Repay [3647]
Path: /private/var/containers/Bundle/Application/E37F2584-2B61-4B4B-80BC-66E3599464BA/Instant Delay Repay.app/Instant Delay Repay
Identifier: com.traintimes.instantdelayrepay
Version: 0 (1.3)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.traintimes.instantdelayrepay [1797]
Date/Time: 2018-08-24 10:14:55.0774 -0700
Launch Time: 2018-08-24 10:14:34.9410 -0700
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 6.80.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.traintimes.instantdelayrepay exhausted real (wall clock) time allowance of 18.77 seconds | | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 40.880 (user 40.880, system 0.000), 68% CPU", | "Elapsed application CPU time (seconds): 4.870, 8% CPU" | )
Triggered by Thread: 0

App crash Exception Type: EXC_CRASH (SIGKILL) Termination Reason: Namespace SPRINGBOARD

My app was recently rejected as the app crashed on launch by beta testers but when running it in development provisioning profile this does not happen.May I know what this crash log mean when and how to solve it ?
Guideline 2.1 - Performance - App Completeness We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.
Exception Type: EXC_CRASH (SIGKILL) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code
0x8badf00d Termination Description: SPRINGBOARD, scene-create watchdog
transgression: com.app.appname exhausted real (wall clock) time
allowance of 19.03 seconds | | ProcessVisibility: Foreground |
ProcessState: Running | WatchdogEvent: scene-create |
WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed
total CPU time (seconds): 25.420 (user 25.420, system 0.000), 42%
CPU", | "Elapsed application CPU time (seconds): 1.125, 2% CPU" | )
Triggered by Thread: 0
Since you've got error code 0x8badf00d:
The exception code 0x8badf00d indicates that an application has been
terminated by iOS because a watchdog timeout occurred. The application
took too long to launch, terminate, or respond to system events. One
common cause of this is doing synchronous networking on the main
thread. Whatever operation is on Thread 0: needs to be moved to a
background thread, or processed differently, so that it does not block
the main thread.
More info here.
If your application is terminated immediately, it will be iOS12 (or Beta) problem.
In my case, I am using AD-HOC (distribution provision profile) to test on several users. When users upgrade to iOS12, the application terminates immediately when users launch the application.
Also, when I upgrade to iOS12 and launch the application, the application terminates immediately.
In my case the following LOG:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, process-launch watchdog transgression: com.keyholetv.jp.i-keyholetv2 exhausted real (wall clock) time allowance of 20.00 seconds | | ProcessVisibility: Unknown | ProcessState: Running | WatchdogEvent: process-launch | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 2.910 (user 2.910, system 0.000), 7% CPU", | "Elapsed application CPU time (seconds): 0.000, 0% CPU" | )
Triggered by Thread: 0
It looks like that iOS12 changes to handle a distribution provision profile. I am not sure that this is BUG on iOS12 or not.

Resources