Closed
Bug 1089297
Opened 11 years ago
Closed 4 years ago
High CPU or GPU usage with Thumbnail Zoom Plus & OMTC (offmainthreadcomposition) on Windows
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: firefox.add.on, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141023194920
Steps to reproduce:
I'm the developer of the Thumbnail Zoom Plus add-on, reporting this problem which several of my users have seen; I haven't seen it myself.
When layers.offmainthreadcomposition.enabled is true (default in Firefox 33), some users see high CPU usage, high GPU usage, fans running loudly, or a high-pitched whine (which can mean high GPU usage). It starts when an image pop-up is shown from Thumbnail Zoom Plus, and stops when the pop-up is dismissed. This happens fairly consistently, at least 90% of the time, on affected systems.
The problem does NOT happen if users set layers.offmainthreadcomposition.enabled to false in about:config.
To reproduce on an affected system:
1. Installed Thumbnail Zoom Plus https://addons.mozilla.org/en-US/firefox/addon/thumbnail-zoom-plus/
2. Visit an image-heavy site, such as http://www.reddit.com/r/pics/
3. Hover the mouse over thumbnails or links to get image pop-ups. Listen for fan running. Monitor CPU temp and CPU usage %. Watch for high usage.
Environment (user 1): Windows 7 x64, i5 2.6GHz AMD 7850
Environment (user 2): Windows 8.1. 7970 GPU with recent Catalyst build.
Firefox versions: 33.0, Nightly 36.0a1 (2014-10-19)
Thumbnail Zoom Plus version: various, including 3.1 .
Actual results:
Worked, but caused fan to run fast or hardware to "whine" (which may be excessive GPU use). One user reports his CPU temp rose from 53 to over 65 deg C.
Expected results:
Not use excessive CPU or GPU cycles.
Reporter | ||
Comment 1•11 years ago
|
||
As a workaround I've been telling users to set layers.offmainthreadcomposition.enabled to false, which works. But I don't know if that workaround will always be available, and not everyone knows to do that.
Issue in Thumbnail Zoom Plus tracker: https://github.com/dadler/thumbnail-zoom/issues/178
OS: Mac OS X → Windows 7
Hardware: x86 → x86_64
Reporter | ||
Comment 2•11 years ago
|
||
Thumbnail Zoom Plus displays its pop-up in an XUL window which contains an <html:img> inside an <html:div> inside an xul <vbox> and other elements.
For add-on source, download the add-on or see the repo at https://github.com/dadler/thumbnail-zoom/releases/tag/v3.1
Could you ask to one of your users hitting this issue to join BMO, please, it would help to speak directly with him.
In addition, could you ask them the "graphics" section from about:support.
Component: Untriaged → Graphics
Flags: needinfo?(firefox.add.on)
Product: Firefox → Core
Reporter | ||
Comment 4•11 years ago
|
||
I've emailed four users who reported the problem and asked them to comment here with the "Graphics" section.
Flags: needinfo?(firefox.add.on)
Hi! One of the above 4 mentioned users here. Graphics section posted below (sorry for not formatting it!):
Graphics
Adapter Description AMD Radeon HD 7900 Series
Adapter Drivers aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
Adapter RAM 3072
Device ID 0x6798
Direct2D Enabled true
DirectWrite Enabled true (6.3.9600.17111)
Driver Date 11-7-2013
Driver Version 13.250.18.0
GPU #2 Active false
GPU Accelerated Windows 4/4 Direct3D 10
Subsys ID 3000174b
Vendor ID 0x1002
WebGL Renderer Google Inc. -- ANGLE (AMD Radeon HD 7900 Series Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote false
AzureCanvasBackend direct2d
AzureContentBackend direct2d 1.1
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
When I first informed David of the issue I was running a 7850, am now running a gtx970. I've also downgraded back to ff 32 till this is fixed.
The "coil whine" is the noise my gpu makes when it renders at 600fps+
Adapter Description NVIDIA GeForce GTX 970
Adapter Drivers nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Adapter RAM 4095
Device ID 0x13c2
Direct2D Enabled true
DirectWrite Enabled true (6.2.9200.16571)
Driver Date 10-16-2014
Driver Version 9.18.13.4448
GPU #2 Active false
GPU Accelerated Windows 1/1 Direct3D 10
Vendor ID 0x10de
WebGL Renderer Google Inc. -- ANGLE (NVIDIA GeForce GTX 970 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote false
AzureCanvasBackend direct2d
AzureContentBackend direct2d
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
I also experienced coil whine until disabling layers.offmainthreadcomposition with an i5/GTX 760/Win7x64/FF33.
Graphics
Adapter Description NVIDIA GeForce GTX 760
Adapter Drivers nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Adapter RAM 2048
ClearType Parameters Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 100
Device ID 0x1187
Direct2D Enabled true
DirectWrite Enabled true (6.2.9200.16492)
Driver Date 10-16-2014
Driver Version 9.18.13.4448
GPU #2 Active false
GPU Accelerated Windows 1/1 Direct3D 10
Vendor ID 0x10de
WebGL Renderer Google Inc. -- ANGLE (NVIDIA GeForce GTX 760 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote false
AzureCanvasBackend direct2d
AzureContentBackend direct2d
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
Hello. Same for me here. Disabling aforementioned option solved the problem.
The browser is Aurora 35.0a2. Here's the log from the laptop:
Graphics
Adapter Description Intel(R) HD Graphics 4000
Adapter Drivers igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
Adapter RAM Unknown
ClearType Parameters Gamma: 2200 Pixel Structure: R ClearType Level: 50 Enhanced Contrast: 50
Device ID 0x0166
Direct2D Enabled true
DirectWrite Enabled true (6.1.7601.17514)
Driver Date 4-24-2014
Driver Version 10.18.10.3574
GPU #2 Active false
GPU Accelerated Windows 1/1 Direct3D 10
Subsys ID 21f317aa
Vendor ID 0x8086
WebGL Renderer Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote false
AzureCanvasBackend direct2d
AzureContentBackend direct2d
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
------------------------
The situation is the same for my PC. I have same graphics as jtbell@gmail.com (GTX 760 w/2GB RAM). I can paste the config when I have access to that PC if you want. :)
What's more important, is that it seems that this option (layers(...)) is disabled on Linux Firefox by default (same hardware as I've pasted above) and there's absolutely no problem with David's extension.
Comment 9•11 years ago
|
||
Milan, these are 3 different graphics cards... not sure if this is known or related to existing issues? :-)
Flags: needinfo?(milan)
Reporter | ||
Comment 10•11 years ago
|
||
Screen shot showing problem being reproduced
Reporter | ||
Comment 11•11 years ago
|
||
I user sent a great clue, so now I know how to reproduce the problem!
Basically it happens only when the Thumbnail Zoom Plus pop-up appears under the Windows Task Bar in task-bar-always-on-top-mode.
To reproduce:
1. On a Windows machine, launch Firefox 33.0.1
2. Install Thumbnail Zoom Plus (TZP) 3.1 and disable all other add-ons.
3. Make sure layers.offmainthreadcomposition.enabled is true.
4. Restart firefox.
5. In Thumbnail Zoom Plus settings, make sure "Max Size" is set to "Window".
5. Go to any page from which you can cause TZP to display a pop-up; I suggest http://www.reddit.com/r/aww/comments/2l00kf/what_happens_you_mix_a_husky_and_a_golden/
6. Resize the Firefox window to be fairly short; we want it to be shorter than the pop-up's image. Position the Firefox window so its bottom is below the bottom of the screen.
7. Drag the Windows task bar to the bottom of the screen.
8. Right-click the task bar, go to Properties, and turn on Keep the taskbar on top of other windows, and turn off Auto-hide.
9. Start Windows Task Manager and position it so you can see it and Firefox simultaneously.
10. Click in the Firefox window (so it has focus) and then hover the icon or link in the reddit page. A Thumbnail Zoom Plus pop-up should appear. The bottom of the pop-up should be below the bottom of the screen; if it isn't, reposition the Firefox window lower and hover again. See attached screen shot https://bug1089297.bugzilla.mozilla.org/attachment.cgi?id=8515564 .
11. Notice that Task Manager shows Firefox continually busy while the pop-up is displayed, even if you don't move the mouse or do anything else for a long time. On my system it stayed 48-66% busy. Note: Since Windows considers my machine to have two cores, I suspect 50% means a single processor (one thread) is 100% busy. On a machine with more cores I suspect one thread busy might appear as a lower %. In any case, this is a sign of the problem: Firefox should use very little CPU while the pop-up is being displayed but nothing is happening.
The problem doesn't happen if any of these are the case:
* layers.offmainthreadcomposition.enabled is false
* the pop-up isn't covered by the task bar
* the task bar's always-on-top is mode is off.
My environment:
Windows XP Home SP3
Single-core machine with hyper-threading, so appearing as a two-core machine.
Firefox
Version 33.0.1
User Agent Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0
Extensions:
Thumbnail Zoom Plus 3.1 true thumbnailZoom@dadler.github.com (and some disabled ones)
Graphics
Adapter Description Mobile Intel(R) 945 Express Chipset Family
Adapter Drivers igxprd32
Adapter RAM Unknown
Device ID 0x27ae
Direct2D Enabled Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
DirectWrite Enabled false (0.0.0.0)
Driver Date 12-19-2007
Driver Version 6.14.10.4906
GPU #2 Active false
GPU Accelerated Windows 0/1 Basic (OMTC) Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
Vendor ID 0x8086
WebGL Renderer Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
windowLayerManagerRemote true
AzureCanvasBackend skia
AzureContentBackend cairo
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
Important Modified Preferences
Name Value
browser.cache.disk.capacity 358400
browser.cache.disk.smart_size_cached_value 542720
browser.cache.disk.smart_size.first_run false
browser.cache.disk.smart_size.use_old_max false
browser.cache.frecency_experiment 1
browser.places.smartBookmarksVersion 7
browser.sessionstore.upgradeBackup.latestBuildID 20141023194920
browser.startup.homepage_override.buildID 20141023194920
browser.startup.homepage_override.mstone 33.0.1
dom.mozApps.used true
extensions.lastAppVersion 33.0.1
gfx.blacklist.direct2d 3
gfx.blacklist.layers.direct3d10 3
gfx.blacklist.layers.direct3d10-1 3
gfx.blacklist.layers.direct3d11 3
gfx.blacklist.layers.direct3d9 3
gfx.blacklist.layers.opengl 3
gfx.blacklist.stagefright 3
gfx.blacklist.suggested-driver-version 6.1400.1000.5218
gfx.blacklist.webgl.angle 3
gfx.blacklist.webgl.msaa 3
gfx.blacklist.webgl.opengl 3
media.gmp-gmpopenh264.lastUpdate 1414265095
media.gmp-gmpopenh264.version 1.1
media.gmp-manager.lastCheck 1414894077
network.cookie.prefsMigrated true
places.database.lastMaintenance 1414382610
places.history.expiration.transient_current_max_pages 53456
plugin.disable_full_page_plugin_for_types application/pdf
plugin.importedState true
plugin.state.java 0
privacy.sanitize.migrateFx3Prefs true
security.warn_viewing_mixed false
storage.vacuum.last.index 1
storage.vacuum.last.places.sqlite 1414264621
Reporter | ||
Comment 12•11 years ago
|
||
I used Firefox Developer Tools to capture a profile while the problem was happening. I profiled with the pop-up displayed but nothing else happening for at least half a minute. It shows:
100% root
100% Startup:XRE_Main
76% IPDL:PCompositor::SendFlushRendering
The full profile is attached to this bug report as Profile.json .
Reporter | ||
Comment 13•11 years ago
|
||
One user reported that the problem also happens with the Firefox maximized, but that may depend on the Windows version. In XP, maximized didn't cause the problem, but non-maximized and under task bar did.
Reporter | ||
Comment 14•11 years ago
|
||
Ping... I've posted steps which I think can reproduce the problem on any Windows machine. Is there anything else I can do to help? Is anyone from Mozilla able to investigate? Thanks,
David
Comment 15•11 years ago
|
||
33 had its share of critical problems on Windows, we didn't get to this yet.
Comment 16•10 years ago
|
||
I just realized what was making the noise and found this thread.
I was browsing reddit and I can reproduce it everytime while looking at this thread:
(http://www.reddit.com/r/eu4/comments/2nhl67/what_should_be_my_next_move/)
If I put my mouse over the thread's title, my cpu isn't skyrocketing, neither if I expand the image.
It only happens while hovering the thumbnails IF firefox is maximized. Cpu also stay calm if firefox isn't maximized, or in fullscreen mode (f11).
Disabling or removing all other addons didn't matter. As David Adler said, changing the "max size" to something else than "window" also seems to fix the problem.
Please tell me if I can do more testing, I got way too much time this month :].
--------------------------------------------------------
Application Basics
-----
Name Firefox
Version 34.0
Update History
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Profile Folder
Enabled Plugins about:plugins
Build Configuration about:buildconfig
Memory Use about:memory
Multiprocess Windows 0/1
--------------------------------------------------------
Extensions
-----
Name Version Enabled ID
Adblock Plus 2.6.6 true {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
BetterTTV 6.8.2 true jid0-OeCFXKAPh2tC0bN3Li9ajRAZx6c@jetpack
KeeFox 1.4.4 true keefox@chris.tomlinson
Reddit Enhancement Suite 4.5.2 true jid1-xUfzOsOFlzSOXg@jetpack
Thumbnail Zoom Plus 3.1 true thumbnailZoom@dadler.github.com
YouTube Center 2.1.7 true jid1-cwbvBTE216jjpg@jetpack
--------------------------------------------------------
Graphics
-----
Adapter Description AMD Radeon HD 7800 Series
Adapter Drivers aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
Adapter RAM 2048
ClearType Parameters Gamma: 1800 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50
Device ID 0x679e
Direct2D Enabled true
DirectWrite Enabled true (6.2.9200.16571)
Driver Date 11-17-2014
Driver Version 14.301.0.0
GPU #2 Active false
GPU Accelerated Windows 1/1 Direct3D 11 (OMTC)
Subsys ID 00000000
Vendor ID 0x1002
WebGL Renderer Google Inc. -- ANGLE (AMD Radeon HD 7800 Series Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote true
AzureCanvasBackend direct2d
AzureContentBackend direct2d
AzureFallbackCanvasBackend cairo
AzureSkiaAccelerated 0
--------------------------------------------------------
Important Modified Preferences
-----
Name Value accessibility.typeaheadfind.flashBar 0
browser.cache.disk.capacity 358400
browser.cache.disk.smart_size.first_run false
browser.cache.disk.smart_size.use_old_max false
browser.cache.frecency_experiment 3
browser.places.smartBookmarksVersion 7
browser.sessionstore.upgradeBackup.latestBuildID 20141120192249
browser.startup.homepage about:newtab
browser.startup.homepage_override.buildID 20141120192249
browser.startup.homepage_override.mstone 34.0
dom.mozApps.used true
extensions.lastAppVersion 34.0
font.internaluseonly.changed false
gfx.direct3d.last_used_feature_level_idx 0
media.gmp-gmpopenh264.lastUpdate 1416357872
media.gmp-gmpopenh264.version 1.1
media.gmp-manager.lastCheck 1417028295
network.cookie.prefsMigrated true
places.database.lastMaintenance 1417000302
places.history.expiration.transient_current_max_pages 104858
plugin.disable_full_page_plugin_for_types application/pdf
plugin.importedState true
privacy.cpd.sessions false
privacy.sanitize.migrateFx3Prefs true
privacy.sanitize.timeSpan 0
storage.vacuum.last.index 1
storage.vacuum.last.places.sqlite 1416370598
--------------------------------------------------------
Library Versions
-----
Expected minimum version Version in use
NSPR 4.10.7 4.10.7
NSS 3.17.2 Basic ECC 3.17.2 Basic ECC
NSSSMIME 3.17.2 Basic ECC 3.17.2 Basic ECC
NSSSSL 3.17.2 Basic ECC 3.17.2 Basic ECC
NSSUTIL 3.17.2 3.17.2
--------------------------------------------------------
Comment 17•10 years ago
|
||
Nevermind what I just said about the thread's title/expanding the image (through reddit enhancement suite). While looking at this other thread:
http://www.reddit.com/r/techsupportmacgyver/comments/2nhitl/led_sign_only_has_female_rs232_for_programming_no/
the cpu is maxed no matter where/what I hover. Food for thought: it seems to be related to the image being bigger than the space available. No idea why it doesn't trigger when over the first Thread's title though, but it *seems* to only happens on image what are bigger than my screen resolution (1360x768)
Updated•9 years ago
|
Flags: needinfo?(milan)
Reporter | ||
Comment 18•4 years ago
|
||
As original submitter, I think this bug can be closed since Thumbnail Zoom Plus is no longer available for Firefox and since it's been 6 years without issue activity.
Comment 19•4 years ago
|
||
(In reply to David Adler from comment #18)
As original submitter, I think this bug can be closed since Thumbnail Zoom Plus is no longer available for Firefox and since it's been 6 years without issue activity.
Thanks, that seems reasonable.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•