junit.framework.AssertionFailedError: Criteria not met in allotted time.

JIRA | Raphael Kubo da Costa | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Due to some technical issues, our Crosswalk Android Tests slave was offline for about a week. https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29/builds/2080 is the first build after it went back up, and it's testing about 10 commits. As you can see, some Android tests are failing. https://github.com/crosswalk-project/crosswalk/pull/3833 reverted a big one and fixed most of them, but there's still one test that is flaky: {code} [FAIL] org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest#testOnShowCustomViewAndPlayWithHtmlControl: junit.framework.AssertionFailedError: Criteria not met in allotted time. at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74) at org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105) at org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661) {code} This test seems to have been flaky for a while. The first occurrence of the failure I could find was here: https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20(Android%20x86)/builds/2039 which obviously did not cause it. We need someone to find the source of flakiness and either revert it or fix the issue.

    JIRA | 10 months ago | Raphael Kubo da Costa
    junit.framework.AssertionFailedError: Criteria not met in allotted time.

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Criteria not met in allotted time.

      at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread()
    2. org.chromium.content
      DOMUtils.waitForMediaPlay
      1. org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74)
      2. org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105)
      2 frames
    3. org.xwalk.core
      OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl
      1. org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64)
      1 frame
    4. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame
    5. 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:190)
      5. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
      6. android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
      7. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661)
      7 frames