Closed Bug 1935804 Opened 3 months ago Closed 1 month ago

YouTube creating or exacerbating performance issues across Firefox, resulting in low responsiveness (7 second lon CC's)

Categories

(Core :: Performance, defect)

Firefox 133
defect

Tracking

()

RESOLVED DUPLICATE of bug 1939295
Performance Impact high

People

(Reporter: mrasmus, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: perf:responsiveness, top50)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

Consistent repro has been tricky, but it's been happening for months, and now across multiple machines (Intel and Apple Silicon Macs, reasonably high memory machines that otherwise aren't having memory pressure issues). User uses Firefox with a fairly high tab count, including multiple windows and tabs/suspended tabs involving YouTube videos, watching several hours' worth of videos between recurrence of the bug, sometimes taking multiple days to recur.

Actual results:

Over time, responsiveness degrades (particularly with YouTube pages, but elsewhere in the app as well) -- UI triggers take longer, hover events, links, media interactions (pause/play), even text selection will have multi-second delays.

Recently discovered that Firefox's Task Manager can occasionally identify the "problem" YouTube tabs -- if the tab in question's group is terminated, responsiveness returns, even upon reloading the "problem" page. Closing the individual tabs normally doesn't seem to be sufficient.

Profile of a short interaction with a page exhibiting the issue: https://share.firefox.dev/4gqjubR ; the timeline shows event processing delays aligned with the jank felt by the user.

Expected results:

Performance of Firefox and the webpages in question should not excessively degrade, and forcibly shutting down "problem" tabs shouldn't be required to restore normal browser functionality.

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
Component: Audio/Video: Playback → Performance
Summary: YouTube creating or exacerbating performance issues across Firefox, resulting in low responsiveness → YouTube creating or exacerbating performance issues across Firefox, resulting in low responsiveness (7 second lon CC's)
See Also: → 1935456

This bug was moved into the Performance component.

:mrasmus, could you make sure the following information is on this bug?

  • ✅ For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
  • For memory usage issues, capture a memory dump from about:memory and attach it to this bug.
  • Troubleshooting information: Go to about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.

If the requested information is already in the bug, please confirm it is recent.

Thank you.

Flags: needinfo?(mrasmus)

I have also been struggling with this issue for months. ArchLinux, X11, Firefox 133.0.3, but also reproducible on older versions, clean profile and no extensions installed. My performance profile is here After some time spent on Youtube one of the CPU cores starts showing spikes to 100% every several seconds, and the UI lags and freezes a lot until Isolated Web Content process is killed.

``

Attached troubleshooting information, I've been unable to grab memory dumps as the issue has been occurring due to poor timing, but I'll try to get it and will upload when I get the chance. I'll grab another profile to share at that time as well, just so that the two are consistent with one another.

Having an identical issue, MacOS 15 with M3. ~30 seconds of jank. https://share.firefox.dev/4fALEQk

@Kagami not a duplicate at least in as much as the issues being reported occur in different places (YT Live v.s. the whole site).

(In reply to sheaf from comment #8)

https://bugzilla.mozilla.org/show_bug.cgi?id=1913404

Apologies, unsure of how to officially add via the 'See also' links

(In reply to sheaf from comment #7)

Having an identical issue, MacOS 15 with M3. ~30 seconds of jank. https://share.firefox.dev/4fALEQk

@Kagami not a duplicate at least in as much as the issues being reported occur in different places (YT Live v.s. the whole site).

Also having an identical issue on MacOS 15.2 with M1 base model. I got about 8 seconds of jank on this particular profile. CPU usage skyrockets, fans spin up and the window becomes unresponsive to media controls such as clicking to pause the video or bringing up the seek bar. I can't consistently reproduce the issue but it's normally manifests on youtube tabs that have been sleeping for awhile after I've made them the active tab. I have no idea how to make this consistently reproduceable though.

https://share.firefox.dev/41RYvKJ

Indeed sounds to me like it might be a dupe of 1935456.

The Performance Impact Calculator has determined this bug's performance impact to be high. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS
Impact on site: Causes noticeable jank
Websites affected: Major
[x] Multiple reporters

Performance Impact: --- → high

The profiles in this bug show the CPU is being used for the cycle collector, so this is probably a dupe of bug 1939295. We released a fix for that in a Firefox update this week, so please update your browser and see if you are still experiencing this problem.

Status: UNCONFIRMED → NEW
Depends on: 1939295
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1939295
Resolution: --- → DUPLICATE
No longer depends on: 1939295
See Also: 1935456
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: