junit.framework.AssertionFailedError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 1448#249038530
    via GitHub by hideki
    ,
  • GitHub comment 1448#251496920
    via GitHub by hideki
    ,
  • GitHub comment 909#232815709
    via GitHub by hideki
    ,
  • GitHub comment 909#229550267
    via GitHub by hideki
    ,
  • Impacted Cases ============== Reproduce Test Steps ==================== refering this issue: https://crosswalk-project.org/jira/browse/XWALK-5121 copy the XWalkDownloadActivity as launch activity. Manifest xml: <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" /> <meta-data android:name="xwalk_apk_url" android:value="http://146.222.94.197:8080/17.46.448.10/XWalkRuntimeLib.apk" /> <meta-data android:name="xwalk_enable_download_mode" android:value="enable" /> <meta-data android:name="xwalk_verify" android:value="disable" /> MainApplication.java public class MainApplication extends XWalkApplication { public MainApplication() { super(); } @Override public void onCreate() { super.onCreate(); } @Override public Resources getResources() { return super.getResources(); } } Expected Outcome ================ download and install silently without error Actual Outcome ============== can download successfully. 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #4 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: Process: com.test.xwalk.xwalkapplication, PID: 22963 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground() 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:309) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.lang.Thread.run(Thread.java:818) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: Caused by: junit.framework.AssertionFailedError 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at junit.framework.Assert.fail(Assert.java:48) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at junit.framework.Assert.fail(Assert.java:56) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at org.xwalk.core.XWalkUpdater$BackgroundListener$1.doInBackground(XWalkUpdater.java:513) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at org.xwalk.core.XWalkUpdater$BackgroundListener$1.doInBackground(XWalkUpdater.java:505) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)  04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  04-19 04:51:22.899 22963-23047/com.test.xwalk.xwalkapplication E/AndroidRuntime: at java.lang.Thread.run(Thread.java:818)  04-19 04:51:23.354 22963-22983/com.test.xwalk.xwalkapplication E/Surface: getSlotFromBufferLocked: unknown buffer: 0xf3e15b10 Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by jamie jin,
  • Impacted Cases ============== An app which uses XWalkView could not start Reproduce Test Steps ==================== Install an app which uses XWalkView in an activity which extends XWalkActivity. Expected Outcome ================ App should start without crash. Actual Outcome ============== Crash upon start is observed on some devices: junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) at junit.framework.Assert.fail(Assert.java:56) at org.xwalk.core.XWalkActivity.onXWalkRuntimeError(XWalkActivity.java:179) at org.xwalk.core.XWalkActivity.onXWalkLibraryRuntimeError(XWalkActivity.java:117) at org.xwalk.core.XWalkCoreWrapper.handleException(XWalkCoreWrapper.java:237) at org.xwalk.core.ReflectConstructor.handleException(ReflectConstructor.java:78) at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:60) at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:662) at org.xwalk.core.XWalkView.<init>(XWalkView.java:209) at com.company.product.HTML5WebView.<init>(HTML5WebView.java:48) at com.company.product.BrowserActivity.applicationInit(BrowserActivity.java:576) at com.company.product.BrowserActivity.onXWalkReady(BrowserActivity.java:2590) at org.xwalk.core.XWalkActivity.onXWalkLibraryMatched(XWalkActivity.java:156) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:64) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51) at org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84) at com.company.product.BrowserActivity.onStart(BrowserActivity.java:2570) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1188) at android.app.Activity.performStart(Activity.java:5382) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2279) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2362) at android.app.ActivityThread.access$700(ActivityThread.java:168) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5493) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025) at dalvik.system.NativeStart.main(Native Method) Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Martin Swacke,
    • junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) at com.couchbase.lite.multithreads.MultiThreadsTest$11.run(MultiThreadsTest.java:326) at java.lang.Thread.run(Thread.java:841)

    Users with the same issue

    Casper
    2 times, last one,
    Adrien
    9 times, last one,
    treefolk
    5 times, last one,
    andyglick
    1 times, last one,
    Unknown visitor1 times, last one,
    27 more bugmates