-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Camera plugin crashes Android 9 device #554
Comments
Stacktrace of error that propably caused the crash: 01-28 11:47:39.946 10440-10467/? E/PdkUtil: Fail to acquire available samsung key list. |
Hi, We are also facing the same issue where once the camera is opened within the app and a picture is taken, app crashes. This particular issue is observed in both Android and IOS devices. This issue is inconsistent and not able to reproduce in multiple devices. For example in one of the phone model OnePlus 6t crashes the app while using native camera within the app and at the same time another device with same model does not crash the app. |
I am facing this problem as well, never had the chance to test it on ios device, but both of my android devices with Android 9 crash when I am done taking picure with the camera |
I believe the root cause of the problem is primarily the increasing resolution of photos by newer Android devices in combination with the amount of memory on the device. I've tested the plugin on two devices: Device 1: Samsung Galaxy tab S2(2016)
Device 2: Samsung Galaxy tab S5e(2019)
Other things worth mentioning:
|
Is it something related to cordova-camera plugin version. I have installed the latest version of the plugin. I am facing crash issue once updated to a new camera plugin version. Can anyone comment on this ? |
I see the same problem on our app. In other places i read thet my stacktrace could be about permission on disk, but its seem all good. On normal use i save the images correctly, and some rare times i cant. So the permissions are right. I have problems with Samsung Galaxy Tab A 2019 ( not with 2016 that have android 8 ) that have Exynos chip and with LG G7 that have Snapdragon. My code to call the camera : Here the trace : |
See #345 |
Issue Type
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.
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
});
Environment, Platform, Device
Checklist
The text was updated successfully, but these errors were encountered: