-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug][LeakCanary] (regression) CoordinatorLayout leaked #18596
Comments
This is reproducible even without changes from d0a45ba. |
@mcarare I noticed it as well that you don't have to open the new submenu. I edited the steps to reproduce shortly before your comment. I was tricked by the fact that LeakCanary needs a few seconds to report the leak and because I tested the new submenu it was always reported when I opened the menu. But in fact it's already enough to start Firefox and not related to the new submenu. 😅 |
After further investigation, this only happens when having opened tabs, and the @mcomella Although the info from LeakCanary points to another direction, this leak seems to originate from measuring the duration of fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt Lines 412 to 413 in 62e2fb1
This can be fixed using different approaches:
I am not familiar with how these measurements are used so I am leaving this decision to you. |
Triage: action item is to check out the code before and after the probe is added (for theory from #18596 (comment)) and see if we can reproduce. If not, ask csadilek. If so, maybe implement probe an alternative way. |
Stand-up: let's do the quick solution: change to |
I've been able to reproduce this on a local build from early April 6e5b4b3 with a slightly different STR. Something similar to:
Wait a few seconds. Repeat if it didn't work, sometimes ending the process. |
I don't know what changed but I'm struggling to reproduce this in the latest master with a local build 3d22642. I'm not sure what changed. @cadeyrn Are you still able to reproduce this on the lastest master? I could make the speculative fix suggested in #18596 (comment) or we can wait until we see this again. |
@mcomella I am no longer able to reproduce the leak. According to LeakCanary I saw the last leak on April, 13th (I don't compile a new build every day so it doesn't mean that the leak was fixed exactly on this day). |
@cadeyrn Thanks for the update. I'm wondering what fixed it… 🤔 I'm going to close this but please reopen if you see the leak again! At that point, maybe we can retry the speculative fix I made as it seemed to work for earlier commits. |
Steps to reproduce
Expected behavior
No leak.
Actual behavior
Device information
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: