Crash in [@ java.lang.IllegalStateException: at kotlinx.coroutines.sync.MutexImpl$$ExternalSyntheticBUOutline0.m(R8$$SyntheticClass:28)]
Categories
(Firefox for Android :: Menu, defect)
Tracking
()
People
(Reporter: aryx, Unassigned, NeedInfo)
References
Details
(Keywords: crash)
Crash Data
[Tracking Requested - why for this release]:
400+ crash reports per release cycle, started with Firefox for Android 157.0
Crash report: https://crash-stats.mozilla.org/report/index/702c30ed-1119-433b-8a36-1eac30261029
Top 10 frames:
0 kotlinx.coroutines.sync.MutexImpl$$ExternalSyntheticBUOutline0 m R8$$SyntheticClass:28
1 androidx.navigation.internal.NavControllerImpl popEntryFromBackStack$navigation_runtime NavControllerImpl.kt:142
2 androidx.navigation.internal.NavControllerImpl popEntryFromBackStack$navigation_runtime$default NavControllerImpl.kt:7
3 androidx.navigation.NavController$NavControllerNavigatorState pop NavController.android.kt:106
4 androidx.navigation.NavigatorState popWithTransition NavigatorState.kt:188
5 androidx.navigation.NavController$NavControllerNavigatorState popWithTransition NavController.android.kt:4
6 androidx.navigation.fragment.DialogFragmentNavigator popWithTransition DialogFragmentNavigator.kt:45
7 androidx.navigation.fragment.DialogFragmentNavigator$observer$1 onStateChanged DialogFragmentNavigator.kt:193
8 androidx.lifecycle.LifecycleRegistry$ObserverWithState dispatchEvent LifecycleRegistry.kt:18
9 androidx.lifecycle.LifecycleRegistry$$ExternalSyntheticLambda0 invoke R8$$SyntheticClass:74
@hackbot Which commit caused these failures starting in Firefox for Android 157.0?
| Reporter | ||
Comment 1•26 days ago
|
||
@hackbot Which commit caused these failures starting in Firefox for Android 157.0?
Comment 2•26 days ago
|
||
| bug-fix | ||
This doesn't look like a new crash caused by a 157 commit. It's an old crash whose signature changed in 157.
- The full stack ends in
check(entry == popUpTo)inNavControllerImpl.popEntryFromBackStack: a dialog is popped fromDialogFragmentNavigator's ON_STOP observer while it isn't the top of the back stack. R8 moved thatcheck()throw into a shared synthetic helper class. That helper happens to be named afterkotlinx.coroutines.sync.MutexImpl, so that's where the signature points. Coroutines and Mutex aren't involved. - crash-stats: the old signatures
java.lang.IllegalStateException: at androidx.navigation.internal.NavControllerImpl.popEntryFromBackStack$navigation_runtime_release(NavControllerImpl.kt:178/183/185)show up in every release up to 156.0.1 (about 665 crashes in 156, about 1030 in 155.0.x). They stop at 157, where this signature starts at a similar volume (about 750 in 157.0.x). - Most likely cause of the signature change: bug 2068304 (AGP 9.2.1 → 9.4.0, so a newer R8), which landed 2026-09-02 during the 157 nightly cycle. I couldn't confirm this from nightly build IDs. The other candidate in 157, bug 2066941 (Navigation 2.9.8 → 2.10.0), didn't change
popEntryFromBackStackorDialogFragmentNavigatorapart from formatting.
Suggest adding the old popEntryFromBackStack signatures to this bug, or duping it to the existing bug for that crash if there is one. It isn't a 157 regression.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
Comment 3•26 days ago
|
||
jonalmeida, what do you think about Comment 2?
I will clear tracking if it's confirmed that it's a signature change
Comment 4•26 days ago
|
||
The bug is marked as tracked for firefox160 (beta) and tracked for firefox161 (nightly). However, the bug still isn't assigned.
:petru, could you please find an assignee for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Comment 5•22 days ago
|
||
I agree with Hackbot.
Seems like this is an old issue affecting many of our features, not just the menu.
Searching for java.lang.IllegalStateException: at androidx.navigation.internal.NavControllerImpl.popEntryFromBackStack as Hackbot suggested I see the signature changed in the past also and we had:
- these crashes until 144
- these crashes until 154
- these crashes until 156 which show the same general stacktrace for the menu issue, like here, here, here, here, and others.
Then a different signature starting with 157 (raised here) but basically the same stacktrace through all of these.
Also important to note that starting with 161 we're shipping a new menu (after bug 2086153) so there is a chance that this bug will not reproduce anymore/behave differently for the new menu.
So I would suggest keeping it for observation for the menu (which is not the only one showing this issue but seems to have the most crashes), for which I'll also keep my NI on.
Updated•22 days ago
|
Updated•22 days ago
|
Updated•18 days ago
|
Description
•