You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/08/13 22:39:45 UTC

[jira] [Assigned] (CB-9471) Android crashes: junit.framework.AssertionFailedError

     [ https://issues.apache.org/jira/browse/CB-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-9471:
------------------------------

    Assignee: Joe Bowser

> Android crashes: junit.framework.AssertionFailedError
> -----------------------------------------------------
>
>                 Key: CB-9471
>                 URL: https://issues.apache.org/jira/browse/CB-9471
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 5.1.1
>         Environment: Android 4.2
> Cordova 5.1.1, cordova-android 4.1.0 and cordova-plugin-crosswalk-webview 1.3.0
>            Reporter: Tom Nonk
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 5.1.1
>
>
> I got some Play Store crashes report. Not a lot, but a few since i upgrade to cordova 5.1.1 and cordova-android 4.1.0 using cordova-plugin-crosswalk-webview 1.3.0.
> Here is the detailed report:
> java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tennistemple/com.tennistemple.MainActivity}: java.lang.RuntimeException: Failed to create webview. 
> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
> at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
> at android.app.ActivityThread.access$600(ActivityThread.java:156)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
> at android.os.Handler.dispatchMessage(Handler.java:99)
> at android.os.Looper.loop(Looper.java:153)
> at android.app.ActivityThread.main(ActivityThread.java:5299)
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:511)
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
> at dalvik.system.NativeStart.main(Native Method)
> Caused by: java.lang.RuntimeException: Failed to create webview. 
> at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82)
> at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:202)
> at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:198)
> at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:147)
> at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220)
> at com.tennistemple.MainActivity.onCreate(MainActivity.java:32)
> at android.app.Activity.performCreate(Activity.java:5122)
> at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
> ... 11 more
> Caused by: java.lang.reflect.InvocationTargetException
> at java.lang.reflect.Constructor.constructNative(Native Method)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
> at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80)
> ... 19 more
> Caused by: junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
> at junit.framework.Assert.fail(Assert.java:50)
> at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180)
> at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:105)
> at org.crosswalk.engine.XWalkCordovaView.setGlobalPrefs(XWalkCordovaView.java:37)
> at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:48)
> at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:56)
> ... 22 more
> I hope that is enough to track the issue.
> Thanks by advance



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

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