Webview causes app crash on Android with Chrome 67 release


We recently updated some test devices to Chrome 67 and clicking on any link in the webview component causes any application we have to using webview crash, including simple demo apps. To reproduce:

  1. Ensure you’re running Chrome version 67 on Android (latest release, not available yet on all devices, we’re using Nexus 5x)
  2. Using webview, load any external page with links on it
  3. click a link.

You should receive the following error:

An uncaught Exception occurred on “main” thread.
com.tns.NativeScriptException: Java Error!
at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
at com.tns.Runtime.callJSMethod(Runtime.java:957)
at com.tns.Runtime.callJSMethod(Runtime.java:941)
at com.tns.Runtime.callJSMethod(Runtime.java:933)
at com.tns.gen.android.webkit.WebViewClient_frnal_ts_helpers_l58_c38__WebViewClientImpl.shouldOverrideUrlLoading(WebViewClient_frnal_ts_helpers_l58_c38__WebViewClientImpl.java:20)
at yk.b(PG:89)
at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(PG:172)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(PG:9)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.Package.getName()’ on a null object reference
at com.tns.Runtime.getTypeMetadata(Runtime.java:682)
at com.tns.Runtime.getTypeMetadata(Runtime.java:660)
… 17 more


Any luck on fixing this. We are also facing same issue.


Added new issue with more details in https://github.com/NativeScript/android-runtime/issues/1075


NS needs to be more responsive to these breaking bugs.

Same boat here.


Same issue here. await bug fix


I tested this on Moto G5 with Android 7.x that has Chrome 67.0.3396.87 and it didn’t crash for me.

Test Case: I clicked on NativeScript website link from my local page, then from there again visited Nativescript-Vue