Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Branch: androidx-master-dev
commit 82941c128d8ef57e36a739fcfacdf006e94d1a4a
Author: Simon Schiller <simonschiller@users.noreply.github.com>
Date: Thu Oct 15 17:31:58 2020
[GH] Don't cache fragment classes across different class loaders
## Proposed Changes
- Don't cache fragment classes across different class loaders inside `FragmentFactory`.
## Testing
Test: Added tests to verify the change
## Issues Fixed
Fixes: 113886460
This is an imported pull request from
Resolves #87
Github-Pr-Head-Sha: e5f5916840904cab91884e3f525fde4a71d5a7dc
GitOrigin-RevId: babb5e1aedec7d815aa38a50ebca89d6c3e93f00
Change-Id: I07d5541a45ccadcf7159854818000455e245d118
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentFactory.java
A fragment/fragment/src/test/java/androidx/fragment/app/FragmentFactoryTest.kt
b9...@gmail.com <b9...@gmail.com> #3
il...@google.com <il...@google.com> #4
Thanks for confirming! The fix will be in the next release of Lifecycle (2.5.0-beta01).
mc...@gmail.com <mc...@gmail.com> #5
using jetpack compose / bottom navigation with NavHost
Fatal Exception: java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels after the NavBackStackEntry is destroyed.
at androidx.navigation.NavBackStackEntry.getViewModelStore(NavBackStackEntry.kt:192)
at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:106)
at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:69)
tr...@gmail.com <tr...@gmail.com> #6
I am seeing a high occurance rate with 2.5.0-beta01 as well.
il...@google.com <il...@google.com> #7
Re remember
around getBackStackEntry
needs to be updated.
za...@groundcrewdev.com <za...@groundcrewdev.com> #8
We are using Compose version: 1.2.0-rc03
and jetpack lifecycle version: 2.4.1
Fatal Exception: java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels after the NavBackStackEntry is destroyed.
at androidx.navigation.NavBackStackEntry.getViewModelStore(NavBackStackEntry.kt:192)
at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:106)
at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:69)
jb...@google.com <jb...@google.com> #9
Please file a new bug with a minimal sample project that reproduces your error.
za...@groundcrewdev.com <za...@groundcrewdev.com> #10
il...@google.com <il...@google.com> #11
Re backQueue
is not part of the public API surface and never has been. Calling anything on that is always, always, always the wrong thing to do.
li...@gmail.com <li...@gmail.com> #12
Any updates? This issue is persistent for almost 6 months and its getting crazier.
sa...@bluevine.com <sa...@bluevine.com> #14
ra...@gmail.com <ra...@gmail.com> #15
It's still happening with navigation-compose
2.7.0 and lifecycle
2.6.1
re...@gmail.com <re...@gmail.com> #17
Still happening on navigation-compose v2.7.7
/ lifecycle v2.7.0
.
Any updates / prospect? Workaround maybe?
Description
Version used: 2.5.0-alpha06
After upgraded Lifecycle to 2.5.0-alpha06, the nested NavHost navigation will crash.
p.s. I keep the old version dependencies in build.gradle, you could try the working version.