epetre opened a new issue #642:
URL: https://github.com/apache/cordova-plugin-camera/issues/642
# Bug Report
Crashlytics is giving us "Unable to create bitmap!" error for some users who
try to take a picture.
## Problem
An error happens as the user uploads what seems to him as a valid picture
and he is stuck on that page because we require a picture.
### What is expected to happen?
Just a normal flow of taking a picture and getting it's URL.
### What does actually happen?
An error occurs and the user is stuck there "Unable to create bitmap!"
## Information
So I don't have more information than what Crashlytics gives me other than
the fact that it happens 100% of the time on Android and the below code and
environment details.
### Command or Code
//Not sure exactly where in the plugin, but here is how we call it.
```
let options = {
quality : 100,
destinationType: this.camera.DestinationType.DATA_URL,
sourceType: sourcetype,
encodingType: this.camera.EncodingType.JPEG, //0 JPEG
saveToPhotoAlbum: false,
correctOrientation: true,
cameraDirection: 1,//front
allowEdit: false
}
return new Promise((resolve, reject) => {
this.camera.getPicture(options).then(base64 => {
}
}
```
### Environment, Platform, Device
Android, no specific version stands out.
### Version information
```
Cordova CLI : 9.0.0 ([email protected])
Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3,
cordova-plugin-ionic-webview 5.0.0, (and 26 other plugins)
```
## 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
- [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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]