vendredi 31 mars 2017

how to catch error Recursive looping detected

there are certain tests and crashes randomly way this error, randomly, that is, in different places of the test, I understand that this error falls in a result of the fact that the ui is blocked, and at this moment tries to contact the other threads I see this error, a lot of tests and exactly how to catch is not clear, but it is also not clear to what line my test crashes error

java.lang.IllegalStateException: Recursive looping detected!
    at android.support.test.espresso.core.deps.guava.base.Preconditions.checkState(Preconditions.java:173)
    at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:439)
    at android.support.test.espresso.base.UiControllerImpl.loopMainThreadUntilIdle(UiControllerImpl.java:365)
    at android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:119)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:470)
    at android.support.test.espresso.base.UiControllerImpl.loopMainThreadUntilIdle(UiControllerImpl.java:365)
    at android.support.test.espresso.ViewInteraction$2.run(ViewInteraction.java:161)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5441)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

Aucun commentaire:

Enregistrer un commentaire