Open Bug 1459500 Opened 7 years ago Updated 3 years ago

Video makes CPU go at 100% and starts the fans (part 2)

Categories

(Core :: Graphics: Canvas2D, defect, P3)

61 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: petcuandrei, Unassigned)

References

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180506100126 Steps to reproduce: I visited this page https://www.youtube.com/watch?v=nvUuC7GgqeY Actual results: One of the Firefox processes just went wild. HTOP on GNU/Linux reports the content process having above 100% CPU usage (I think this means it uses a core at 100% and some other cored). Profile here https://perfht.ml/2HU9QT0 Expected results: The CPU should not go this high with one tab, no addons and a pretty fresh profile. This is quite recent. I use Nightly as my main browser and this never happened before.
I initially made this bug but it got fixed yet the effects are still visible. https://bugzilla.mozilla.org/show_bug.cgi?id=1457678#c21
Yeah, previous bug showed an unreasonable amount of time in Canvas style code. With that fixed pretty much everything is in CanvasClientSharedSurface, inside the GL driver. Btw, do you have any particular setting, like subtitles or so? Also, could you attach about:support, and maybe the output of glxinfo? Looks like your machine is having a hard time drawing into the canvas, and I don't know what kind of canvas code youtube runs, but given I have also intel dri drivers and can't reproduce, I suspect it can be related to your setup / OS / driver / particular settings for FF / particular settings for that website. Knowing what causes it would be really helpful.
Component: Untriaged → Canvas: 2D
Flags: needinfo?(andreip)
Product: Firefox → Core
See Also: → 1457678
Attached file glxinfo
Thanks! I'll put these in attachments so that they don't clobber the comment section.
So, you have Linux, and hardware acceleration is disabled because well, drivers. Does setting layers.acceleration.force-enabled=true and restarting the browser make any difference?
Flags: needinfo?(andreip)
Yes, I use Fedora 27. Forgot to add that in the bug report, sorry. Setting the layers.acceleration.force-enabled and restarting the browser does not help. Here is the profile with the flag changed https://perfht.ml/2HTLsAZ I might say that the CPU goes even higher.
Flags: needinfo?(andreip)
OS: Unspecified → Linux
Priority: -- → P3
Hardware: Unspecified → x86_64
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: