Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] IllegalStateException: HomeFragment not attached to a context. #2719

Closed
jonalmeida opened this issue May 22, 2019 · 1 comment
Closed
Assignees
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified P1 Current sprint Release Blocker Blocks a Release

Comments

@jonalmeida
Copy link
Contributor

jonalmeida commented May 22, 2019

Steps to reproduce

Switch between tabs quickly and the app crashes.

2019-05-21 22:50:02.973 12778-12778/org.mozilla.fenix.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.mozilla.fenix.debug, PID: 12778
    java.lang.IllegalStateException: Fragment HomeFragment{16666fd (6bea78fd-cc33-4402-b6b5-a772ecf78052)} not attached to a context.
        at androidx.fragment.app.Fragment.requireContext(Fragment.java:763)
        at org.mozilla.fenix.ext.FragmentKt.getRequireComponents(Fragment.kt:13)
        at org.mozilla.fenix.home.HomeFragment.emitSessionChanges(HomeFragment.kt:568)
        at org.mozilla.fenix.home.HomeFragment.access$emitSessionChanges(HomeFragment.kt:69)
        at org.mozilla.fenix.home.HomeFragment$singleSessionObserver$1.onTitleChanged(HomeFragment.kt:77)
        at mozilla.components.browser.session.Session$$special$$inlined$observable$2$lambda$1.invoke(Session.kt:159)
        at mozilla.components.browser.session.Session$$special$$inlined$observable$2$lambda$1.invoke(Session.kt:26)
        at mozilla.components.support.base.observer.ObserverRegistry.notifyObservers(ObserverRegistry.kt:99)
        at mozilla.components.browser.session.Session.notifyObservers(Unknown Source:7)
        at mozilla.components.browser.session.Session.notifyObservers(Session.kt:400)
        at mozilla.components.browser.session.Session.access$notifyObservers(Session.kt:26)
        at mozilla.components.browser.session.Session$$special$$inlined$observable$2.afterChange(Delegates.kt:71)
        at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:41)

Seems to be caused from this addition.

  • Android device: Pixel 2
  • Fenix version: master (21-05-2019)

┆Issue is synchronized with this Jira Task

@jonalmeida jonalmeida added 🐞 bug Crashes, Something isn't working, .. b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info labels May 22, 2019
@boek boek self-assigned this May 22, 2019
boek added a commit to boek/fenix that referenced this issue May 22, 2019
@vesta0 vesta0 added the P1 Current sprint label May 24, 2019
@vesta0 vesta0 added this to the Bugs milestone May 24, 2019
@vesta0 vesta0 added the Release Blocker Blocks a Release label May 24, 2019
@vesta0 vesta0 added this to High priority backlog (not in the current sprint) in Fenix Sprint Kanban May 24, 2019
@bifleming bifleming moved this from High priority backlog (not in the current sprint) to Ready for Dev in Fenix Sprint Kanban May 28, 2019
@boek boek moved this from Ready for Dev to In Progress in Fenix Sprint Kanban Jun 1, 2019
@boek boek added the eng:qa:needed QA Needed label Jun 1, 2019
@project-bot project-bot bot moved this from In Progress to Ready for QA in Fenix Sprint Kanban Jun 1, 2019
@lobontiumira
Copy link

Verified as fixed, on the latest build 1.0.1922 (#11530616), with Nokia 6 (Android 7.1.1), and Google Pixel (Android 9).

@lobontiumira lobontiumira added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Jun 3, 2019
@lobontiumira lobontiumira moved this from Ready for QA to Done in Fenix Sprint Kanban Jun 3, 2019
@data-sync-user data-sync-user changed the title [Bug] IllegalStateException: HomeFragment not attached to a context. FNX2-18221 ⁃ [Bug] IllegalStateException: HomeFragment not attached to a context. Aug 5, 2020
@data-sync-user data-sync-user changed the title FNX2-18221 ⁃ [Bug] IllegalStateException: HomeFragment not attached to a context. FNX3-16530 ⁃ [Bug] IllegalStateException: HomeFragment not attached to a context. Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-16530 ⁃ [Bug] IllegalStateException: HomeFragment not attached to a context. [Bug] IllegalStateException: HomeFragment not attached to a context. May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified P1 Current sprint Release Blocker Blocks a Release
Projects
None yet
Development

No branches or pull requests

6 participants