Hi! We are using Cordova iOS 6.2.0 and React 17.0.1 with Vite 3.0.9 under the hood. After build and run it on mobile device via Xcode, we started getting an issue when app is launching. After 2-3 seconds app is crashing with logs below. It happens from 2 to 10 times (sometimes more, this is really random) before it's start working correctly. It's happened on TestFlight version as well and happen on iOS 16.1.1, 16.0 and 15.6.1 versions. We checked this in browser (chrome and safari) and simulators from Xcode and didn't notice this issue there. What we can do or test to fix that? LOGS: 2022-11-18 13:12:57.613724+0100 APP_NAME[] Apache Cordova native platform version 6.2.0 is starting. 2022-11-18 13:12:57.613756+0100 APP_NAME[] Multi-tasking -> Device: YES, App: YES 2022-11-18 13:12:57.625053+0100 APP_NAME[] Could not load the "LaunchStoryboard" image referenced from a nib in the bundle with identifier "app_identifier" 2022-11-18 13:12:57.736017+0100 APP_NAME[] The preference key "AllowNewWindows" is not defined and will default to "FALSE" 2022-11-18 13:12:57.736500+0100 APP_NAME[] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE" 2022-11-18 13:12:57.739127+0100 APP_NAME[] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE" 2022-11-18 13:12:57.739151+0100 APP_NAME[] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE" 2022-11-18 13:12:57.739164+0100 APP_NAME[] CDVWebViewEngine will reload WKWebView if required on resume 2022-11-18 13:12:57.739175+0100 APP_NAME[] Using WKWebView 2022-11-18 13:12:57.739501+0100 APP_NAME[] [CDVTimer][console] 0.016928ms 2022-11-18 13:12:57.739539+0100 APP_NAME[] [CDVTimer][handleopenurl] 0.016928ms 2022-11-18 13:12:57.740044+0100 APP_NAME[] [CDVTimer][intentandnavigationfilter] 0.491023ms 2022-11-18 13:12:57.740083+0100 APP_NAME[] [CDVTimer][gesturehandler] 0.020027ms 2022-11-18 13:12:57.740796+0100 APP_NAME[] [CDVTimer][file] 0.694036ms 2022-11-18 13:12:57.740834+0100 APP_NAME[] CDVIonicKeyboard: no resize 2022-11-18 13:12:57.740847+0100 APP_NAME[] The preference key "HideKeyboardFormAccessoryBar" is not defined and will default to "TRUE" 2022-11-18 13:12:57.740963+0100 APP_NAME[] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE" 2022-11-18 13:12:57.740991+0100 APP_NAME[] [CDVTimer][cdvionickeyboard] 0.180006ms 2022-11-18 13:12:57.741619+0100 APP_NAME[] [CDVTimer][statusbar] 0.610948ms 2022-11-18 13:12:57.741653+0100 APP_NAME[] [CDVTimer][uniquedeviceid] 0.015020ms 2022-11-18 13:12:57.742314+0100 APP_NAME[] [CDVTimer][codepush] 0.640988ms 2022-11-18 13:12:57.742336+0100 APP_NAME[] [CDVTimer][TotalPluginStartup] 2.882957ms 2022-11-18 13:12:57.916630+0100 APP_NAME[] active 2022-11-18 13:12:57.918152+0100 APP_NAME[] PushPlugin skip clear badge 2022-11-18 13:12:59.524093+0100 APP_NAME[] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE" 2022-11-18 13:12:59.550858+0100 APP_NAME[] Calling onDeviceReady 2022-11-18 13:12:59.688983+0100 APP_NAME[] Push Plugin VoIP missing or false 2022-11-18 13:12:59.689451+0100 APP_NAME[] Push Plugin register called 2022-11-18 13:12:59.689481+0100 APP_NAME[] PushPlugin.register: setting badge to false 2022-11-18 13:12:59.689493+0100 APP_NAME[] PushPlugin.register: clear badge is set to 0 2022-11-18 13:12:59.689506+0100 APP_NAME[] PushPlugin.register: better button setup 2022-11-18 13:12:59.701167+0100 APP_NAME[] FCM Sender ID (null) 2022-11-18 13:12:59.701227+0100 APP_NAME[] Using APNS Notification 2022-11-18 13:12:59.751817+0100 APP_NAME[] Push Plugin register success: {length = 32, bytes = 0x52aed786 daaa23a7 8756764a 34226b15 ... 6bf49e58 8a58abf5 } 2022-11-18 13:12:59.759592+0100 APP_NAME[] Registration is: [object Object] 2022-11-18 13:12:59.759728+0100 APP_NAME[] Token is [APP_TOKEN] 2022-11-18 13:12:59.759806+0100 APP_NAME[] Registering token on server side.... 2022-11-18 13:12:59.759997+0100 APP_NAME[] Device object {DEVICE_INFO} 2022-11-18 13:13:01.412823+0100 APP_NAME[] [Process] 0x115003a20 - [PID=48246] WebProcessProxy::didClose: (web process 48246 crash) 2022-11-18 13:13:01.413890+0100 APP_NAME[] [Process] 0x115003a20 - [PID=48246] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash 2022-11-18 13:13:01.416115+0100 APP_NAME[] [ProcessSuspension] 0x11301d1a0 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid 2022-11-18 13:13:01.416685+0100 APP_NAME[] [ProcessSuspension] 0x11301d1a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null) 2022-11-18 13:13:01.422408+0100 APP_NAME[] [Process] 0x108832c18 - [pageProxyID=14, webPageID=15, PID=48246] WebPageProxy::processDidTerminate: (pid 48246), reason=Crash 2022-11-18 13:13:01.463229+0100 APP_NAME[] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}> 2022-11-18 13:13:01.463374+0100 APP_NAME[] [ProcessSuspension] 0x11301d440 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=48246, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} 2022-11-18 13:13:01.499968+0100 APP_NAME[] [Loading] 0x108832c18 - [pageProxyID=14, webPageID=15, PID=48246] WebPageProxy::dispatchProcessDidTerminate: reason=Crash 2022-11-18 13:13:01.552043+0100 APP_NAME[] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=48246
Could you please provide the crash log? Given that this affects old OS version, this seems somewhat unlikely to be a WebKit issue, but we can take a look.
Hey! Thank you for your response. Crash logs added below 2022-11-18 13:13:01.412823+0100 APP_NAME[] [Process] 0x115003a20 - [PID=48246] WebProcessProxy::didClose: (web process 48246 crash) 2022-11-18 13:13:01.413890+0100 APP_NAME[] [Process] 0x115003a20 - [PID=48246] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash 2022-11-18 13:13:01.416115+0100 APP_NAME[] [ProcessSuspension] 0x11301d1a0 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid 2022-11-18 13:13:01.416685+0100 APP_NAME[] [ProcessSuspension] 0x11301d1a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null) 2022-11-18 13:13:01.422408+0100 APP_NAME[] [Process] 0x108832c18 - [pageProxyID=14, webPageID=15, PID=48246] WebPageProxy::processDidTerminate: (pid 48246), reason=Crash 2022-11-18 13:13:01.463229+0100 APP_NAME[] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}> 2022-11-18 13:13:01.463374+0100 APP_NAME[] [ProcessSuspension] 0x11301d440 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=48246, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} 2022-11-18 13:13:01.499968+0100 APP_NAME[] [Loading] 0x108832c18 - [pageProxyID=14, webPageID=15, PID=48246] WebPageProxy::dispatchProcessDidTerminate: reason=Crash 2022-11-18 13:13:01.552043+0100 APP_NAME[] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=48246
<rdar://problem/102665000>
A crash log is a different and much more detailed file that is generated when a crash occurs, please see https://developer.apple.com/documentation/xcode/acquiring-crash-reports-and-diagnostic-logs for details.