iOS 11, Unity3d random startup crash - ios

There are 2 unity games developed by different developers (one 2D and another 3D).
They work fine while started in XCode and work fine on iOS 10.
But when downloaded from Appstore to iOS 10 and iOS got upgraded to iOS 11 then app start randomly crash.
Usually it crashes 3 times then start working. On some devices it does not crash at all or other devices it randomly crashes when games start.
Crashlogs have 2 types of errors:
Error 1
Date/Time: 2017-09-26 09:52:53.6413 -0400
Launch Time: 2017-09-26 09:52:50.4289 -0400
OS Version: iPhone OS 11.0 (15A372)
Baseband Version: 6.17.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x0000000105000000
VM Region Info: 0x105000000 is in 0x105000000-0x1069c4000; bytes after start: 0 bytes before end: 27017215
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_SMALL 0000000104800000-0000000105000000 [ 8192K] rw-/rwx SM=PRV
---> mapped file 0000000105000000-00000001069c4000 [ 25.8M] r--/r-- SM=ALI
MALLOC_LARGE 00000001069c4000-00000001069c8000 [ 16K] rw-/rwx SM=PRV
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [0]
Triggered by Thread: 0
Error 2
OS Version: iPhone OS 11.0 (15A372)
Baseband Version: 6.17.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, process-exit watchdog transgression: bundleid exhausted real (wall clock) time allowance of 5.00 seconds | | Elapsed total CPU time (seconds): 9.360 (user 9.360, system 0.000), 94% CPU | Elapsed application CPU time (seconds): 2.920, 29% CPU |
Triggered by Thread: 0
Also I noticed that Tumblr app similarly crashed 3 times on startup after iOS 11 Beta -> iOS 11 release update.
Unity3D 5.5 was used to develop these 2 games.

Upgrading to Unity 2017.1 p3 (patch 3) from Unity3D 5.5 fixed most bugs.
We had few bugs in Unity 2017.1 f1 (f3)

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

React Native ios app is crashing with generic bu

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

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

IOS Simulator quit unexpectedly Xcode 10.1

After running automation tests via Appium in parallel (8 concurrent IOS simulators) I can't run simulator anymore. Reason still is not clear. I tried to reinstall Xcode (v10.1 v9.4), recovered Mac OS, used killall -10 com.apple.CoreSimulator.CoreSimulatorService . When I run simulator there it error message:
Simulator quit unexpectedly
Process: Simulator [1439]
Path: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Identifier: com.apple.iphonesimulator
Version: 10.1 (877)
Build Info: Indigo-877000000000000~218
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Simulator [1439]
User ID: 502
Date/Time: 2019-01-12 16:19:15.922 +0300
OS Version: Mac OS X 10.14.2 (18C54)
Report Version: 12
Bridge OS Version: 3.3 (16P53132a)
Anonymous UUID: 746485C4-4AA2-44F7-C299-5A58EB4FD0C5
Time Awake Since Boot: 170 seconds
System Integrity Protection: enabled
Crashed Thread: 7 Dispatch queue: com.apple.iphonesimulator.deviceCoordinatorQueue.457B5DF1-903C-41E0-A9B7-42D97AC96569
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000070000b351fe8
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [1439]
VM Regions Near 0x70000b351fe8:
Stack 000070000b2cf000-000070000b351000 [ 520K] rw-/rwx SM=COW thread 6
--> STACK GUARD 000070000b351000-000070000b352000 [ 4K] ---/rwx SM=NUL stack guard for thread 7
Stack 000070000b352000-000070000b3d4000 [ 520K] rw-/rwx SM=COW thread 7
Interesting point: when I run Appium test there is still the same error but test is passed as it looks like Simulator still works in headless.
Approximately same issue I have found there but it is a little bit different https://shirome9.wordpress.com/2016/11/27/xcode-quit-unexpectedly/
Do you have any idea ?
I don't know the real cause of the issue, but I got resolved by restarting and opening with different simulator.

Xcode crashes when dragging the UI elements from storyboard

As title.
When I drag and drop the UI elements to my viewcontroller.swift then click "connect", it always crashes. I have cleaned the project and restart the computer but the problem is still there.
Strangely, the Xcode wouldn't crash in the new project.
Can anybody help me? Thanks
Crash film: https://www.youtube.com/watch?v=UP-ufW53slM
This is the crash report.
Process: Xcode [1692] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
com.apple.dt.Xcode Version: 7.3 (10183.3) Build Info:
IDEFrameworks-10183003000000000~2 App Item ID: 497799835 App
External ID: 816750016 Code Type: X86-64 (Native)
Parent Process: ??? [1] Responsible: Xcode [1692]
User ID: 501
Date/Time: 2016-07-13 14:32:44.972 +0800 OS Version:
Mac OS X 10.11.5 (15F34) Report Version: 11 System Integrity
Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY
Application Specific Information: ProductBuildVersion: 7D175 UNCAUGHT
EXCEPTION (NSInvalidArgumentException): +[IDESwiftSourceCodeGenerator
isTeardownCounterpart:]: unrecognized selector sent to class
0x113617ec0 UserInfo: (null) Hints: None
Logical CPU: 0 Error Code: 0x0100001f Trap Number: 133
VM Region Summary: ReadOnly portion of Libraries: Total=555.5M
resident=0K(0%) swapped_out_or_unallocated=555.5M(100%) Writable
regions: Total=1.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%)
unallocated=1.2G(100%)
Model: MacBookAir3,1, BootROM MBA31.0061.B07, 2 processors, Intel Core
2 Duo, 1.6 GHz, 4 GB, SMC 1.67f10 Graphics: NVIDIA GeForce 320M,
NVIDIA GeForce 320M, PCI, 256 MB Memory Module: BANK 0/DIMM0, 2 GB,
DDR3, 1067 MHz, 0x80AD, 0x484D54333235533642465238412D47372020
Please check multiple outlet connected to same object .
Xcode->StoryBoard->OutletCollection->Referencing outlet. Remove all and reconnect

Resources