cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <>
Subject [jira] [Commented] (CB-10309) App crash when using camera plugin to access gallery on Android Moto E
Date Tue, 12 Jan 2016 19:12:39 GMT


Richard B Knoll commented on CB-10309:

If you want to use the fix now (before we do a release), you will also have to generate cordova.js
for the master cordova-android repo. Doing that is a little more involved:

1. {{git clone}} cordova-android (
2. In the same directory, {{git clone}} cordova-js (
3. run {{npm install}} in the cordova-js repo
4. In the cordova-js repo, run {{grunt compile:android}} (might have to reference grunt in
the {{node_modules}} directory if you don't have globally installed)
5. That command will generate {{pkg/}} which you want to rename to {{cordova.js}}
and copy into your cordova-android repo at the path {{cordova-android/bin/templates/project/assets/www/cordova.js}}
6. Then add cordova-android to your project {{cordova platform add <path-to-cordova-android>}}

Sorry about that, it will get regenerated once we do a release.

> App crash when using camera plugin to access gallery on Android Moto E
> ----------------------------------------------------------------------
>                 Key: CB-10309
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 5.1.1
>         Environment: Using Cordova 5.1.1, cordova-plugin-camera 2.0.0 and CrossWalk
>            Reporter: Mikle
>            Assignee: Richard B Knoll
> Currently i am using cordova-plugin-camera 2.0.0 and trying to add some photos from gallery.
On almost all android and iOS devices it works great but on Motorola Moto E it crashes app.
I am also using crosswalk for higher performance. I searched for this problem using logs i
have found this branch of plugin
It seems that this fixes are already merged to plugin but it still crashes my app on that
specific device. 
> Here are logs 
> ERROR:	AndroidRuntime : FATAL EXCEPTION: pool-4-thread-2
> undefined	ERROR:	AndroidRuntime : Process: com.ionicframework.withionic734372, PID: 22807
> undefined	ERROR:	AndroidRuntime : java.lang.NullPointerException: Attempt to invoke virtual
method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object
> undefined	ERROR:	AndroidRuntime : at
> undefined	ERROR:	AndroidRuntime : at
> undefined	ERROR:	AndroidRuntime : at
> undefined	ERROR:	AndroidRuntime : at$000(
> undefined	ERROR:	AndroidRuntime : at$
> undefined	ERROR:	AndroidRuntime : at java.util.concurrent.ThreadPoolExecutor.runWorker(
> undefined	ERROR:	AndroidRuntime : at java.util.concurrent.ThreadPoolExecutor$
> undefined	ERROR:	AndroidRuntime : at
> undefined	WARN:	ActivityManager : Force finishing activity 1 com.ionicframework.withionic734372/.MainActivity
> undefined	INFO:	OpenGLRenderer : Initialized EGL, version 1.4
> Here is my code 
>, cameraError, {
>     quality: 50,
>     encodingType: 0,
>     targetWidth: 800,
>     targetHeight: 600,
>     destinationType: Camera.DestinationType.DATA_URL,
>     sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM
> });

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message