Scott J. Pearson created CB-10469:
-------------------------------------

             Summary: Periodic Bug before resume event is called. On SOME 
Androids only
                 Key: CB-10469
                 URL: https://issues.apache.org/jira/browse/CB-10469
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS
         Environment: Mac OSX, Android releases.

cordova --version
5.3.3
            Reporter: Scott J. Pearson
            Priority: Blocker
             Fix For: Master


We do a research app that is the leading of its kind. We have a group in 
Botswana, Africa, who reports that our app crashes when resuming. (Not on load, 
but on resume.) The error messages (below) make it seem that this error is on 
the outside of our code. (We have an onResume function that is always called. I 
haven't found evidence that it reaches this point.)

Interestingly, it only happens on SOME of their Android devices. Also, we have 
not had this bug reported by any of our thousands of other iOS and Android 
users. They bought the Androids in Botswana (above South Africa), so I'm 
guessing that they may have an Android rejected by US inspection. Maybe I'm 
overly cynical.

Anyways, the error messages are below. It seems to be in handing the data 
structure over to the MainActivity. who or data is null. You probably know more 
than I do, though.

D/CordovaInterfaceImpl( 2471): Sending activity result to plugin
D/AndroidRuntime( 2471): Shutting down VM
W/dalvikvm( 2471): threadid=1: thread exiting with uncaught exception (group=0x4
16f1bc0)
E/AndroidRuntime( 2471): FATAL EXCEPTION: main
E/AndroidRuntime( 2471): Process: edu.vanderbilt.redcap, PID: 2471
E/AndroidRuntime( 2471): java.lang.RuntimeException: Unable to resume activity {
edu.vanderbilt.redcap/edu.vanderbilt.redcap.MainActivity}: java.lang.RuntimeExce
ption: Failure delivering result ResultInfo{who=null, request=34, result=-1, dat
a=null} to activity {edu.vanderbilt.redcap/edu.vanderbilt.redcap.MainActivity}:
java.lang.NullPointerException
E/AndroidRuntime( 2471):        at android.app.ActivityThread.performResumeActiv
ity(ActivityThread.java:3056)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.handleResumeActivi
ty(ActivityThread.java:3085)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2498)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.access$800(Activit
yThread.java:166)
E/AndroidRuntime( 2471):        at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1283)
E/AndroidRuntime( 2471):        at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/AndroidRuntime( 2471):        at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.main(ActivityThrea
d.java:5584)
E/AndroidRuntime( 2471):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 2471):        at java.lang.reflect.Method.invoke(Method.java:5
15)
E/AndroidRuntime( 2471):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:1268)
E/AndroidRuntime( 2471):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:1084)
E/AndroidRuntime( 2471):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2471): Caused by: java.lang.RuntimeException: Failure deliveri
ng result ResultInfo{who=null, request=34, result=-1, data=null} to activity {ed
u.vanderbilt.redcap/edu.vanderbilt.redcap.MainActivity}: java.lang.NullPointerEx
ception
E/AndroidRuntime( 2471):        at android.app.ActivityThread.deliverResults(Act
ivityThread.java:3641)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.performResumeActiv
ity(ActivityThread.java:3043)
E/AndroidRuntime( 2471):        ... 12 more
E/AndroidRuntime( 2471): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 2471):        at org.apache.cordova.camera.CameraLauncher.proc
essResultFromCamera(CameraLauncher.java:411)
E/AndroidRuntime( 2471):        at org.apache.cordova.camera.CameraLauncher.onAc
tivityResult(CameraLauncher.java:610)
E/AndroidRuntime( 2471):        at org.apache.cordova.CordovaInterfaceImpl.onAct
ivityResult(CordovaInterfaceImpl.java:120)
E/AndroidRuntime( 2471):        at org.apache.cordova.CordovaActivity.onActivity
Result(CordovaActivity.java:353)
E/AndroidRuntime( 2471):        at android.app.Activity.dispatchActivityResult(A
ctivity.java:5634)
E/AndroidRuntime( 2471):        at android.app.ActivityThread.deliverResults(Act
ivityThread.java:3637)
E/AndroidRuntime( 2471):        ... 13 more
W/ActivityManager(  608):   Force finishing activity edu.vanderbilt.redcap/.Main
Activity




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

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

Reply via email to