mcrio edited a comment on issue #345: URL: https://github.com/apache/cordova-plugin-camera/issues/345#issuecomment-961833889
Starting seeing this issue on some Xiaomi Redmi Note 5G phones recently. We never used Redmis and MIUI before. Examining the debug logs the app is killed when the camera app opens, before the picture is even taken: ``` W/cr_ChildProcessConn: onServiceDisconnected (crash or killed by oom): pid=9006 bindings:W S state:3 counts:0,0,0,1, E/chromium: [ERROR:aw_browser_terminator.cc(123)] Renderer process (9006) crash detected (code -1). E/chromium: [ERROR:aw_browser_terminator.cc(89)] Render process (9006) kill (OOM or update) wasn't handed by all associated webviews, killing application. ``` Updating my old Ionic 3, Android 6.4.0 app to Android 10 seems to have resolved it but as it's a big jump and I'm not yet comfortable taking it without good testing. I haven't also done extensive testing, maybe the problem just appeared less. Implementing the solution by not allowing the app to sleep in background mode seems to have helped so far. App is not crashing anymore on the Redmi Note but I need to examine if that introduced misbehavior for other phones and android versions. [BackgroundMode plugin](https://github.com/katzer/cordova-plugin-background-mode) The Android behavior with Intents and killing apps by default is very weird. Especially with Xiaomi MIUI which kills the main app although there is enough RAM. At least I'd love to see a configuration option that would allow specifying different scenarios like keeping the main app in memory and if there is a problem with RAM to kill the activity activated as an Intent, or kill both, etc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
