[
https://issues.apache.org/jira/browse/CB-12560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15903795#comment-15903795
]
Douglas Blood commented on CB-12560:
------------------------------------
Log of the crash in a Nexus 5 Simulator:
03-10 08:55:23.267 3284-3284/com.dougblood.example W/cr_BindingManager: Cannot
call determinedVisibility() - never saw a connection for the pid: 3284
03-10 08:55:23.274 3284-3284/com.dougblood.example W/cr_BindingManager: Cannot
call determinedVisibility() - never saw a connection for the pid: 3284
03-10 08:55:23.380 3284-3374/com.dougblood.example D/InAppBrowser: target =
_blank
03-10 08:55:23.380 3284-3284/com.dougblood.example D/InAppBrowser: in blank
03-10 08:55:23.384 3284-3284/com.dougblood.example W/cr_AwContents:
onDetachedFromWindow called when already detached. Ignoring
03-10 08:55:23.385 3284-3284/com.dougblood.example I/cr_Ime: ImeThread is not
enabled.
03-10 08:55:23.394 3284-3346/com.dougblood.example E/chromium:
[ERROR:gles2_cmd_decoder.cc(2210)]
[GroupMarkerNotSet(crbug.com/242999)!:54E9FC83]GL ERROR :GL_INVALID_OPERATION :
BackFramebuffer::Create: <- error from previous GL command
03-10 08:55:23.629 3284-3284/com.dougblood.example W/cr_BindingManager: Cannot
call determinedVisibility() - never saw a connection for the pid: 3284
03-10 08:55:23.634 3284-3284/com.dougblood.example W/cr_BindingManager: Cannot
call determinedVisibility() - never saw a connection for the pid: 3284
03-10 08:55:23.738 3284-3374/com.dougblood.example D/InAppBrowser: target =
_blank
03-10 08:55:23.739 3284-3284/com.dougblood.example D/InAppBrowser: in blank
03-10 08:55:23.743 3284-3284/com.dougblood.example W/cr_AwContents:
onDetachedFromWindow called when already detached. Ignoring
03-10 08:55:23.745 3284-3284/com.dougblood.example I/cr_Ime: ImeThread is not
enabled.
03-10 08:55:23.754 3284-3346/com.dougblood.example E/chromium:
[ERROR:gles2_cmd_decoder.cc(2210)]
[GroupMarkerNotSet(crbug.com/242999)!:54950F85]GL ERROR :GL_INVALID_OPERATION :
BackFramebuffer::Create: <- error from previous GL command
03-10 08:55:23.920 3284-3284/com.dougblood.example D/AndroidRuntime: Shutting
down VM
---------
beginning of crash
03-10 08:55:23.920 3284-3284/com.dougblood.example E/AndroidRuntime: FATAL
EXCEPTION: main
Process:
com.dougblood.example, PID: 3284
java.lang.NullPointerException: Attempt to invoke virtual method 'void
org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)'
on a null object reference
at
org.apache.cordova.inappbrowser.InAppBrowser.sendUpdate(InAppBrowser.java:733)
at
org.apache.cordova.inappbrowser.InAppBrowser.sendUpdate(InAppBrowser.java:720)
at
org.apache.cordova.inappbrowser.InAppBrowser.access$1100(InAppBrowser.java:72)
at
org.apache.cordova.inappbrowser.InAppBrowser$InAppBrowserClient.onPageFinished(InAppBrowser.java:849)
at
com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:531)
at
org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:188)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:154)
at
android.app.ActivityThread.main(ActivityThread.java:6119)
at
java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
03-10 08:55:23.922 1722-3091/system_process W/ActivityManager: Force
finishing activity com.dougblood.example/.MainActivity
03-10 08:55:24.051 3284-3374/com.dougblood.example D/InAppBrowser: target =
_blank
03-10 08:55:24.430 1722-1748/system_process W/ActivityManager: Activity pause
timeout for ActivityRecord{7d40e1a u0 com.dougblood.example/.MainActivity t169
f}
03-10 08:55:34.971 1722-1748/system_process W/ActivityManager: Activity destroy
timeout for ActivityRecord{7d40e1a u0 com.dougblood.example/.MainActivity t169
f}
03-10 08:55:40.546 3284-3291/com.dougblood.example I/art: Debugger is active
03-10 08:55:40.704 3284-3291/com.dougblood.example I/art: Starting a blocking
GC Instrumentation
> InAppWebBrowser throws NullPointerException when attempting Callback
> --------------------------------------------------------------------
>
> Key: CB-12560
> URL: https://issues.apache.org/jira/browse/CB-12560
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 6.5.0
> Reporter: Douglas Blood
> Priority: Minor
>
> Using oidc-client.js and a redirection url of "http://localhost/". After
> login the "monitor" will attempt a request every second using the
> InAppBrowser instance that was logged in with.
> Occasionally, this will result in the following null pointer exception.
> java.lang.NullPointerException: Attempt to invoke virtual method 'void
> org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)'
> on a null object reference
> at
> org.apache.cordova.inappbrowser.InAppBrowser.sendUpdate(InAppBrowser.java:733)
> at
> org.apache.cordova.inappbrowser.InAppBrowser.sendUpdate(InAppBrowser.java:720)
> at
> org.apache.cordova.inappbrowser.InAppBrowser.access$1100(InAppBrowser.java:72)
> at
> org.apache.cordova.inappbrowser.InAppBrowser$InAppBrowserClient.onPageFinished(InAppBrowser.java:849)
> at
> com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:531)
> at
> org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:188)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:154)
> at android.app.ActivityThread.main(ActivityThread.java:6119)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
> Additional logs, and a patch will be coming soon.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]