[HDR/Windows] Memory leak when playing HDR video
Categories
(Core :: Graphics: Color Management, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox152 | --- | unaffected |
| firefox153 | + | fixed |
| firefox154 | + | fixed |
People
(Reporter: ahale, Assigned: ahale)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
I did some about:memory comparisons to verify if there are any memory leaks with the new ShaderBlt code (Bug 2037689) and found some, we should fix these before shipping.
| Assignee | ||
Comment 1•1 month ago
|
||
| Assignee | ||
Comment 2•1 month ago
|
||
I'm marking this bug as S2 because:
- it is a memory leak - ~200MiB GPU memory per HDR video
- it is a regression (without ShaderBlt code we would not be showing HDR video though)
- there is a plausible user story where something is visibly wrong - watching ~50 TV show episodes that are 4K@60hz HDR could result in 10GiB of GPU memory usage which might cause the GPU process to restart (causing a brief flash as the browser redraws everything) and affects the system negatively overall (other apps may become slower until the GPU process restarts).
An argument could be made for S3 because the user story isn't very common, and the recovery mechanism is completely automatic, and it also has reasonable workarounds (restarting the browser is one option, pressing the Trigger GPU Reset option in about:support is another, and turning off HDR desktop mode is another).
Comment 3•1 month ago
|
||
Set release status flags based on info from the regressing bug 2037689
| Assignee | ||
Comment 5•1 month ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D310906
Updated•1 month ago
|
Comment 6•1 month ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: A GPU memory leak occurs when viewing several HDR videos in a single session. Not fatal - GPU process should recover, but still not a good thing to do in terms of competing with other apps for system resources.
- Code covered by automated testing?: no
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Low because this refcounting approach is well understood and it is simply fixing a bug that led to excessive retention of resources.
- String changes made/needed?: N/A
- Is Android affected?: no
Updated•1 month ago
|
Comment 7•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 9•1 month ago
|
||
This doesn't need QA testing, the fix has been verified manually and would not vary by computer.
Description
•