java.lang.RuntimeException: An error occurred while executing doInBackground()

JIRA | jamie jin | 8 months ago
  1. 0

    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 ==============

    JIRA | 8 months ago | jamie jin
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  2. 0

    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 ==============

    JIRA | 8 months ago | jamie jin
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  3. 0

    junit.framework.AssertionFailedError

    GitHub | 3 years ago | iheanyi
    junit.framework.AssertionFailedError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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 ==============

    JIRA | 1 year ago | Martin Swacke
    junit.framework.AssertionFailedError
  6. 0

    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 ==============

    JIRA | 1 year ago | Martin Swacke
    junit.framework.AssertionFailedError

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      No message provided

      at junit.framework.Assert.fail()
    2. JUnit
      Assert.fail
      1. junit.framework.Assert.fail(Assert.java:48)
      2. junit.framework.Assert.fail(Assert.java:56)
      2 frames
    3. org.xwalk.core
      XWalkUpdater$BackgroundListener$1.doInBackground
      1. org.xwalk.core.XWalkUpdater$BackgroundListener$1.doInBackground(XWalkUpdater.java:513)
      2. org.xwalk.core.XWalkUpdater$BackgroundListener$1.doInBackground(XWalkUpdater.java:505)
      2 frames
    4. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame
    6. Android Platform
      AsyncTask$SerialExecutor$1.run
      1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames