Closed Bug 1724973 Opened 4 months ago Closed 4 months ago

Crash in [@ java.lang.IllegalThreadStateException: at org.mozilla.gecko.util.ThreadUtils.assertOnThread(ThreadUtils.java)]

Categories

(Fenix :: Stability, defect)

All
Android
defect

Tracking

(firefox91+ fixed)

RESOLVED MOVED
Tracking Status
firefox91 + fixed

People

(Reporter: kbrosnan, Unassigned)

References

Details

(Keywords: crash, topcrash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/18886596-21e1-44b8-866c-0b6a50210810

Java stack trace:

java.lang.IllegalThreadStateException: Expected thread 2 ("main"), but running on thread 972 ("DefaultDispatcher-worker-1")
	at org.mozilla.gecko.util.ThreadUtils.assertOnThread(ThreadUtils.java:7)
	at org.mozilla.gecko.util.ThreadUtils.assertOnUiThread(ThreadUtils.java:2)
	at org.mozilla.geckoview.GeckoRuntime.setDelegate(GeckoRuntime.java:1)
	at mozilla.components.browser.engine.gecko.GeckoEngine.<init>(GeckoEngine.kt:9)
	at org.mozilla.focus.Components$engine$2.invoke(Components.kt:6)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:6)
	at org.mozilla.focus.Components.getEngine(Unknown Source:2)
	at org.mozilla.focus.Components$store$2.invoke(Components.kt:14)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:6)
	at org.mozilla.focus.Components.getStore(Unknown Source:2)
	at org.mozilla.focus.telemetry.GleanMetricsService$collectPrefMetrics$1.invokeSuspend(GleanMetricsService.kt:11)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:15)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:13)

Might be a Glean bug though I figured we can start with GV as they own ThreadUtils.java.

Severity: -- → S2
Keywords: topcrash

Agi, can you help us triage this Focus topcrash? Even if just redirecting to the right team. Thanks!

Flags: needinfo?(agi)

This is an AC bug, they need to call GeckoRuntime.setDelegate on the UI thread. Amedyne can we get someone on this?

Component: General → Stability
Flags: needinfo?(agi) → needinfo?(amoya)
Product: GeckoView → Fenix

This is a Focus bug; moving it to that project.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → MOVED
Flags: needinfo?(amoya)

This should be fixed in the upcoming Focus 91.1.2 release.

You need to log in before you can comment on or make changes to this bug.