Performance Warning: Static Field Leaks
Categories
(GeckoView :: General, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: fluffyemily, Unassigned, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=java])
Attachments
(2 files)
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
- mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoHlsPlayer.java:49: Do not place Android context classes in static fields (static reference to DefaultBandwidthMeter which has field context pointing to Context); this is a memory leak
- mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java:517: This AsyncTask class should be static or leaks might occur (org.mozilla.gecko.media.GeckoMediaDrmBridgeV21.PostRequestTask)
- mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoNetworkManager.java:47: Do not place Android context classes in static fields (static reference to GeckoNetworkManager which has field mContext pointing to Context); this is a memory leak
Adding @SuppressLint("StaticFieldLeak") and use static class for AsyncTask.
Hello!
I am new to contribute to open source projects.
I just wanted to ask whether this task could be assigned to me so that I can try to solve it and start my contributing journey.
Comment 5•3 years ago
|
||
(In reply to Yash from comment #4)
Hello!
I am new to contribute to open source projects.
I just wanted to ask whether this task could be assigned to me so that I can try to solve it and start my contributing journey.
Assigned.
Comment 6•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Comment 7•2 years ago
|
||
If this bug is still open and unassigned, may i try to fix it?
Comment 8•2 years ago
|
||
(In reply to Hardik Koul from comment #7)
If this bug is still open and unassigned, may i try to fix it?
Yes, see comment #3.
Comment 9•2 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #8)
(In reply to Hardik Koul from comment #7)
If this bug is still open and unassigned, may i try to fix it?
Yes, see comment #3.
Sure , thanks. Starting off with setting the repo up in my local.
Comment 10•2 years ago
|
||
Hey Makoto,
I am done with mercurial and git hannibal setup, but while fetching remote , im getting this error
Fetching central
fatal: repository 'https://hg.mozilla.org/mozilla-central/' not found
error: Could not fetch central
Fetching inbound
fatal: repository 'https://hg.mozilla.org/integration/mozilla-inbound/' not found
error: Could not fetch inbound
are the URLs correct for the repos?
Comment 11•2 years ago
•
|
||
What document do you reference? https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development is better.
Comment 12•2 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #11)
What document do you reference? https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development is better.
Thanks, i was referring this one : https://firefox-source-docs.mozilla.org/mobile/android/geckoview/contributor/mc-quick-start.html
Comment 13•2 years ago
|
||
Updated•2 years ago
|
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
Here is the patch with the changes suggested : (https://phabricator.services.mozilla.com/D185046)
however im aware suppressing the Lint warning is not an optimal way to solve this memory leak issue, let me know if i can try to figure out any optimal solution for that.
Comment 16•2 years ago
|
||
also apologies for submitting a duplicate patch with just a white space change, please delete that if possible.
Comment 17•2 years ago
|
||
Any update on this ??
Comment 18•2 years ago
|
||
(In reply to Hardik Koul from comment #17)
Any update on this ??
https://phabricator.services.mozilla.com/D185046's status is "Changes Planned". So this isn't reviewable status. If this is ready for code review, please change status to "Needs Review".
Comment 19•2 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #18)
(In reply to Hardik Koul from comment #17)
Any update on this ??
https://phabricator.services.mozilla.com/D185046's status is "Changes Planned". So this isn't reviewable status. If this is ready for code review, please change status to "Needs Review".
Hey, sorry was not aware of that process, have updated the status now to "Needs Review" https://phabricator.services.mozilla.com/D185046
Updated•2 years ago
|
Comment 20•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Description
•