Open Bug 1917803 Opened 25 days ago Updated 12 days ago

Crash in [@java.lang.IllegalStateException: Fragment HomeFragment{4bba9f1} (581a74b4-2ca9-4b9d-b24d-175930edc2d0) not attached to a context.]

Categories

(Fenix :: Homepage, defect)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: ohorvath, Unassigned)

References

Details

08-21 22:39:14.952  9989 10113 D UiScrollable: Scrolling UiSelector[RESOURCE_ID=org.mozilla.fenix.debug:id/top_sites_list] into view.
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: Failed to fetch top sites from provider
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: java.lang.IllegalStateException: Fragment HomeFragment{4bba9f1} (581a74b4-2ca9-4b9d-b24d-175930edc2d0) not attached to a context.
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at androidx.fragment.app.Fragment.requireContext(Fragment.java:972)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at org.mozilla.fenix.ext.FragmentKt.getRequireComponents(Fragment.kt:32)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at org.mozilla.fenix.home.HomeFragment.getStore(HomeFragment.kt:247)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at org.mozilla.fenix.home.HomeFragment.access$getStore(HomeFragment.kt:186)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at org.mozilla.fenix.home.HomeFragment$getTopSitesConfig$2.invoke(HomeFragment.kt:949)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at org.mozilla.fenix.home.HomeFragment$getTopSitesConfig$2.invoke(HomeFragment.kt:948)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at mozilla.components.feature.top.sites.DefaultTopSitesStorage.getTopSites(DefaultTopSitesStorage.kt:105)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at mozilla.components.feature.top.sites.presenter.DefaultTopSitesPresenter$onStorageUpdated$1.invokeSuspend(DefaultTopSitesPresenter.kt:47)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
08-21 22:39:15.388  9989 10053 E DefaultTopSitesStorage: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

This is from a UI test (Bug 1829837), where it pins 3 websites as homescreen shortcuts. After adding the 3rd one and visiting the homescreen, the top sites list is refreshed and all pinned sites are gone.
This happens rarely, approx 1 failure per month, so every few hundred test runs. Not reproducible manually so far.
I couldn't find the crash signature in https://crash-stats.mozilla.org/

Blocks: 1829837

The Bugbug bot thinks this bug should belong to the 'Fenix::Homepage' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Homepage
You need to log in before you can comment on or make changes to this bug.