Closed Bug 1509656 Opened 6 years ago Closed 2 years ago

Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM. Most of it is gpu-committed and gpu-shared (non-WR)

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mayankleoboy1, Unassigned)

References

()

Details

(Whiteboard: [MemShrink:P3][sci-exclude])

Attachments

(4 files, 3 obsolete files)

Attached file memory-report.json.gz (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

i was watching a live stream with the chat window on youtube : https://www.youtube.com/watch?v=jfZ61lC89Vc

scroll the chat window up and down a few times


Actual results:

ram increases very fast. It reached 2.2GB in my case
If I hide the chat window, memory use decreases


Expected results:

not so
Component: General → Untriaged
Product: Core → Firefox
Summary: Youtube live stream with chat window takes 2.2GB RAM → Opening the live chat in a youtube livestream uses 2.2 GB RAM
i tried to repro on another livestream with comments, but didnt reproduce.
In the original livestream, there were lots of "supe comments". Maybe the chat stream needs some "supe commnets" to repro the memory use?
What are "supe comments"?
I meant "'super comments".
 These are the comments where you donate money to the livestreamer. Depending on the amount you donate, the comment gets "pinned" at the top of the chat window for some time. 
In my original livestream, there were a lot of "super comments". 

I think the best way to get a livestream with lots of "super comments" would be to go to https://www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig , and then try a few streams to check
Whiteboard: [MemShrink]
OK. HEre is the STR:
You dont even need to sign in to youtube.

1. Go to https://www.youtube.com/watch?v=jfZ61lC89Vc&t=15s
1.5  Make sure that the chat mode is "top comments"
2. go to roughly the 31-32 minute mark. This is the time when the donations start pouring in
3. When a donation comes it gets pinned at teh top. 
4. Click on the pinned comment. This will show a popup with the money amount, name of the commentor, and the comment.

When a pinned comment is clicked, memory increases very quickly. If you scroll to a time where there are a lot of pinned comments (35 minute mark), and click on a pinned comment, wait for a few seconds, and hen click on another. 
This will cause the memory to grow.
Attached file memory-report.json.gz (obsolete) —
On a fresh profile, without looging in to google/youtube.
memory use was around 2GB.
video of what to do. Slight change is to wait for a few seconds when you click on a pinned comment
Summary: Opening the live chat in a youtube livestream uses 2.2 GB RAM → Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM
Attached file low_mem.json.gz
before I open the chat window
Attached file high_mem.json.gz
after I open the chat window, and click on a few pinned comments
Attached file obsoleted (obsolete) —
Attachment #9027338 - Attachment is obsolete: true
Attachment #9027364 - Attachment is obsolete: true
this is not related to video per se. Looks more like a gfx issue.
Summary: Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM → Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM. Most of it is gpu-committed and gpu-shared
if i enable WR or use skia as the backend, i dont see any memory increase
Flags: needinfo?(jyavenard)
Summary: Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM. Most of it is gpu-committed and gpu-shared → Clicking on the pinned "super comments" on a live chat in a youtube livestream uses 2.2 GB RAM. Most of it is gpu-committed and gpu-shared (non-WR)
Attached file aboutsupport.txt
Attachment #9027368 - Attachment is obsolete: true
If i disable hardware acceleration, I cant repro it. So most probably a driver/D2D issue.
Also, was able to repro this in a 1 year old, and a 2 year old build. So definitely not a recent regression
Product: Firefox → Core
Component: Untriaged → Graphics
Flags: needinfo?(jyavenard)
See Also: → 1509911
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0  (20181126100057)

I've tested this report on Windows 10 using the latest Nightly and Fx release builds. I did not manage to reproduce it with the steps from comment 4 and with a couple of random live streams. When loading a video with super comments I do not observe my RAM to go up.
(In reply to Stefan [:StefanG_QA] from comment #14)
> Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101
> Firefox/65.0  (20181126100057)
> 
> I've tested this report on Windows 10 using the latest Nightly and Fx
> release builds. I did not manage to reproduce it with the steps from comment
> 4 and with a couple of random live streams. When loading a video with super
> comments I do not observe my RAM to go up.

Could be your graphics adapter and driver are different than mine.. I would be glad to share my screen or something to help you repro the STR.
Bas, any ideas? Maybe there's something we're doing that could improve this case? It seems weird that we get so much driver memory for a little YouTube feature.
Flags: needinfo?(bas)
Whiteboard: [MemShrink] → [MemShrink:P3]
A better URL could be https://www.youtube.com/watch?v=wdBK2ac2Ihs&t=2358s
open it, let the video play, open the chatstream and click on the "super comments".
:rhunt is probably more associated with gfx now
Flags: needinfo?(bas) → needinfo?(rhunt)
Priority: -- → P3
See Also: → 1513604

I don't think I will be able to get to this as this is my last week on the graphics team.

Flags: needinfo?(rhunt)
Whiteboard: [MemShrink:P3] → [MemShrink:P3][sci-exclude]
See Also: → 1678563

non-WR doesnt exist anymore

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: