com.google.android.apps.common.testing.ui.espresso.AppNotIdleException: Looped for 1342 iterations over 60 SECONDS. The following Idle Conditions failed ASYNC_TASKS_HAVE_IDLED.

Google Groups | Unknown author | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Finding out what async tasks are keeping app busy.

    Google Groups | 3 years ago | Unknown author
    com.google.android.apps.common.testing.ui.espresso.AppNotIdleException: Looped for 1342 iterations over 60 SECONDS. The following Idle Conditions failed ASYNC_TASKS_HAVE_IDLED.

    Root Cause Analysis

    1. com.google.android.apps.common.testing.ui.espresso.AppNotIdleException

      Looped for 1342 iterations over 60 SECONDS. The following Idle Conditions failed ASYNC_TASKS_HAVE_IDLED.

      at dalvik.system.VMStack.getThreadStackTrace()
    2. Android Platform
      VMStack.getThreadStackTrace
      1. dalvik.system.VMStack.getThreadStackTrace(Native Method)
      1 frame
    3. Java RT
      Thread.getStackTrace
      1. java.lang.Thread.getStackTrace(Thread.java:579)
      1 frame
    4. com.google.android
      ViewInteraction.perform
      1. com.google.android.apps.common.testing.ui.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:69)
      2. com.google.android.apps.common.testing.ui.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:40)
      3. com.google.android.apps.common.testing.ui.espresso.ViewInteraction.runSynchronouslyOnUiThread(ViewInteraction.java:192)
      4. com.google.android.apps.common.testing.ui.espresso.ViewInteraction.doPerform(ViewInteraction.java:90)
      5. com.google.android.apps.common.testing.ui.espresso.ViewInteraction.perform(ViewInteraction.java:73)
      5 frames
    5. com.espresso.utils
      WorkoutTools.showFlipper
      1. com.espresso.utils.ViewUtils.longClickById(ViewUtils.java:61)
      2. com.espresso.utils.WorkoutTools.showFlipper(WorkoutTools.java:35)
      2 frames
    6. com.espresso.test
      WorkoutTest.testHooks
      1. com.espresso.test.WorkoutTest.testHooks(WorkoutTest.java:73)
      1 frame
    7. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame
    8. Android Platform
      InstrumentationTestRunner.onStart
      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:554)
      6 frames
    9. com.google.android
      GoogleInstrumentationTestRunner.onStart
      1. com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner.onStart(GoogleInstrumentationTestRunner.java:167)
      1 frame
    10. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
      1 frame