-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Library Leak] Navigation component 2.7.1 #2566
Comments
It's not a false positive, this is a real leak: It's hard to figure out the details just from this leak trace, a heap dump or a working repro example project would help. I highly suspect that FragmentManagerImpl is destroyed as well Separate note: we should read & surface FragmentManagerImpl.mDestroyed in AndroidObjectInspectors. I have to guess a little, but it looks like this is a real leak in your application code, it's one of two things:
|
I'll look into my samples project if I still got the one I used for this issue |
Hello ! Found the project: https://github.com/yoobi/CleanArch you can navigate from the "Home" to "Search" and the leak will appear |
Hello, any news on this ?
The NavHostController is created in the Activity so it's fine for it to have detailed of the children (I guess?) |
If you think this is an issue with jetpack navigation, you should create a small project that reproduces the issue then file a bug to jetpack. |
I've found this issue from hilt: google/dagger#2070 and saying they can't solve it as the API to solve it aren't public. |
Hello,
I think this leak is a false positive from navigation component. I'm using
This leak appears when navigation back and forth between 2 fragment using a toolbar linked to Navigation Component via
NavigationUI.setupWithNavController(toolbar, navController, configuration)
.When checking out the code,
AbstractAppBarOnDestinationChangedListener
is keeping a strong reference over the context which is causing the leakLeakTrace information
The text was updated successfully, but these errors were encountered: