Performance Warning: Static Field Leaks
Categories
(GeckoView :: General, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: fluffyemily, Assigned: creatinggalaxy, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=java])
Attachments
(2 files)
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•2 years ago
|
Comment 3•2 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•2 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•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 7•1 year ago
|
||
If this bug is still open and unassigned, may i try to fix it?
Comment 8•1 year 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.
Assignee | ||
Comment 9•1 year 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.
Assignee | ||
Comment 10•1 year 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•1 year ago
|
||
What document do you reference? https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development is better.
Assignee | ||
Comment 12•1 year 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
Assignee | ||
Comment 13•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 14•1 year ago
|
||
Assignee | ||
Comment 15•1 year 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.
Assignee | ||
Comment 16•1 year ago
|
||
also apologies for submitting a duplicate patch with just a white space change, please delete that if possible.
Assignee | ||
Comment 17•1 year ago
|
||
Any update on this ??
Comment 18•1 year 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".
Assignee | ||
Comment 19•1 year 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•1 year ago
|
Description
•