Open Bug 1961415 Opened 10 months ago Updated 2 months ago

Firefox memory leak when watching YouTube Shorts

Categories

(Core :: Performance: Memory, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: speciesx, Unassigned, NeedInfo)

Details

Attachments

(2 files)

Attached file memory-report.json.gz

When watching YouTube Shorts videos in Firefox, the browser's memory usage increases continuously with each video played. Over time, memory consumption exceeds 4 GB, leading to severe performance issues. The browser begins to lag significantly, and in some cases, the entire screen goes black. The only way to recover is to forcefully kill the Firefox process.

Steps to Reproduce:

Open Firefox.

Go to https://www.youtube.com/shorts.

Watch multiple Shorts videos consecutively.

Monitor system memory usage.

Expected Behavior:
Memory usage should remain stable or be released properly after each video.

Actual Behavior:
Memory usage continuously increases with each video and is not released, eventually degrading system performance.

System Information:

Firefox version: nightly x64

Operating System: Windows 10 x64
Attached image about_processes.jpg

Try recording and sharing a performance profile:

  1. Go to http://profiler.firefox.com/
  2. Start recording and repeat the action
  3. Upload the profile and share the link here
Component: General → Performance: Memory
Product: Firefox → Core

The severity field is not set for this bug.
:jlink, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlink)

I have the same issue, but when I try using Firefox Profiler, I get an error message after finishing capture:
Error: Unable to parse a Gecko profile of version 32, most likely profiler.firefox.com needs to be refreshed. The most recent version understood by this version of profiler.firefox.com is version 31. You can try refreshing this page in case profiler.firefox.com has updated in the meantime.

OS: Windows 10
Firefox: 146.0.1 (64-bit)

Screenshot of Task Manager when this issue happened: https://imgur.com/a/rsSNLDr

If you need any info, please ask freely.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: