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 2022/09/15 10:51:27 UTC
[GitHub] [cordova-plugin-camera] marina31714 opened a new issue, #806: Application crash when take picture from camera and accept this image
marina31714 opened a new issue, #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806
# Bug Report
## Problem
When I take a picture with the tablet and accept, the application crashes.
### What is expected to happen?
The image is successfully added and the alert is displayed.
### What does actually happen?
The application is crashed.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
When select image from gallery it working fine
When change option to allowEdit to true, no crashes but showed this alert: You can't edit this image.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
`function setOptions(srcType) {
var options = {
// Some common settings are 20, 50, and 100
quality: 75,
destinationType: Camera.DestinationType.FILE_URI,
// In this app, dynamically set the picture source, Camera or photo gallery
sourceType: srcType,
encodingType: Camera.EncodingType.JPEG,
mediaType: Camera.MediaType.PICTURE,
allowEdit: false,
correctOrientation: true
}
return options;
}`
var srcType = Camera.PictureSourceType.CAMERA;
var options = setOptions(srcType);
navigator.camera.getPicture(function cameraSuccess(imageUri) {
alert("get picture");
}, function cameraError(error) {
console.debug("Unable to obtain picture: " + error, "app");
}, options);
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Lenovo tab m10 hd
Android: 11
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Cordova 11.0.0
Cordova platform: Android 10.1.2
Cordova plugins:

Android studio: 2021.1
Android sdk-tools:

Java Jdk:

Gradle:

Operating System: Windows 10 Home
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [ ] 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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.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
[GitHub] [cordova-plugin-camera] FZampetti commented on issue #806: Application crash when take picture from camera and accept this image
Posted by GitBox <gi...@apache.org>.
FZampetti commented on issue #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806#issuecomment-1256221752
I have the same issue, have you solved it?
--
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
[GitHub] [cordova-plugin-camera] mac89 commented on issue #806: Application crash when take picture from camera and accept this image
Posted by GitBox <gi...@apache.org>.
mac89 commented on issue #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806#issuecomment-1271269818
Presumably the same issue as #679
--
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
Re: [I] Application crash when take picture from camera and accept this image [cordova-plugin-camera]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806#issuecomment-2443137854
Closing as stale.
If the "crash" involves the webview restarting, then it isn't a crash. It's the android activity that got killed while the camera is operating, which is normal android lifecycle. Your camera response will be in the `resume` event. [Android Quirk](https://github.com/apache/cordova-plugin-camera?tab=readme-ov-file#android-quirks)
If the app is fatally crashing (completely closes, potentially with "App stopped working" dialog, then it is likely related to `RecoverableSecurityException` error which is indirectly fixed by https://github.com/apache/cordova-plugin-camera/pull/907
--
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
[GitHub] [cordova-plugin-camera] marina31714 commented on issue #806: Application crash when take picture from camera and accept this image
Posted by GitBox <gi...@apache.org>.
marina31714 commented on issue #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806#issuecomment-1257760606
Hi @FZampetti,
I change the plugin. Now I use https://github.com/apache/cordova-plugin-media-capture.
I hope this helps to you.
--
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
Re: [I] Application crash when take picture from camera and accept this image [cordova-plugin-camera]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #806: Application crash when take picture from camera and accept this image
URL: https://github.com/apache/cordova-plugin-camera/issues/806
--
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