You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/11/05 11:54:00 UTC

[GitHub] [cordova-plugin-camera] mcrio commented on issue #345: Camera plugin crashes app on some android phones when an image is taken

mcrio commented 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.
   
   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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org