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
CoordinatorLayout.mPreSortedChildren retains references to Views from destroyed Fragments #1983
Comments
|
Interesting! So it looks like Can you provide the versions and manufacturers you've reproduced this on? Looking at the latest ViewGroup sources, I can see However, looking at the source, that array list is filled by one method and call sites typically clear the list right after using it. There are three call sites that don't clear: Can you file a bug to AOSP and link it here? Also it's interesting we haven't had reports yet, so you might run into a special case and it's worth reproducing with an example app. Once you have filed an issue, can you link it here? Then we can add it to the library leaks. |
|
I'll file the issue soon. Trying to clear up some time so I can test whether it's a special case, or if it's a general issue. |
|
We've encountered the same issue and filed a bug to AOSP - https://issuetracker.google.com/issues/178029590. |
|
Is this bug still open? |
|
I also faced this bug as you can see the hlaly.com and kindly help me about it because you can check the information about it here. |
|
There are some errors or bugs that occurring here on the Lightroom mod and looking for a proper solution kindly guide me about it. |
I have a CoordinatorLayout that I am using as a fragment container, and I started getting leak reports after fragments are getting destroyed, because their View's are referenced by the container's
mPreSortedChildren.Looking at the ViewGroup source, it seems like that gets cleared when
buildOrderedChildListis called, but I'm not fully sure what would trigger that (seems like adrawwill, but not sure if there are conditions).Is there something LeakCanary (or plumber) can do about that, or would it have to be a framework fix (I can repro on a Pixel 2 running Android 11)?
Using LeakCanary 2.4
LeakTrace information
The text was updated successfully, but these errors were encountered: