You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/19 11:32:26 UTC

[GitHub] [cordova-plugin-camera] alemit edited a comment on issue #345: Camera plugin crashes app on some android phones when an image is taken

alemit edited a comment on issue #345: Camera plugin crashes app on some android phones when an image is taken
URL: https://github.com/apache/cordova-plugin-camera/issues/345#issuecomment-575994903
 
 
   > > I am using FILE_URI destination type still facing the issue with front camera and when I click on retake and then submit the second image the app does not crash
   > 
   > If someone can provide a sample reproduction app that produces this issue, it will help move this ticket along.
   > 
   > https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md
   
   You are not right about the FILE_URI. The app can crash even when using FILE_URI! It's a matter of memory management from Android. This behavior can easily be simulated in the following way: "It’s easy to reproduce/simulate the problem. To do so, you have to set “always destroy activities” to true in the developer settings of your Android phone. Doing so, each time you gonna take a photo, your app in the background gonna be killed and recreated (as cordova does when an Android phone is running on low memory)"
   On one of our test devices(Samsung Galaxy S5) this is also easily reproducible(without this setup) when taking photo in some kind of night portrait mode - while taking photo without light it uses some special mode which takes more time to shoot and obviously more memory.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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