Closed
Bug 1114885
Opened 8 years ago
Closed 8 years ago
Unreferenced media elements with MediaSources can leak due to NETWORK_LOADING
Categories
(Core :: Audio/Video, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla37
People
(Reporter: karlt, Assigned: karlt)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
9.61 KB,
audio/webm
|
Details | |
660 bytes,
text/html
|
Details | |
4.47 KB,
patch
|
roc
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Media elements keep a self reference when networkState is NETWORK_LOADING. Usually a load request would eventually time out, networkState would change, and the self reference would be removed, but this will not happen when the source is a MediaSource.
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
1. Set media.mediasource.enabled and media.mediasource.webm.enabled prefs to true, if not already. 2. Load testcase. 3. Observe memory use growing (in top or similar). 4. Load about:memory in another tab. 5. Click "Minimize Memory Use". Expected: Memory usage reduces somewhat, before growing again. Actual: Memory use continues to rise.
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8542415 -
Flags: review?(roc)
Assignee | ||
Comment 4•8 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=a17b39048bc5 https://tbpl.mozilla.org/?tree=Try&rev=caedea5cc2a3
Attachment #8542415 -
Flags: review?(roc) → review+
Updated•8 years ago
|
Priority: -- → P1
Assignee | ||
Comment 5•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7f1bd578a2a6
Flags: in-testsuite-
Comment 6•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7f1bd578a2a6
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 7•8 years ago
|
||
Comment on attachment 8542415 [details] [diff] [review] allow media elements to be GC'd when their MediaSource is unreferenced r? Approval Request Comment [Feature/regressing bug #]: MSE [User impact if declined]: Less consistent testing, YouTube videos consume more resources. [Describe test coverage new/current, TBPL]: Landed on m-c. [Risks and why]: Low. This is a small change and should only affect MSE playback. [String/UUID change made/needed]: None.
Attachment #8542415 -
Flags: approval-mozilla-beta?
Updated•8 years ago
|
status-firefox36:
--- → affected
status-firefox37:
--- → fixed
Updated•8 years ago
|
Attachment #8542415 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•8 years ago
|
Flags: qe-verify+
Comment 9•8 years ago
|
||
Verified using STR from comment 2 and the attached testcases and got the expected results using: 1. Firefox 36 beta 2, build ID: 20150120155007 2. Latest Aurora, build ID: 20150121004011 Tested on Ubuntu 12.04 64-bit.
You need to log in
before you can comment on or make changes to this bug.
Description
•