Youtube leaks closed tabs due to missing CC edge
Categories
(Core :: Audio/Video: Playback, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox74 | --- | unaffected |
firefox75 | --- | unaffected |
firefox76 | --- | verified |
People
(Reporter: nika, Assigned: nika)
References
(Regression)
Details
(Keywords: memory-leak, regression)
Attachments
(1 file)
Earlier today I was experiencing very poor performance when switching tabs and other actions, due to long (>5 second) CCs on YouTube, caused by us leaking ~600MB of closed window objects.
Based on CC and GC logs, I discovered YouTube was installing MediaSessionEventHandler
callbacks, which are being held alive by non-traversed strong references, and causing memory leaks. It appears as though the mActionHandlers
field of MediaSession
(https://searchfox.org/mozilla-central/rev/c80fa7258c935223fe319c5345b58eae85d4c6ae/dom/media/mediasession/MediaSession.h#92) is not being exposed to the cycle-collector, which would explain this leak.
This should be fixed by ensuring the pointers in mActionHandlers
are traversed and unlinked by the cycle-collector.
Marking bug 1620077 as the regressing bug, due to it enabling this feature on Nightly.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
@ :Nika Layzell - Thank you very much for diagnosing this issue!
I have identical problems, even when all tabs and windows were closed, leaving only new tab, Firefox will be using lot of CPU from time to time.
Here's profile - https://bit.ly/3agTy0H , maybe it will be useful in some way, if not, just for archive proposes.
Comment 6•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 7•5 years ago
|
||
I'm confirming that bug is fixed, starting in Mozilla Firefox Nightly 76.0a1 (2020-03-25), so I'm marking this bug as VERIFIED.
Thank you very much! \o/
Updated•5 years ago
|
Description
•