App crashes only in release and only on physical device
See original GitHub issueDescription
Update
Issue has been resolved for me by creating a new project and copying all code. I will leave the issue open since there are other people with same/similar problem.
Original
My app crashes right after splashscreen on my physical devices (iPhone and an android phone), before ANY of my code is executed. I can even remove all my code so its a blank shell, it still crashes. That it crashes only in release mode makes it super hard to determine. I’ve noticed that it does NOT crash when AOT is disabled (but I cannot do that for iOS so its still a major issue).
I’ve added the device log output from VS.
Steps to Reproduce
- Deploy in release mode (with AOT)
- Open app on iphone
- Splashscreen appears then hard crash back to homescreen
Version with bug
6.0.408 (current)
Last version that worked well
6.0 Release Candidate 3
Affected platforms
iOS, Android
Affected platform versions
iOS 15
Did you find any workaround?
Disable AOT, but this workaround only works on Android
Relevant log output
Time Device Name Type PID Tag Message
Jul 22 15:22:53 iPhone Error 66 SpringBoard(FrontBoard) Scene FBSceneManager/sceneID:com.testapp-default update failed: <NSError: 0x282893c30; domain: FBSceneErrorDomain; code: 1 (operation-failed); reason: "Scene update failed."> {
Jul 22 15:22:54 iPhone Notice 99 analyticsd Aggregated. Transform: StabilityCrashNumerator3WithIncidentID Dirty: 1 Event: com.apple.stability.crash {"bundleID":"com.testapp","bundleVersion":"1","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n 0,\134n 0\134n)EXC_CRASHSIGABRT","incidentID":"4407CF76-1386-4D97-9188-B009C08F12F5","logwritten":1,"process":"TestApp","terminationReasonNamespace":"<none>","timestamp":1658496174003213}
Jul 22 15:22:54 iPhone Notice 99 analyticsd Aggregated. Transform: StabilityCrashNumerator3 Dirty: 1 Event: com.apple.stability.crash {"bundleID":"com.testapp","bundleVersion":"1","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n 0,\134n 0\134n)EXC_CRASHSIGABRT","incidentID":"4407CF76-1386-4D97-9188-B009C08F12F5","logwritten":1,"process":"TestApp","terminationReasonNamespace":"<none>","timestamp":1658496174003213}
Jul 22 15:22:54 iPhone Notice 99 analyticsd Aggregated. Transform: StabilityCrashNumerator3WithBundleVersion Dirty: 1 Event: com.apple.stability.crash {"bundleID":"com.testapp","bundleVersion":"1","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n 0,\134n 0\134n)EXC_CRASHSIGABRT","incidentID":"4407CF76-1386-4D97-9188-B009C08F12F5","logwritten":1,"process":"TestApp","terminationReasonNamespace":"<none>","timestamp":1658496174003213}
Jul 22 15:22:54 iPhone Notice 99 analyticsd Received event: com.apple.stability.crash {"bundleID":"com.testapp","bundleVersion":"1","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n 0,\134n 0\134n)EXC_CRASHSIGABRT","incidentID":"4407CF76-1386-4D97-9188-B009C08F12F5","logwritten":1,"process":"TestApp","terminationReasonNamespace":"<none>"}
Jul 22 15:22:54 iPhone Notice 262 ReportCrash com.testapp is not a MetricKit client
Jul 22 15:22:54 iPhone Notice 262 ReportCrash(CoreAnalytics) Sending event: com.apple.stability.crash {"bundleID":"com.testapp","bundleVersion":"1","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n 0,\134n 0\134n)EXC_CRASHSIGABRT","incidentID":"4407CF76-1386-4D97-9188-B009C08F12F5","logwritten":1,"process":"TestApp","terminationReasonNamespace":"<none>"}
Jul 22 15:22:53 iPhone Notice 262 ReportCrash loadStoreInfo [platform 2] com.testapp from file:///private/var/containers/Bundle/Application/BF3FD221-BD77-419F-8143-3C60347EF46E/TestApp.app/
Jul 22 15:22:53 iPhone Notice 118 symptomsd(SymptomEvaluator) Failed to find process for com.testapp
Jul 22 15:22:53 iPhone Notice 118 symptomsd(SymptomEvaluator) com.testapp: Foreground: false
Jul 22 15:22:53 iPhone Error 118 symptomsd(SymptomEvaluator) COSMCtrl _foregroundAppActivity incoming bundle com.testapp has nil supplied UUID, finds existing 75BCB216-0B34-3FC9-B011-711A4262C951
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UserNotificationsServer) [com.testapp] com.testapp application state changed to Terminated
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UserNotificationsServer) [com.testapp] Ignore becoming background for application without push registration
Jul 22 15:22:53 iPhone Notice 73 locationd {"msg":"#CLIUA Marking change", "clientKey":"com.testapp", "reason":"Process state from RunningBoard", "assertionLevel":5, "coming":0}
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) didRemoveExternalForegroundApplicationSceneHandle pid:1101 scene:com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default now:<empty>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Client provider invalidated: <FBWorkspace: 0x28105fa70; application<com.testapp>>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) Application process state changed for com.testapp: (null)
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) Process exited: <FBApplicationProcess: 0x105a678d0; application<com.testapp>:1101(vC52)> -> <RBSProcessExitContext| specific, status:<RBSProcessExitStatus| domain:signal(2) code:SIGABRT(6)>>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UIKitCore) No longer tracking: <FBScene: 0x281217a80; sceneID:com.testapp-default>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Invalidating scene: sceneID:com.testapp-default
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) [SBMainDisplaySceneManager sceneManager:didDestroyScene: <FBScene: 0x281217a80; sceneID:com.testapp-default>] - proposing IdleTimerBehavior.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [sceneID:com.testapp-default][1] Scene invalidated.
Jul 22 15:22:53 iPhone Error 66 SpringBoard(FrontBoard) Scene FBSceneManager/sceneID:com.testapp-default update failed: <NSError: 0x282aeb180; domain: FBSceneErrorDomain; code: 1 (operation-failed); reason: "Scene update failed."> {
Jul 22 15:22:53 iPhone Notice 39 mediaserverd(MediaExperience) -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: Client com.testapp with pid '1101' is now Terminated. Background entitlement: NO ActiveLongFormVideoSession: NO WhitelistedLongFormVideoApp NO
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Dropping launch assertion.
Jul 22 15:22:53 iPhone Notice 46 powerd Process runningboardd.35 Released SystemIsActive "application<com.testapp>35-66-9785:FBApplicationProcess" age:00:00:00 id:51539642784 [System: SysAct]
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Removing: <FBApplicationProcess: 0x105a678d0; application<com.testapp>:1101(vC52)>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Process exited: <RBSProcessExitContext| specific, status:<RBSProcessExitStatus| domain:signal(2) code:SIGABRT(6)>>.
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Calculated state for application<com.testapp>: none (role: None)
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Calculated state for application<com.testapp>: none (role: None)
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Removing workspace registration for processHandle: [application<com.testapp>:1101]
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Setting process task state to: Not Running
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Invalidating workspace.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Now flagged as pending exit for reason: launch failed
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Setting process visibility to: Unknown
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Connection to remote process was not established.
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Removed last relative-start-date-defining assertion for process application<com.testapp>
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Removing assertions for terminated process: [application<com.testapp>:1101]
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Removed job for [application<com.testapp>:1101]
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Removing launch job for: [application<com.testapp>:1101]
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) [application<com.testapp>:1101] termination reported by launchd (0, 0, 6)
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Removing process: [application<com.testapp>:1101]
Jul 22 15:22:53 iPhone Notice 156 chronod(ChronoCore) noting foreground launch for com.testapp with widget extension; trigger metadata query
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) Application process state changed for com.testapp: <SBApplicationProcessState: 0x282124320; pid: 1101; taskState: Running; visibility: Foreground>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) Application process state changed for com.testapp: <SBApplicationProcessState: 0x28213efa0; pid: 1101; taskState: Running; visibility: Foreground>
Jul 22 15:22:53 iPhone Notice 73 locationd CLMicroLocationLogic: startRecordingOrLocalizingIfAppropriate Recording parameters: localize: <private>, record: <private>
Jul 22 15:22:53 iPhone Notice 73 locationd {"msg":"CLMicroLocationLogic::startRecordingOrLocalizingIfAppropriate", "request":2, "will start recording":0, "reason":"Recording blacked out", "will start localizing":0, "reason":""}
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UserNotificationsServer) [com.testapp] Foreground app will not request ephemeral notifications isAppClip: NO wantsEphemeral notifications: NO
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UserNotificationsServer) [com.testapp] Ignore becoming foreground for application without push registration
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UserNotificationsServer) [com.testapp] com.testapp application state changed to ForegroundRunning
Jul 22 15:22:53 iPhone Notice 118 symptomsd(SymptomEvaluator) Failed to find process for com.testapp
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Workspace assertion state did change: ForegroundFocal (acquireAssertion = NO).
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [sceneID:com.testapp-default] Scene assertion state did change: ForegroundFocal.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Launch assertion supersedes update of workspace assertion to ForegroundFocal.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [sceneID:com.testapp-default] scene content state changed: preparing
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [sceneID:com.testapp-default] Scene lifecycle state did change: Foreground
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) policy: now generation: 930; keyboardFocusTarget: <token: com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default; pid: 1101>; recentlyUsedScenes: <recentPIDs: [1101]; recentSceneIdentityTokensByPID: {1101: [com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default]}>; selectionPolicy: KeyboardArbiter; shouldSuppressRemoteDeferring: 0
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) policy: MRU target:<pid=1101 token=com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(SpringBoard) didAddExternalForegroundApplicationSceneHandle pid:1101 scene:com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default now:<recentPIDs: [1101]; recentSceneIdentityTokensByPID: {1101: [com.apple.frontboard.systemappservices::sceneID%3Acom.testapp-default]}>
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Assertion 35-66-9786 (target:[application<com.testapp>:1101]) will be created as inactive as originator process has not exited
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Acquiring assertion targeting [application<com.testapp>:1101] from originator [daemon<com.apple.SpringBoard>:66] with description <RBSAssertionDescriptor| "com.apple.frontboard.after-life.interrupted" ID:35-66-9786 target:1101 attributes:[
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UIKitCore) [sceneID:com.testapp-default] Setting deactivation reasons to: 'systemAnimation' for reason: scene settings update - settings are eligible for deactivation reasons.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(UIKitCore) Now tracking: <FBScene: 0x281217a80; sceneID:com.testapp-default>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Workspace interruption policy did change: reconnect
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [sceneID:com.testapp-default][1] Scene activated.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Registered new scene: <FBUIApplicationWorkspaceScene: 0x281c7fa80; sceneID:com.testapp-default> (fromRemnant = 0)
Jul 22 15:22:53 iPhone Notice 118 symptomsd(SymptomEvaluator) com.testapp: Foreground: true
Jul 22 15:22:53 iPhone Notice 91 bluetoothd(CoreUtils) SystemUI unknown identifier: 'sceneID:com.testapp-default' / 'com.testapp'
Jul 22 15:22:53 iPhone Notice 56 wifid(WiFiPolicy) WiFiDeviceManagerCatsSetForegroundApp: CATSUpdate en0: fgApp:com.testapp hs=0 t=1 wl=1 rc=1
Jul 22 15:22:53 iPhone Notice 56 wifid(WiFiPolicy) WiFiDeviceManagerCatsSetLowLatencyApp: CATSUpdate en0: fgApp:com.testapp b=0x0 rc=0
Jul 22 15:22:53 iPhone Notice 56 wifid(WiFiPolicy) WifiDeviceManagerCatsWhitelistedApp: CATS en0: deviceManager:0x104038e00 FgApp:com.testapp stateChange:1 whitelisted=1
Jul 22 15:22:53 iPhone Notice 73 locationd {"msg":"#CLIUA Marking change", "clientKey":"com.testapp", "reason":"Process state from RunningBoard", "assertionLevel":5, "coming":1}
Jul 22 15:22:53 iPhone Notice 39 mediaserverd(CMCapture) <<<< FigCaptureDisplayLayoutMonitor >>>> -[FigCaptureDisplayLayoutMonitor _updateCurrentLayout:]: <FBSDisplayLayout: 0x1016992a0; displayIdentity: Main> { bounds = {{0, 0}, {375, 812}}; interfaceOrientation = "portrait (1)"; backlightLevel = 100; elements = { <SBSDisplayLayoutElement: 0x1016bcef0; sceneID:com.testapp-default; bundleID: com.testapp; frame: {{0, 0}, {375, 812}}; level: 1; role: primary>; } timestamp = 22. Juli 2022 um 15:22:53 MESZ;}
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) change foreground process from list:<FBApplicationProcess: 0x105a678d0; application<com.testapp>:1101(vC52)>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Adding: <FBApplicationProcess: 0x105a678d0; application<com.testapp>:1101(vC52)>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Initial launch assertion state: ForegroundFocal.
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Registering event dispatcher at connect
Jul 22 15:22:53 iPhone Notice 39 mediaserverd(MediaExperience) -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: Sending EndInterruption to com.testapp with pid '1101' because client moved to ForegroundRunning and is not allowed to play in the background
Jul 22 15:22:53 iPhone Notice 39 mediaserverd(MediaExperience) -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: Client com.testapp with pid '1101' is now Foreground Running. Background entitlement: NO ActiveLongFormVideoSession: NO WhitelistedLongFormVideoApp NO
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Setting process visibility to: Foreground
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:1101] Setting process task state to: Running
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) [application<com.testapp>:-1] Bootstrap success!
Jul 22 15:22:53 iPhone Notice 46 powerd Process runningboardd.35 Created SystemIsActive "application<com.testapp>35-66-9785:FBApplicationProcess" age:00:00:00 id:51539642784 [System: SysAct]
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Executing launch request for application<com.testapp> (FBApplicationProcess)
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) [application<com.testapp>:1101] Set darwin role to: UserInteractiveFocal
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) [application<com.testapp>:1101] Resuming task.
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Calculated state for application<com.testapp>: running-active (role: UserInteractiveFocal)
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) [application<com.testapp>:1101] Set jetsam priority to 10 [0] flag[1]
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Assertion 35-66-9785 (target:application<com.testapp>) will be created as active
Jul 22 15:22:53 iPhone Notice 35 runningboardd(RunningBoard) Acquiring assertion targeting application<com.testapp> from originator [daemon<com.apple.SpringBoard>:66] with description <RBSAssertionDescriptor| "FBApplicationProcess" ID:35-66-9785 target:application<com.testapp> attributes:[
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Bootstrapping application<com.testapp> with intent foreground-interactive
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Created <FBWorkspace: 0x28105fa70; application<com.testapp>>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Creating process (sync=true) with identity: application<com.testapp>
Jul 22 15:22:53 iPhone Notice 66 SpringBoard(FrontBoard) Asked to bootstrap a new process with identity: application<com.testapp>
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:34 (16 by maintainers)
Top Results From Across the Web
How to debug what's wrong if app crashes only in release ...
Use adb logcat. OR. Enable debugging in release build, by modifying your android/app/build.gradle like this
Read more >Crashes | App quality
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >React Native Android release build crash on device
For me when I found my app is crashing on device, I connected my device with my loptop and used adb logcat command...
Read more >App crashing on iOS 9 only when re…
However, after releasing the app through the App Store, the app crashes immediately at launch on all iOS 9 devices (mine and customer'...
Read more >How to Diagnose App Issues Using Crash Logs
First, let's walk through the four steps you need to follow to get the crash log after the app crashes. I'll use Android...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I used this in my Maui App. Try this, I hope it help somebody.
I had a problem using Z-Index in Android as well.