Bug P3
Status Update
Comments
at...@mozilla.com <at...@mozilla.com> #2
there are some image for help
ra...@google.com <ra...@google.com>
at...@mozilla.com <at...@mozilla.com> #3
hello?
aa...@gmail.com <aa...@gmail.com> #4
Different stack, probably related
Caused by: java.lang.IllegalStateException: UiAutomation not connected, UiAutomation@5f46670[id=-1, flags=0]
at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1239)
at android.app.UiAutomation.getServiceInfo(UiAutomation.java:497)
at androidx.test.uiautomator.UiDevice.(UiDevice.java:115)
at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261)
Caused by: java.lang.IllegalStateException: UiAutomation not connected, UiAutomation@5f46670[id=-1, flags=0]
at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1239)
at android.app.UiAutomation.getServiceInfo(UiAutomation.java:497)
at androidx.test.uiautomator.UiDevice.(UiDevice.java:115)
at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261)
at...@mozilla.com <at...@mozilla.com> #5
Another similar stack, same issue
java.lang.ExceptionInInitializerError
at org.mozilla.fenix.helpers.HomeActivityTestRuleKt.setLongTapTimeout(HomeActivityTestRule.kt:81)
at org.mozilla.fenix.helpers.HomeActivityIntentTestRule.beforeActivityLaunched(HomeActivityTestRule.kt:64)
at androidx.test.rule.ActivityTestRule.launchActivity(ActivityTestRule.java:373)
at androidx.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:547)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:56)
at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:444)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2205)
Caused by: java.lang.RuntimeException: Error while connecting UiAutomation@dbf9586[id=-1, flags=0]
at android.app.UiAutomation.connect(UiAutomation.java:259)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2176)
at androidx.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:1129)
at androidx.test.uiautomator.QueryController.(QueryController.java:95)
at androidx.test.uiautomator.UiDevice.(UiDevice.java:109)
at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261)
at org.mozilla.fenix.helpers.TestHelper.(TestHelper.kt:62)
... 30 more
java.lang.ExceptionInInitializerError
at org.mozilla.fenix.helpers.HomeActivityTestRuleKt.setLongTapTimeout(HomeActivityTestRule.kt:81)
at org.mozilla.fenix.helpers.HomeActivityIntentTestRule.beforeActivityLaunched(HomeActivityTestRule.kt:64)
at androidx.test.rule.ActivityTestRule.launchActivity(ActivityTestRule.java:373)
at androidx.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:547)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:56)
at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:444)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2205)
Caused by: java.lang.RuntimeException: Error while connecting UiAutomation@dbf9586[id=-1, flags=0]
at android.app.UiAutomation.connect(UiAutomation.java:259)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2176)
at androidx.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:1129)
at androidx.test.uiautomator.QueryController.(QueryController.java:95)
at androidx.test.uiautomator.UiDevice.(UiDevice.java:109)
at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261)
at org.mozilla.fenix.helpers.TestHelper.(TestHelper.kt:62)
... 30 more
ae...@google.com <ae...@google.com> #6
This bug has not been updated since 2022. If this is still occurring please reopen this bug.
br...@gmail.com <br...@gmail.com> #7
This error was reported today, not seen previously
# Crashlytics - Stack trace
# Application: xxxxxxxxxxxx
# Platform: android
# Version: 1.32 (32)
# Issue: c12bd4e35681983bb6878672deb83d22
# Session: 66D1DE22018C00014D354F4BE55EADDF_DNE_0_v2
# Date: Sat Aug 31 2024 00:58:48 GMT+1000 (Australian Eastern Standard Time)
Fatal Exception: java.lang.RuntimeException: Error while connecting UiAutomation@a0c8abc[id=-1, flags=0]
at android.app.UiAutomation.connectWithTimeout(UiAutomation.java:333)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2215)
at android.support.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:3)
at android.support.test.uiautomator.w.<init>(QueryController.java:2)
at android.support.test.uiautomator.UiDevice.<init>(UiDevice.java:5)
at android.support.test.uiautomator.UiDevice.getInstance(UiDevice.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule.provideUiDevice(CrawlPlatformModule.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.provideUiDevice(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:2)
at androidx.test.tools.crawler.obfuscated.ct.d.get(DoubleCheck.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiAutomatorInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.hybridInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.uiInteractionController(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformAction(RemotePlatform.java:21)
at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:59)
at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$androidx-test-tools-crawler-platform-RemotePlatform(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda0.run(:6)
at java.lang.Thread.run(Thread.java:920)
Caused by android.os.DeadObjectException:
at android.os.BinderProxy.transactNative(BinderProxy.java)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.app.IUiAutomationConnection$Stub$Proxy.connect(IUiAutomationConnection.java:507)
at android.app.UiAutomation.connectWithTimeout(UiAutomation.java:324)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2215)
at android.support.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:3)
at android.support.test.uiautomator.w.<init>(QueryController.java:2)
at android.support.test.uiautomator.UiDevice.<init>(UiDevice.java:5)
at android.support.test.uiautomator.UiDevice.getInstance(UiDevice.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule.provideUiDevice(CrawlPlatformModule.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.provideUiDevice(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:2)
at androidx.test.tools.crawler.obfuscated.ct.d.get(DoubleCheck.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiAutomatorInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.hybridInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.uiInteractionController(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformAction(RemotePlatform.java:21)
at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:59)
at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$androidx-test-tools-crawler-platform-RemotePlatform(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda0.run(:6)
at java.lang.Thread.run(Thread.java:920)
Firebase Background Thread #0:
at sun.misc.Unsafe.park(Unsafe.java)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java:47)
at java.lang.Thread.run(Thread.java:920)
# Crashlytics - Stack trace
# Application: xxxxxxxxxxxx
# Platform: android
# Version: 1.32 (32)
# Issue: c12bd4e35681983bb6878672deb83d22
# Session: 66D1DE22018C00014D354F4BE55EADDF_DNE_0_v2
# Date: Sat Aug 31 2024 00:58:48 GMT+1000 (Australian Eastern Standard Time)
Fatal Exception: java.lang.RuntimeException: Error while connecting UiAutomation@a0c8abc[id=-1, flags=0]
at android.app.UiAutomation.connectWithTimeout(UiAutomation.java:333)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2215)
at android.support.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:3)
at android.support.test.uiautomator.w.<init>(QueryController.java:2)
at android.support.test.uiautomator.UiDevice.<init>(UiDevice.java:5)
at android.support.test.uiautomator.UiDevice.getInstance(UiDevice.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule.provideUiDevice(CrawlPlatformModule.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.provideUiDevice(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:2)
at androidx.test.tools.crawler.obfuscated.ct.d.get(DoubleCheck.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiAutomatorInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.hybridInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.uiInteractionController(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformAction(RemotePlatform.java:21)
at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:59)
at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$androidx-test-tools-crawler-platform-RemotePlatform(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda0.run(:6)
at java.lang.Thread.run(Thread.java:920)
Caused by android.os.DeadObjectException:
at android.os.BinderProxy.transactNative(BinderProxy.java)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.app.IUiAutomationConnection$Stub$Proxy.connect(IUiAutomationConnection.java:507)
at android.app.UiAutomation.connectWithTimeout(UiAutomation.java:324)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2215)
at android.support.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:3)
at android.support.test.uiautomator.w.<init>(QueryController.java:2)
at android.support.test.uiautomator.UiDevice.<init>(UiDevice.java:5)
at android.support.test.uiautomator.UiDevice.getInstance(UiDevice.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule.provideUiDevice(CrawlPlatformModule.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.provideUiDevice(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:1)
at androidx.test.tools.crawler.platform.dagger.CrawlPlatformModule_ProvideUiDeviceFactory.get(CrawlPlatformModule_ProvideUiDeviceFactory.java:2)
at androidx.test.tools.crawler.obfuscated.ct.d.get(DoubleCheck.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiAutomatorInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.hybridInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.dagger.DaggerCrawlPlatformComponent$RequestComponentImpl.uiInteractionController(DaggerCrawlPlatformComponent.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.uiInteractionController(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformAction(RemotePlatform.java:21)
at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:59)
at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$androidx-test-tools-crawler-platform-RemotePlatform(RemotePlatform.java:1)
at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda0.run(:6)
at java.lang.Thread.run(Thread.java:920)
Firebase Background Thread #0:
at sun.misc.Unsafe.park(Unsafe.java)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java:47)
at java.lang.Thread.run(Thread.java:920)
Description
Using 1.4.0 libraries and espresso 3.4.0, I occasionally run into the following `RuntimeException` on Firebase Test Lab with a simple call to `getInstance(InstrumentationRegistry.getInstrumentation())` early on in `beforeActivityLaunched`
e.g, `val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())`
```Kotin
java.lang.RuntimeException: Error while connecting UiAutomation@ca89ed6[id=-1, flags=0]
at android.app.UiAutomation.connect(UiAutomation.java:259)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2176)
at androidx.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:1129)
at androidx.test.uiautomator.QueryController.<init>(QueryController.java:95)
at androidx.test.uiautomator.UiDevice.<init>(UiDevice.java:109)
at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261)
```
This intermittently happen more frequently on Pixel 2 API 30 AVD on Firebase Test Lab