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 2020/07/17 07:11:11 UTC

[GitHub] [cordova-android] secondVISION commented on issue #1002: NullPointerException: 'void android.app.Activity.runOnUiThread(java.lang.Runnable)' on a null object reference

secondVISION commented on issue #1002:
URL: https://github.com/apache/cordova-android/issues/1002#issuecomment-659912485


   Created a sample app: https://github.com/secondVISION/cordova-android-crash
   
   How to reproduce:
   - Click on "Start Cordova"
   - Immediately press the Back key
   - Wait on crash. Cordova will try to load the website in an activity which has already been destroyed.
     - Waiting can take up to 30 seconds I've noticed
   
   Crash log:
   ```
   2020-07-16 14:06:20.618 19256-19392/com.example.cordovacrash D/EGL_emulation: eglMakeCurrent: 0x8c152aa0: ver 3 0 (tinfo 0x8859b8c0)
   2020-07-16 14:06:39.652 19256-19383/com.example.cordovacrash E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
       Process: com.example.cordovacrash, PID: 19256
       java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Activity.runOnUiThread(java.lang.Runnable)' on a null object reference
           at org.apache.cordova.CordovaWebViewImpl$2.run(CordovaWebViewImpl.java:181)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
           at java.lang.Thread.run(Thread.java:764)
   2020-07-16 14:06:39.819 19256-19310/com.example.cordovacrash D/EGL_emulation: eglMakeCurrent: 0xa1305300: ver 3 0 (tinfo 0xa13031f0)
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



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