Closed Bug 1960193 Opened 9 days ago Closed 4 days ago

media decoder does not free memory on closing the tab

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 139
x86_64
Windows 11
defect

Tracking

()

RESOLVED DUPLICATE of bug 1847453

People

(Reporter: ustasase, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

  1. Windows 11, optimus laptop with integrated Intel and discrete Nvidia. (MSI Katana GF66)
  2. Dual-screen setup, with external monitor connected to Nvidia HDMI and firefox running on a second monitor
  3. In windows settings System->Display->Graphics Firefox is set to run on Nvidia GPU
  4. a) Run any youtube video (better 4k or 8k to faster see the effect), while tracking dedicated gpu memory usage
    b) scroll through it to force decoding new chunks
    c) close the tab
    d) run a new video, repeat the same procedure to exhaust dedicated GPU memory

Actual results:

Browser hangs, and seemingly unloads 1-2 chunks of old memory, than loads new, unloads another, etc, completely freezing the browser (process not responding) and sometimes the entire system

Expected results:

better i) on closing the tab, Firefox unloads GPU memory, used for the tab, and you can repeat this infinitely,
worse ii) on reaching full dedicated GPU memory, unloads all of the old memory

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
OS: Unspecified → Windows 11
Hardware: Unspecified → x86_64

Thank you for the report - bumping this over to the main bug.

Status: UNCONFIRMED → RESOLVED
Closed: 4 days ago
Duplicate of bug: 1847453
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.