java.util.concurrent.TimeoutException: waitForCallback timed out!

JIRA | Olli Raula | 2 years ago
  1. 0

    Following test is flaky with chromium 14.43.340.0-->(it fails sometimes, rare), also happened once in real device Most times first time fails but sometimes happen also later C 197.382s Main Detailed Logs C 197.382s Main ******************************************************************************** C 197.382s Main [FAIL] org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest#testDoesNotCrashOnInvalidData: C 197.382s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:184) C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:192) C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:198) C 197.382s Main at org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest.testDoesNotCrashOnInvalidData(ShouldInterceptLoadRequestTest.java:148) C 197.382s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 197.382s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 197.382s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 197.382s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) C 197.382s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) C 197.382s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) C 197.382s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853) Test: https://github.com/crosswalk-project/crosswalk/blob/master/test/android/core/javatests/src/org/xwalk/core/xwview/test/ShouldInterceptLoadRequestTest.java#L129

    JIRA | 2 years ago | Olli Raula
    java.util.concurrent.TimeoutException: waitForCallback timed out!
  2. 0

    Following test is flaky with chromium 14.43.340.0-->(it fails sometimes, rare), also happened once in real device Most times first time fails but sometimes happen also later C 197.382s Main Detailed Logs C 197.382s Main ******************************************************************************** C 197.382s Main [FAIL] org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest#testDoesNotCrashOnInvalidData: C 197.382s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:184) C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:192) C 197.382s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:198) C 197.382s Main at org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest.testDoesNotCrashOnInvalidData(ShouldInterceptLoadRequestTest.java:148) C 197.382s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 197.382s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 197.382s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 197.382s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) C 197.382s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) C 197.382s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) C 197.382s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853) Test: https://github.com/crosswalk-project/crosswalk/blob/master/test/android/core/javatests/src/org/xwalk/core/xwview/test/ShouldInterceptLoadRequestTest.java#L129

    JIRA | 2 years ago | Olli Raula
    java.util.concurrent.TimeoutException: waitForCallback timed out!
  3. 0

    See : https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29/builds/1218/steps/xwalk_core_internal_test/logs/stdio {code} C 597.354s Main [FAIL] org.xwalk.core.internal.xwview.test.ExtensionBroadcastInternalTest#test: C 597.354s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 597.354s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:183) C 597.354s Main at org.xwalk.core.internal.xwview.test.XWalkViewInternalTestBase.loadDataSync(XWalkViewInternalTestBase.java:287) C 597.354s Main at org.xwalk.core.internal.xwview.test.XWalkViewInternalTestBase.loadAssetFileAndWaitForTitle(XWalkViewInternalTestBase.java:427) C 597.354s Main at org.xwalk.core.internal.xwview.test.ExtensionBroadcastInternalTest.test(ExtensionBroadcastInternalTest.java:25) C 597.354s Main at java.lang.reflect.Method.invokeNative(Native Method) C 597.355s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 597.355s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 597.355s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 597.355s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 597.355s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 597.355s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 597.355s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) C 597.355s Main C 597.355s Main [FAIL] org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest#testMultiFrames: C 597.355s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 597.355s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:183) C 597.355s Main at org.xwalk.core.internal.xwview.test.XWalkViewInternalTestBase.loadDataSync(XWalkViewInternalTestBase.java:287) C 597.355s Main at org.xwalk.core.internal.xwview.test.XWalkViewInternalTestBase.loadAssetFileAndWaitForTitle(XWalkViewInternalTestBase.java:427) C 597.356s Main at org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest.testMultiFrames(ExtensionEchoInternalTest.java:45) C 597.356s Main at java.lang.reflect.Method.invokeNative(Native Method) C 597.356s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 597.356s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 597.356s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 597.356s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 597.356s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 597.356s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 597.356s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) C 597.356s Main C 597.356s Main [TIMEOUT] org.xwalk.core.internal.xwview.test.WebNotificationTest#testWebNotificationShowAndCloseByUser: C 597.356s Main Timed out waiting for 1 of 1 threads. C 597.356s Main ******************************************************************************** C 597.357s Main Summary C 597.357s Main ******************************************************************************** C 597.357s Main [==========] 34 tests ran. C 597.357s Main [ PASSED ] 30 tests. C 597.357s Main [ FAILED ] 4 tests, listed below: C 597.357s Main [ FAILED ] org.xwalk.core.internal.xwview.test.ExtensionBroadcastInternalTest#test C 597.357s Main [ FAILED ] org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest#testMultiFrames C 597.357s Main [ FAILED ] org.xwalk.core.internal.xwview.test.WebNotificationTest#testWebNotificationShowAndCloseByUser (TIMEOUT) C 597.357s Main [ FAILED ] org.xwalk.core.internal.xwview.test.WebNotificationTest#testWebNotificationShowAndCloseByJs (UNKNOWN) {code}

    JIRA | 2 years ago | Alexis Menard
    java.util.concurrent.TimeoutException: waitForCallback timed out!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Start my Android x86 emulator. {code} $ adb install -r out/Debug/apks/XWalkRuntimeClientEmbeddedShell.apk $ python build/android/test_runner.py instrumentation --test-apk=XWalkRuntimeClientEmbeddedTest -v -f ExternalExtensionTest#testExternalExtensionAsync --num_retries=0 {code} Output is: {code} I 0s Main [host]> adb devices I 0s Main Loading cached proguard output from /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/test.lib.java/XWalkRuntimeClientEmbeddedTest.jar-proguard.pickle I 0s Main [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/third_party/android_tools/sdk/build-tools/19.0.0/aapt dump badging /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/apks/XWalkRuntimeClientEmbeddedTest.apk I 0s Main Will run 1 tests (sharded across devices): ['org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync'] W 0s Main Creating 1 test runners. W 0s 5554 Creating shard 0 for device emulator-5554. I 0s 5554 [5554]> pm path org.xwalk.runtime.client.embedded.test I 0s 5554 [5554]> realpath "/data/app/org.xwalk.runtime.client.embedded.test-1.apk" I 0s 5554 [5554]> LD_LIBRARY_PATH=/data/local/tmp/md5sum/ /data/local/tmp/md5sum/md5sum_bin /data/app/org.xwalk.runtime.client.embedded.test-1.apk I 0s 5554 [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/md5sum_bin_host /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/apks/XWalkRuntimeClientEmbeddedTest.apk I 0s 5554 Skipped install: identical org.xwalk.runtime.client.embedded.test APK already installed W 0s 5554 Pushing data files to device. W 0s 5554 Total data: 0.000MB W 0s 5554 Total data transferred: 0.000MB I 0s 5554 [5554]> ls /root I 4s 5554 http server started: http://localhost:8001 I 4s 5554 Killing host_forwarder. I 4s 5554 [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/host_forwarder --kill-server I 4s 5554 Killing device_forwarder. I 4s 5554 [5554]> /data/local/tmp/forwarder/device_forwarder --kill-server; echo %$? I 4s 5554 [5554]> ps I 4s 5554 [5554]> ps I 4s 5554 [5554]> realpath "/data/local/tmp/forwarder/" I 4s 5554 [5554]> LD_LIBRARY_PATH=/data/local/tmp/md5sum/ /data/local/tmp/md5sum/md5sum_bin /data/local/tmp/forwarder I 5s 5554 [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/md5sum_bin_host /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/forwarder_dist I 5s 5554 Found 0 files that need to be pushed to /data/local/tmp/forwarder/ I 5s 5554 [5554]> LD_LIBRARY_PATH=/data/local/tmp/forwarder/ /data/local/tmp/forwarder/device_forwarder; echo %$? I 5s 5554 Forwarding using commands: [['--serial-id=emulator-5554', '--map', '8000', '8001']] I 5s 5554 [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/host_forwarder --serial-id=emulator-5554 --map 8000 8001 I 5s 5554 Forwarding device port: 8000 to host port: 8001. W 5s Main Running tests with 1 test runners. I 5s 5554 [host]> adb devices I 5s 5554 [5554]> rm /data/local/tmp/chrome_timeout_scale I 5s 5554 [5554]> netstat I 5s 5554 {'class': 'org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync'} # 06/11/14 18:49:17: am instrument -e class 'org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync' -r -w org.xwalk.runtime.client.embedded.test/android.test.InstrumentationTestRunner I 21s 5554 [5554]> dumpsys window windows I 21s 5554 [host]> /home/halton/work/projects/github/crosswalk-project/crosswalk-android/src/out/Debug/host_forwarder --serial-id=emulator-5554 --unmap 8000 C 22s Main ******************************************************************************** C 22s Main Detailed Logs C 22s Main ******************************************************************************** C 22s Main [FAIL] org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync: C 22s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 22s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:183) C 22s Main at org.xwalk.test.util.XWalkTestUtilBase.loadDataSync(XWalkTestUtilBase.java:55) C 22s Main at org.xwalk.test.util.XWalkTestUtilBase.loadAssetFile(XWalkTestUtilBase.java:78) C 22s Main at org.xwalk.test.util.XWalkTestUtilBase.loadAssetFileAndWaitForTitle(XWalkTestUtilBase.java:85) C 22s Main at org.xwalk.test.util.RuntimeClientApiTestBase.testExternalExtensionAsync(RuntimeClientApiTestBase.java:310) C 22s Main at org.xwalk.runtime.client.embedded.test.ExternalExtensionTest.testExternalExtensionAsync(ExternalExtensionTest.java:24) C 22s Main at java.lang.reflect.Method.invokeNative(Native Method) C 22s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 22s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 22s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 22s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) C 22s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) C 22s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554) C 22s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701) C 22s Main ******************************************************************************** C 22s Main Summary C 22s Main ******************************************************************************** C 22s Main ALL (1 tests) C 22s Main PASS (0 tests) C 22s Main FAIL (1 tests): [org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync] C 22s Main CRASH (0 tests): [] C 22s Main TIMEOUT (0 tests): [] C 22s Main UNKNOWN (0 tests): [] C 22s Main ******************************************************************************** {code}

    JIRA | 3 years ago | Halton Huo
    java.util.concurrent.TimeoutException: waitForCallback timed out!
  6. 0

    The commit info is: commit 3534a7c36cfe7c91d8ee99831d6cde94a976eda9 Author: Thiago Marcos P. Santos <thiago.santos@intel.com> Date: Tue Nov 5 21:54:42 2013 +0200 [Extensions] Add an ExtensionServer to the UI Thread Currently for the in-process extensions, there is a separated thread for running the extensions. This patch adds an ExtensionServer to the existing UI Thread, which will allow extensions that interacts with the UI or are limited because of main loop integration to run on the main thread. Below are the 4 failed cases C 129s Main [FAIL] org.xwalk.core.xwview.test.ExtensionBroadcastTest#testExtensionBroadcast: C 129s Main java.util.concurrent.TimeoutException: waitForCallback timed out! C 129s Main at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:179) C 129s Main at org.xwalk.core.xwview.test.XWalkViewTestBase.loadAssetFileAndWaitForTitle(XWalkViewTestBase.java:151) C 129s Main at org.xwalk.core.xwview.test.ExtensionBroadcastTest.testExtensionBroadcast(ExtensionBroadcastTest.java:58) C 129s Main at java.lang.reflect.Method.invokeNative(Native Method) C 129s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 129s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 129s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 129s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 129s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) C 129s Main [FAIL] org.xwalk.core.xwview.test.ExtensionEchoTest#testExtensionEcho: C 129s Main junit.framework.ComparisonFailure: expected:<Pass> but was:<Fail> C 129s Main at org.xwalk.core.xwview.test.ExtensionEchoTest.testExtensionEcho(ExtensionEchoTest.java:60) C 129s Main at java.lang.reflect.Method.invokeNative(Native Method) C 129s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 129s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 129s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 129s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 129s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) C 129s Main [FAIL] org.xwalk.core.xwview.test.ExtensionEchoTest#testExtensionEchoMultiFrames: C 129s Main junit.framework.ComparisonFailure: expected:<Pass> but was:<Fail> C 129s Main at org.xwalk.core.xwview.test.ExtensionEchoTest.testExtensionEchoMultiFrames(ExtensionEchoTest.java:78) C 129s Main at java.lang.reflect.Method.invokeNative(Native Method) C 129s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 129s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 129s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 129s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 129s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) C 129s Main [FAIL] org.xwalk.core.xwview.test.ExtensionEchoTest#testExtensionEchoSync: C 129s Main junit.framework.ComparisonFailure: expected:<Pass> but was:<Fail> C 129s Main at org.xwalk.core.xwview.test.ExtensionEchoTest.testExtensionEchoSync(ExtensionEchoTest.java:69) C 129s Main at java.lang.reflect.Method.invokeNative(Native Method) C 129s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) C 129s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) C 129s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) C 129s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) C 129s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545) C 129s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)

    JIRA | 3 years ago | Yongsheng Zhu
    java.util.concurrent.TimeoutException: waitForCallback timed out!

    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. java.util.concurrent.TimeoutException

      waitForCallback timed out!

      at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback()
    2. org.chromium.content
      CallbackHelper.waitForCallback
      1. org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:184)
      2. org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:192)
      3. org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:198)
      3 frames
    3. org.xwalk.core
      ShouldInterceptLoadRequestTest.testDoesNotCrashOnInvalidData
      1. org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest.testDoesNotCrashOnInvalidData(ShouldInterceptLoadRequestTest.java:148)
      1 frame
    4. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
      2. android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
      3. android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
      4. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
      5. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
      6. android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
      7. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)
      7 frames