Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14104

Webview crash on Android 7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Description

      I'm looking for a webview crash cause in my app which eventually started to happen in Android N. 

      The app doesnt fully crash. It stays opened, but the webview wont load and the users gets nothing but  a blank screen.

      Here follows the logcat error regarding webview initialization:

      05-19 20:48:33.035 5618 5618 I art : Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.db>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
      05-19 20:48:33.035 5618 5618 I art : at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:48)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:75)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:196)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:192)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:141)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:214)
      05-19 20:48:33.035 5618 5618 I art : at void com.editoraautadesouza.agenda.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:32)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6956)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
      05-19 20:48:33.035 5618 5618 I art : at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
      05-19 20:48:33.035 5618 5618 I art : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
      05-19 20:48:33.035 5618 5618 I art : at void android.os.Looper.loop() (Looper.java:154)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
      05-19 20:48:33.035 5618 5618 I art : at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
      05-19 20:48:33.035 5618 5618 I art : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
      05-19 20:48:33.035 5618 5618 I art : Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/data/app/com.android.chrome-2/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-2/lib/arm, /data/app/com.android.chrome-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
      05-19 20:48:33.035 5618 5618 I art : at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:48)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
      05-19 20:48:33.035 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:75)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:196)
      05-19 20:48:33.035 5618 5618 I art : at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:192)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:141)
      05-19 20:48:33.035 5618 5618 I art : at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:214)
      05-19 20:48:33.035 5618 5618 I art : at void com.editoraautadesouza.agenda.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:32)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6956)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
      05-19 20:48:33.035 5618 5618 I art : at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
      05-19 20:48:33.035 5618 5618 I art : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
      05-19 20:48:33.035 5618 5618 I art : at void android.os.Looper.loop() (Looper.java:154)
      05-19 20:48:33.035 5618 5618 I art : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
      05-19 20:48:33.035 5618 5618 I art : at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
      05-19 20:48:33.035 5618 5618 I art : at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
      05-19 20:48:33.035 5618 5618 I art : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
      05-19 20:48:33.035 5618 5618 I art : 
      05-19 20:48:33.039 5618 5618 I art : Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.hb>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse;
      05-19 20:48:33.039 5618 5618 I art : at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:48)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:75)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:196)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:192)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:141)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:214)
      05-19 20:48:33.039 5618 5618 I art : at void com.editoraautadesouza.agenda.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:32)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6956)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
      05-19 20:48:33.039 5618 5618 I art : at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
      05-19 20:48:33.039 5618 5618 I art : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
      05-19 20:48:33.039 5618 5618 I art : at void android.os.Looper.loop() (Looper.java:154)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
      05-19 20:48:33.039 5618 5618 I art : at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
      05-19 20:48:33.039 5618 5618 I art : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
      05-19 20:48:33.039 5618 5618 I art : Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.SafeBrowsingResponse" on path: DexPathList[[zip file "/data/app/com.android.chrome-2/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-2/lib/arm, /data/app/com.android.chrome-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
      05-19 20:48:33.039 5618 5618 I art : at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:48)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
      05-19 20:48:33.039 5618 5618 I art : at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:75)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:196)
      05-19 20:48:33.039 5618 5618 I art : at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:192)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:141)
      05-19 20:48:33.039 5618 5618 I art : at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:214)
      05-19 20:48:33.039 5618 5618 I art : at void com.editoraautadesouza.agenda.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:32)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6956)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
      05-19 20:48:33.039 5618 5618 I art : at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
      05-19 20:48:33.039 5618 5618 I art : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
      05-19 20:48:33.039 5618 5618 I art : at void android.os.Looper.loop() (Looper.java:154)
      05-19 20:48:33.039 5618 5618 I art : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
      05-19 20:48:33.039 5618 5618 I art : at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
      05-19 20:48:33.039 5618 5618 I art : at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
      05-19 20:48:33.039 5618 5618 I art : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
      05-19 20:48:33.039 5618 5618 I art :
      

       

        Attachments

          Activity

            People

            • Assignee:
              bowserj Joey Robert Bowser
              Reporter:
              victormolinar Victor Hugo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: