cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niko Polvinen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9699) Camera crashing randomly
Date Wed, 07 Oct 2015 07:05:26 GMT

    [ https://issues.apache.org/jira/browse/CB-9699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946385#comment-14946385
] 

Niko Polvinen commented on CB-9699:
-----------------------------------

Better ADB result:

D/CordovaInterfaceImpl(30705): Sending activity result to plugin
D/AndroidRuntime(30705): Shutting down VM
W/dalvikvm(30705): threadid=1: thread exiting with uncaught exception (group=0x415c8d88)
E/AndroidRuntime(30705): FATAL EXCEPTION: main
E/AndroidRuntime(30705): Process: com.conexbird, PID: 30705
E/AndroidRuntime(30705): java.lang.RuntimeException: Unable to resume activity {com.conexbird/com.conexbird.MainActivity}:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=34, result=-1,
data=null} to activity {com.conexbird/com.conexbird.MainActivity}: java.lang.NullPointerException
E/AndroidRuntime(30705):        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2896)
E/AndroidRuntime(30705):        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2925)
E/AndroidRuntime(30705):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime(30705):        at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime(30705):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
E/AndroidRuntime(30705):        at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(30705):        at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(30705):        at android.app.ActivityThread.main(ActivityThread.java:5212)
E/AndroidRuntime(30705):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(30705):        at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(30705):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime(30705):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/AndroidRuntime(30705):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(30705): Caused by: java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=34, result=-1, data=null} to activity {com.conexbird/com.conexbird.MainActivity}:
java.lang.NullPointerException
E/AndroidRuntime(30705):        at android.app.ActivityThread.deliverResults(ActivityThread.java:3515)
E/AndroidRuntime(30705):        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2883)
E/AndroidRuntime(30705):        ... 12 more
E/AndroidRuntime(30705): Caused by: java.lang.NullPointerException
E/AndroidRuntime(30705):        at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:445)
E/AndroidRuntime(30705):        at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:674)
E/AndroidRuntime(30705):        at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
E/AndroidRuntime(30705):        at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:353)
E/AndroidRuntime(30705):        at android.app.Activity.dispatchActivityResult(Activity.java:5432)
E/AndroidRuntime(30705):        at android.app.ActivityThread.deliverResults(ActivityThread.java:3511)
E/AndroidRuntime(30705):        ... 13 more

> Camera crashing randomly
> ------------------------
>
>                 Key: CB-9699
>                 URL: https://issues.apache.org/jira/browse/CB-9699
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 5.2.0
>         Environment: Cordova camera plugin crashes randomly
>            Reporter: Niko Polvinen
>            Assignee: Joe Bowser
>              Labels: patch
>
> Cordova camera plugin crashes the app. Not a outofmemory error.
> Camera options when this happens: 
> {
>                     sourceType: Camera.PictureSourceType.CAMERA,
>                     correctOrientation: true,
>                     quality: 90,
>                     allowEdit: false,
>                     targetWidth: 1200,
>                     destinationType: Camera.DestinationType.FILE_URI,
>                     encodingType: Camera.EncodingType.JPEG,
>                     saveToPhotoAlbum: false
>                 }
> From ADB: 
> E/AndroidRuntime(24879): FATAL EXCEPTION: main
> E/AndroidRuntime(24879): Process: com.conexbird, PID: 24879
> E/AndroidRuntime(24879): java.lang.RuntimeException: Unable to resume activity {com.conexbird/com.conexbird.MainActivity}:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=34, result=-1,
data=null} to activity {com.conexbird/com.conexbird.MainActivity}: java.lang.NullPointerException
> Which leads us to this: http://stackoverflow.com/questions/19042511/android-camera-failure-delivering-result-resultinfowho-null-request-0-resul
> Devices I'v tested: SGS5 Active, Lenovo e3500, sony aqua m2, sony xprea z2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message