Intermittent mozilla.components.support.webextensions.WebExtensionSupportTest.invokes onExtensionsLoaded callback | 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=451601669&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/R27xN6HgSva_-RaLx9d1fQ/runs/0/artifacts/public/logs/live_backing.log
[task 2024-03-21T02:57:04.258Z] SUCCESS
[task 2024-03-21T02:57:04.258Z]
[task 2024-03-21T02:57:04.258Z] TEST: reacts to extensions process spawning disabled
[task 2024-03-21T02:57:04.258Z] Exception in thread "BrowserStore-thread-1 @coroutine#159" java.lang.RuntimeException: Exception while trying to handle coroutine exception
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.CoroutineExceptionHandlerKt.handlerException(CoroutineExceptionHandler.kt:33)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:24)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:190)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:228)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:907)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:864)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:829)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:97)
[task 2024-03-21T02:57:04.258Z] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
[task 2024-03-21T02:57:04.258Z] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[task 2024-03-21T02:57:04.258Z] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[task 2024-03-21T02:57:04.258Z] at java.base/java.lang.Thread.run(Thread.java:840)
[task 2024-03-21T02:57:04.258Z] Suppressed: java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.missing(MainDispatchers.kt:111)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.isDispatchNeeded(MainDispatchers.kt:92)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.test.internal.TestMainDispatcher.isDispatchNeeded(TestMainDispatcher.kt:27)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:156)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.CancellableContinuationImpl.completeResume(CancellableContinuationImpl.kt:586)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannelKt.tryResume0(BufferedChannel.kt:2904)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannelKt.access$tryResume0(BufferedChannel.kt:1)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannel$BufferedChannelIterator.tryResumeHasNext(BufferedChannel.kt:1694)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannel.tryResumeReceiver(BufferedChannel.kt:642)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannel.updateCellSend(BufferedChannel.kt:458)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.BufferedChannel.access$updateCellSend(BufferedChannel.kt:36)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.ConflatedBufferedChannel.trySendDropOldest-JP2dKIU(ConflatedBufferedChannel.kt:163)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.ConflatedBufferedChannel.trySendImpl-Mj0NB7M(ConflatedBufferedChannel.kt:57)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.ConflatedBufferedChannel.send$suspendImpl(ConflatedBufferedChannel.kt:37)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.ConflatedBufferedChannel.send(ConflatedBufferedChannel.kt)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.channels.ChannelCoroutine.send(ChannelCoroutine.kt)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.ext.StoreExtensionsKt$flow$1$subscription$1$1.invokeSuspend(StoreExtensions.kt:178)
[task 2024-03-21T02:57:04.258Z] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.ext.StoreExtensionsKt$flow$1$subscription$1.invoke(StoreExtensions.kt:176)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.ext.StoreExtensionsKt$flow$1$subscription$1.invoke(StoreExtensions.kt:175)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.Store$Subscription.dispatch$lib_state_release(Store.kt:157)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.Store.transitionTo$lib_state_release(Store.kt:110)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$chain$1.invoke(ReducerChainBuilder.kt:52)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$chain$1.invoke(ReducerChainBuilder.kt:50)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$threadCheck$1.invoke(ReducerChainBuilder.kt:57)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$threadCheck$1.invoke(ReducerChainBuilder.kt:55)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$1$1.invoke(ReducerChainBuilder.kt:62)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.internal.ReducerChainBuilder$build$1$1.invoke(ReducerChainBuilder.kt:62)
[task 2024-03-21T02:57:04.258Z] at mozilla.components.lib.state.Store$dispatch$1.invokeSuspend(Store.kt:96)
[task 2024-03-21T02:57:04.258Z] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
[task 2024-03-21T02:57:04.258Z] ... 4 more
[task 2024-03-21T02:57:04.258Z] 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-03-21T02:57:04.258Z] at android.os.Looper.getMainLooper(Looper.java)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.android.AndroidDispatcherFactory.createDispatcher(HandlerDispatcher.kt:51)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MainDispatchersKt.tryCreateDispatcher(MainDispatchers.kt:53)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.test.internal.TestMainDispatcherFactory.createDispatcher(TestMainDispatcherJvm.kt:11)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MainDispatchersKt.tryCreateDispatcher(MainDispatchers.kt:53)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MainDispatcherLoader.loadMainDispatcher(MainDispatchers.kt:34)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.internal.MainDispatcherLoader.<clinit>(MainDispatchers.kt:18)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.Dispatchers.getMain(Dispatchers.kt:20)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.test.internal.TestMainDispatcher$Companion.getCurrentTestDispatcher$kotlinx_coroutines_test(TestMainDispatcher.kt:47)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.test.internal.TestMainDispatcher$Companion.getCurrentTestScheduler$kotlinx_coroutines_test(TestMainDispatcher.kt:50)
[task 2024-03-21T02:57:04.258Z] at kotlinx.coroutines.test.TestCoroutineDispatchersKt.UnconfinedTestDispatcher(TestCoroutineDispatchers.kt:83)
[task 2024-03-21T02:57:04.259Z] at kotlinx.coroutines.test.TestCoroutineDispatchersKt.UnconfinedTestDispatcher$default(TestCoroutineDispatchers.kt:79)
[task 2024-03-21T02:57:04.259Z] at mozilla.components.support.test.rule.MainCoroutineRule.<init>(MainCoroutineRule.kt:38)
[task 2024-03-21T02:57:04.259Z] at mozilla.components.support.webextensions.WebExtensionPopupObserverTest.<init>(WebExtensionPopupObserverTest.kt:24)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[task 2024-03-21T02:57:04.259Z] at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[task 2024-03-21T02:57:04.259Z] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:250)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:260)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner$2.runReflectiveCall(BlockJUnit4ClassRunner.java:309)
[task 2024-03-21T02:57:04.259Z] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:306)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
[task 2024-03-21T02:57:04.259Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[task 2024-03-21T02:57:04.259Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[task 2024-03-21T02:57:04.259Z] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[task 2024-03-21T02:57:04.259Z] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
[task 2024-03-21T02:57:04.259Z] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[task 2024-03-21T02:57:04.259Z] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
[task 2024-03-21T02:57:04.259Z] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
[task 2024-03-21T02:57:04.259Z] at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
[task 2024-03-21T02:57:04.259Z] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
[task 2024-03-21T02:57:04.259Z] at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
[task 2024-03-21T02:57:04.259Z] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
[task 2024-03-21T02:57:04.259Z] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
[task 2024-03-21T02:57:04.259Z] at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
[task 2024-03-21T02:57:04.259Z] at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
[task 2024-03-21T02:57:04.259Z] Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [mozilla.components.lib.state.Store$special$$inlined$CoroutineExceptionHandler$1@4b784e60, CoroutineId(159), "coroutine#159":StandaloneCoroutine{Cancelling}@d7f32f1, java.util.concurrent.Executors$FinalizableDelegatedExecutorService@33054f59]
[task 2024-03-21T02:57:04.259Z] 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-03-21T02:57:04.259Z] at android.os.Looper.getMainLooper(Looper.java)
[task 2024-03-21T02:57:04.259Z] at mozilla.components.lib.state.Store$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:107)
[task 2024-03-21T02:57:04.259Z] at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:20)
[task 2024-03-21T02:57:04.259Z] ... 11 more
[task 2024-03-21T02:57:04.259Z] SUCCESS
[task 2024-03-21T02:57:04.259Z]
[task 2024-03-21T02:57:04.259Z] TEST: reacts to browser action being defined by dispatching to the store
[task 2024-03-21T02:57:04.259Z] SUCCESS
[task 2024-03-21T02:57:04.259Z]
[task 2024-03-21T02:57:04.259Z] TEST: invokes onExtensionsLoaded callback
[task 2024-03-21T02:57:04.356Z] TEST-UNEXPECTED-FAIL | mozilla.components.support.webextensions.WebExtensionSupportTest.invokes onExtensionsLoaded callback | java.lang.IllegalStateException: Dispatchers.Main is used concurrently with setting it
[task 2024-03-21T02:57:04.356Z]
[task 2024-03-21T02:57:04.356Z] TEST: GIVEN already installed extension WHEN calling onInstalled THEN do not show the PostInstallation prompt
[task 2024-03-21T02:57:04.356Z] D [mozac-webextensions] onInstalled extensionId
[task 2024-03-21T02:57:04.356Z] D [mozac-webextensions] onInstalled extensionId
[task 2024-03-21T02:57:04.356Z] SUCCESS
Updated•2 years ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 3•2 years ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 4•2 years ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=455529465&repo=autoland
| Comment hidden (Intermittent Failures Robot) |
| 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=463593082&repo=mozilla-beta
| Comment hidden (Intermittent Failures Robot) |
Comment 10•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 11•1 year ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=468050909&repo=mozilla-beta
| 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.
| Reporter | ||
Comment 14•1 year ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=491353820&repo=autoland
| Comment hidden (Intermittent Failures Robot) |
Comment 16•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 17•1 year ago
|
||
| treeherder | ||
New failure instance: https://treeherder.mozilla.org/logviewer?job_id=496477682&repo=mozilla-central
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 22•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) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Description
•