Intermittent mozilla.components.support.webextensions.WebExtensionSupportTest.reacts to extensions process spawning disabled | java.lang.IllegalStateException: Dispatchers.Main is used concurrently with setting it
Categories
(Firefox for Android :: WebExtensions, defect, P5)
Tracking
()
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=454311224&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JiE88DklT66PWAlJwP8PEw/runs/1/artifacts/public/logs/live_backing.log
[task 2024-04-11T15:55:57.207Z] SUITE: mozilla.components.support.webextensions.WebExtensionSupportTest
<...>
[task 2024-04-11T15:55:58.109Z] SUCCESS
[task 2024-04-11T15:55:58.109Z]
[task 2024-04-11T15:55:58.109Z] TEST: reacts to extensions process spawning disabled
[task 2024-04-11T15:55:58.109Z] Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked. See https://developer.android.com/r/studio-ui/build/not-mocked for details.
[task 2024-04-11T15:55:58.109Z] at android.os.Looper.getMainLooper(Looper.java)
[task 2024-04-11T15:55:58.110Z] at kotlinx.coroutines.android.AndroidDispatcherFactory.createDispatcher(HandlerDispatcher.kt:51)
[task 2024-04-11T15:55:58.110Z] at kotlinx.coroutines.internal.MainDispatchersKt.tryCreateDispatcher(MainDispatchers.kt:53)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.test.internal.TestMainDispatcherFactory.createDispatcher(TestMainDispatcherJvm.kt:11)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.internal.MainDispatchersKt.tryCreateDispatcher(MainDispatchers.kt:53)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.internal.MainDispatcherLoader.loadMainDispatcher(MainDispatchers.kt:34)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.internal.MainDispatcherLoader.<clinit>(MainDispatchers.kt:18)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.Dispatchers.getMain(Dispatchers.kt:20)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.test.internal.TestMainDispatcher$Companion.getCurrentTestDispatcher$kotlinx_coroutines_test(TestMainDispatcher.kt:47)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.test.internal.TestMainDispatcher$Companion.getCurrentTestScheduler$kotlinx_coroutines_test(TestMainDispatcher.kt:50)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.test.TestCoroutineDispatchersKt.UnconfinedTestDispatcher(TestCoroutineDispatchers.kt:83)
[task 2024-04-11T15:55:58.111Z] at kotlinx.coroutines.test.TestCoroutineDispatchersKt.UnconfinedTestDispatcher$default(TestCoroutineDispatchers.kt:79)
[task 2024-04-11T15:55:58.111Z] at mozilla.components.support.test.rule.MainCoroutineRule.<init>(MainCoroutineRule.kt:38)
[task 2024-04-11T15:55:58.111Z] at mozilla.components.support.webextensions.WebExtensionPopupObserverTest.<init>(WebExtensionPopupObserverTest.kt:24)
[task 2024-04-11T15:55:58.111Z] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[task 2024-04-11T15:55:58.111Z] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[task 2024-04-11T15:55:58.111Z] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[task 2024-04-11T15:55:58.111Z] at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[task 2024-04-11T15:55:58.111Z] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:250)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:260)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner$2.runReflectiveCall(BlockJUnit4ClassRunner.java:309)
[task 2024-04-11T15:55:58.112Z] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:306)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
[task 2024-04-11T15:55:58.112Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
[task 2024-04-11T15:55:58.113Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[task 2024-04-11T15:55:58.113Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[task 2024-04-11T15:55:58.113Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[task 2024-04-11T15:55:58.113Z] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[task 2024-04-11T15:55:58.113Z] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
[task 2024-04-11T15:55:58.113Z] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[task 2024-04-11T15:55:58.113Z] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
[task 2024-04-11T15:55:58.113Z] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
[task 2024-04-11T15:55:58.113Z] at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
[task 2024-04-11T15:55:58.113Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
[task 2024-04-11T15:55:58.113Z] at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
[task 2024-04-11T15:55:58.113Z] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
[task 2024-04-11T15:55:58.113Z] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
[task 2024-04-11T15:55:58.113Z] at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
[task 2024-04-11T15:55:58.113Z] at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
[task 2024-04-11T15:55:58.113Z] Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [mozilla.components.lib.state.Store$special$$inlined$CoroutineExceptionHandler$1@4ce4849, CoroutineId(141), "coroutine#141":StandaloneCoroutine{Cancelling}@4b7b83a5, java.util.concurrent.Executors$FinalizableDelegatedExecutorService@4ae0ee27]
[task 2024-04-11T15:55:58.113Z] Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked. See https://developer.android.com/r/studio-ui/build/not-mocked for details.
[task 2024-04-11T15:55:58.114Z] at android.os.Looper.getMainLooper(Looper.java)
[task 2024-04-11T15:55:58.114Z] at mozilla.components.lib.state.Store$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:107)
[task 2024-04-11T15:55:58.114Z] at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:20)
[task 2024-04-11T15:55:58.114Z] ... 11 more
[task 2024-04-11T15:55:58.207Z] TEST-UNEXPECTED-FAIL | mozilla.components.support.webextensions.WebExtensionSupportTest.reacts to extensions process spawning disabled | java.lang.IllegalStateException: Dispatchers.Main is used concurrently with setting it
[task 2024-04-11T15:55:58.207Z]
[task 2024-04-11T15:55:58.207Z] TEST: reacts to browser action being defined by dispatching to the store
[task 2024-04-11T15:55:58.208Z] SUCCESS
[task 2024-04-11T15:55:58.208Z]
[task 2024-04-11T15:55:58.208Z] TEST: invokes onExtensionsLoaded callback
[task 2024-04-11T15:55:58.208Z] SUCCESS
[task 2024-04-11T15:55:58.208Z]
[task 2024-04-11T15:55:58.208Z] TEST: GIVEN already installed extension WHEN calling onInstalled THEN do not show the PostInstallation prompt
[task 2024-04-11T15:55:58.208Z] D [mozac-webextensions] onInstalled extensionId
[task 2024-04-11T15:55:58.209Z] D [mozac-webextensions] onInstalled extensionId
[task 2024-04-11T15:55:58.209Z] SUCCESS
| Comment hidden (Intermittent Failures Robot) |
Comment 2•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 3•1 year ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=464606477&repo=mozilla-central
| Comment hidden (Intermittent Failures Robot) |
Comment 5•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::WebExtensions' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Comment hidden (Intermittent Failures Robot) |
Comment 7•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 8•1 year ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=488081644&repo=mozilla-beta
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 13•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Description
•