-
Notifications
You must be signed in to change notification settings - Fork 1.3k
IllegalStateException: Fragment HomeFragment not attached to a context. #6832
Comments
Because of the UUID in the stack trace this is split over multiple crash reports in Sentry. According to crash stats the crash volume is increasing and it's now our top 6 crash. |
Need STR for this. |
Note to QA: this is a very rare crash, and I don't think we're going to be able to reproduce it. I'm also very confident in the fix. If you don't mind, I think it's safe can call this |
Closed by #7509 |
I'm still seeing issues for this https://sentry.prod.mozaws.net/operations/fenix-nightly/issues/6162466/ |
We will monitor this over the next sprint |
this is definitely a race condition/memory leak. This PR reliably causes the crash |
Looks like some change since mid-march in socorro 🤔 |
Okay another fix landed - after the next Nightly goes out let's monitor crash stats 🤞🏻 |
java.lang.IllegalStateException: Fragment HomeFragment{32dd527} (861da8e7-151f-4367-9f5a-af37c10c6e3b)} not attached to a context.
FATAL EXCEPTION: main
Process: org.mozilla.fenix.debug, PID: 9206
java.lang.IllegalStateException: Fragment HomeFragment{32dd527} (861da8e7-151f-4367-9f5a-af37c10c6e3b)} not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:805)
at org.mozilla.fenix.ext.FragmentKt.getRequireComponents(Fragment.kt:22)
at org.mozilla.fenix.home.HomeFragment.getSessionManager(HomeFragment.kt:150)
at org.mozilla.fenix.home.HomeFragment.getListOfSessions(HomeFragment.kt:836)
at org.mozilla.fenix.home.HomeFragment.getListOfTabs(HomeFragment.kt:842)
at org.mozilla.fenix.home.HomeFragment.emitSessionChanges(HomeFragment.kt:832)
at org.mozilla.fenix.home.HomeFragment.access$emitSessionChanges(HomeFragment.kt:111)
at org.mozilla.fenix.home.HomeFragment$onCreateView$sessionObserver$1.invoke(HomeFragment.kt:188)
at org.mozilla.fenix.home.HomeFragment$onCreateView$sessionObserver$1.invoke(HomeFragment.kt:111)
at org.mozilla.fenix.home.BrowserSessionsObserver$onStart$1$invokeSuspend$$inlined$collect$1.emit(Collect.kt:137) |
Another crash java.lang.IllegalStateException: Fragment HomeFragment{ed2a8} (c8f516b5-7891-4bf9-92db-114042a3c802)} not attached to a context.
FATAL EXCEPTION: main
Process: org.mozilla.fenix.debug, PID: 8890
java.lang.IllegalStateException: Fragment HomeFragment{ed2a8} (c8f516b5-7891-4bf9-92db-114042a3c802)} not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:805)
at org.mozilla.fenix.ext.FragmentKt.getRequireComponents(Fragment.kt:22)
at org.mozilla.fenix.home.HomeFragment.getSessionManager(HomeFragment.kt:150)
at org.mozilla.fenix.home.HomeFragment.getListOfSessions(HomeFragment.kt:836)
at org.mozilla.fenix.home.HomeFragment.getListOfTabs(HomeFragment.kt:842)
at org.mozilla.fenix.home.HomeFragment.emitSessionChanges(HomeFragment.kt:832)
at org.mozilla.fenix.home.HomeFragment.access$emitSessionChanges(HomeFragment.kt:111)
at org.mozilla.fenix.home.HomeFragment$onCreateView$sessionObserver$1.invoke(HomeFragment.kt:188)
at org.mozilla.fenix.home.HomeFragment$onCreateView$sessionObserver$1.invoke(HomeFragment.kt:111)
at org.mozilla.fenix.home.BrowserSessionsObserver$onStart$1$invokeSuspend$$inlined$collect$1.emit(Collect.kt:137)``` |
I was able to reproduce this crash on Nightly 5/21. Device: Motorola Nexus 6 (Android 7.1.1).
Reproducible 3/3. |
cc @sflorean are you still able to reproduce with those STR? |
@ekager sorry for the late reply here! Tested with the same device on Nightly 7/16 and on 79.0.0-beta.7 and the issue isn't reproducible anymore. |
https://sentry.prod.mozaws.net/operations/fenix-nightly/issues/6162466/
https://sentry.prod.mozaws.net/operations/fenix-nightly/issues/6162466/
Socorro link
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: