New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random crash (iOS 13/14/15/16) #5970
Comments
Taking pictures requires a lot of memory, if the device is already low on memory because of background apps running then this can happen, the webview goes out of memory and restarts itself and capacitor reloads current url. |
Just crashed with 588 MB free RAM; {"coords":{"accuracy":14.642268067987077,"speed":-1,"altitude":16.234542846679688,"altitudeAccuracy":25.084850311279297,"latitude":52.734988838405144,"heading":-1,"longitude":6.9070808946711626},"timestamp":1664952672345} |
Either way webViewWebContentProcessDidTerminate is being called, we have no control over when it would be called, in some iOS versions it seems to be called more frequently than in others, ever if there is enough memory. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
When taking a photo and click "Select photo". It randomly crash, (white screen and app restarts.)
It happen more often when some background apps are running.
My code:
` public async takePhoto() {
}
private savePicture(photo: Photo) {
return {
webviewPath: photo.webPath,
data: '',
cssClass: '',
};
}`
Error log:
2022-10-04 09:39:49.597416+0200 App[61959:2477260] [XPC] Handle connection with error: Connection interrupted
2022-10-04 09:39:49.640079+0200 App[61959:2477259] [ServicesDaemonManager] interruptionHandler is called. -[FontServicesDaemonManager connection]_block_invoke
2022-10-04 09:39:50.420514+0200 App[61959:2477255] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-10-04 09:39:50.420610+0200 App[61959:2477255] [ProcessSuspension] 0x110020360 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'GPUProcess Background Assertion' for process with PID=61970, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-10-04 09:39:50.422690+0200 App[61959:2477255] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
Info Ionic:
Ionic:
Ionic CLI : 6.20.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.5
@angular-devkit/build-angular : 14.2.1
@angular-devkit/schematics : 14.2.1
@angular/cli : 14.2.1
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 4.1.0
@capacitor/android : not installed
@capacitor/core : 4.1.0
@capacitor/ios : 4.1.0
The text was updated successfully, but these errors were encountered: