aximobile opened a new issue #554: Camera plugin crashes Android 9 device URL: https://github.com/apache/cordova-plugin-camera/issues/554 <!-- Please have a look at the issue templates you get when you click "New issue" in the GitHub UI. We very much prefer issues created by using one of these templates. --> ### Issue Type <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] Bug Report - [ ] Feature Request - [ ] Support Question ## Description The camera plugin randomly crashes my Ionic v1 app when taking a picture with the camera. Sometimes after taking 50 pictures, sometimes after taking 5 pictures. Sometimes, the app doesn't even crash and simply returns to the startup screen after taking the picture. ## Information See next comments for the stacktrace and full logging of the app crash. Its pretty difficult to provide a reproducable case since the crashes happen randomly. The best way to reproduce is to simply create an empty Ionic v1 project, add the plugin and start taking pictures on an **Android 9** device. ### Command or Code See comments below for logging Code: navigator.camera.getPicture(deferred.resolve, function(error) { $log.error("Unable to obtain picture: ", error); deferred.reject(error); }, { allowEdit: false, correctOrientation: true, destinationType: Camera.DestinationType.FILE_URI, direction: Camera.Direction.BACK, encodingType: Camera.EncodingType.JPEG, mediaType: Camera.MediaType.PICTURE, quality: 100, sourceType: Camera.PictureSourceType.CAMERA, targetWidth: 1000, targetHeight: 625 }); <!-- What command or code is needed to reproduce the problem? --> ### Environment, Platform, Device - Environment: Ionic v1 - Ionic CLI: 2.1.17 - Cordova CLI: 7.1.0 - Platform: Android - Camera plugin version: 4.1.0 - Device: Samsung Galaxy tab S5e(Android 9) - Cordova-android version: 8.0.0 ## Checklist <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` --> - [x] I searched for already existing GitHub issues about this - [ ] I updated all Cordova tooling to their most recent version - [x] I included all the necessary information above
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
