Hidden CSS animated spinner causes high CPU load on Google search pages if not logged in
NEW
Unassigned
Status
()
People
(Reporter: alertesmails, Unassigned)
Tracking
(Depends on: 1 bug, {perf})
Firefox Tracking Flags
(Not tracked)
Details
(Whiteboard: [bugday-20151026])
Attachments
(5 attachments)
Created attachment 8678567 [details] bugFF1.jpg User Agent: Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 Build ID: 20150923215417 Steps to reproduce: I used : Firefox 41.0.2 in safe mode (cmd : "firefox --safe-mode") Seamonkey 2.38 (Build identifier: 20150923215417) in safe mode (cmd : "seamonkey --safe-mode") I enter the address https://www.google.com I am redirected on my country page : https://www.google.fr/?gfe_rd=cr&ei=yq0sVtG2EuyX8Qei8bqwAw On this page the CPU load is ~60 %. Actual results: Without doing anything the CPU usage on this page is ~60 %. (see joined image) Expected results: The CPU usage may be near 1%. On the google page if I click on the bottom right link "Utiliser Google.com" I arrive on this page : https://www.google.com/?gfe_rd=cr&ei=yq0sVtG2EuyX8Qei8bqwAw&gws_rd=cr&fg=1 The CPU usage is near 1% If you go back on the french page by clicking on "Use Google.fr" the CPU usage goes back to 60%.
| (Reporter) | ||
Updated•2 years ago
|
||
OS: Unspecified → Linux
Hardware: Unspecified → x86
Comment 1•2 years ago
|
||
Thanks for taking the time to report this! Does the problem still happen if you start Firefox in Safe Mode? (Safe Mode disables extensions and themes, hardware acceleration and some JavaScript stuff in order to exclude some possible reasons for problems. It does not disable plugins which are add-ons.) See http://support.mozilla.com/en-US/kb/Safe+Mode And does this also happen with a new and empty profile? See http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile and http://support.mozilla.org/kb/Managing%20profiles
Flags: needinfo?(alertesmails)
| (Reporter) | ||
Comment 2•2 years ago
|
||
Quick answer to the first question : I wrote : "I used : Firefox 41.0.2 in safe mode (cmd : "firefox --safe-mode") Seamonkey 2.38 (Build identifier: 20150923215417) in safe mode (cmd : "seamonkey --safe-mode") "
Flags: needinfo?(alertesmails)
| (Reporter) | ||
Comment 3•2 years ago
|
||
I have tested with an empty profile : it does not change anything. And I remarked the problem with 2 different profiles. I think that it is something really new ; maybe it arrives with seamonkey 2.38 ?
Comment 4•2 years ago
|
||
¡Hola! Could you please gather and provide the URL of a profile as described at https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem ¡Gracias! Alex
Flags: needinfo?(alertesmails)
Whiteboard: [bugday-20151026]
| (Reporter) | ||
Comment 5•2 years ago
|
||
Must I test with a nightly build as said in the link or with my version ?
Flags: needinfo?(alertesmails)
| (Reporter) | ||
Comment 6•2 years ago
|
||
I have tested with my version : Firefox 41.0.2 On an EMPTY page ~40%-45% cpu usage http://people.mozilla.org/~bgirard/cleopatra/#report=b4bca8c5b284b0ba698cccf13e08bbfec1cad56d On the google page reported in this bug. High cpu usage ~70% http://people.mozilla.org/~bgirard/cleopatra/#report=0dbebcbe6a384c8644b7742a42b974ce6b848fc2 Too bad : your plugin is not compatible with seamonkey...
Comment 7•2 years ago
|
||
Hi, I have tested on Ubuntu 14.04 with FireFox Nightly 44.0a1 (2015-10-27) and I didn't reproduce the CPU Usage. Please try with Nightly to reproduce this problem. You can download this version from here: https://nightly.mozilla.org/
Component: Untriaged → General
Product: Firefox → Core
| (Reporter) | ||
Comment 8•2 years ago
|
||
I can't start nightly on my distrib : ./firefox XPCOMGlueLoad error for file firefox/libmozgtk.so: libgtk-3.so.0: cannot open shared object file: No such file or directory Couldn't load XPCOM. Future versions will not work with gtk+2 ?
| (Reporter) | ||
Comment 9•2 years ago
|
||
I tried to install a libgtk-3 package. But it is not better : ./firefox: symbol lookup error: /usr/lib/libgtk-3.so.0: undefined symbol: atk_window_get_type So is it a bug or future versions will not work with gtk+2 ?
Comment 10•2 years ago
|
||
¡Hola Nicholas! Do you see anything obviously wrong with these profiles? ¡Gracias! Alex (In reply to alertesmails from comment #6) > I have tested with my version : Firefox 41.0.2 > > On an EMPTY page > ~40%-45% cpu usage > http://people.mozilla.org/~bgirard/cleopatra/ > #report=b4bca8c5b284b0ba698cccf13e08bbfec1cad56d > > On the google page reported in this bug. > High cpu usage ~70% > http://people.mozilla.org/~bgirard/cleopatra/ > #report=0dbebcbe6a384c8644b7742a42b974ce6b848fc2 > > Too bad : your plugin is not compatible with seamonkey...
Flags: needinfo?(n.nethercote)
Comment 11•2 years ago
|
||
(In reply to alertesmails from comment #9) > So is it a bug or future versions will not work with gtk+2 ? Bug 1207310 (further gtk stuff should probably go to a forum as it's unrelated to this very bug)
| (Reporter) | ||
Comment 12•2 years ago
|
||
I have started nightly build (sorry for the noise...). I reproduced on the nightly build !! To reproduce you need : (is it possible to edit my user story ?) 1- change the preferences : preferences/privacy/history ==> use custom settings for history Accept third-party cookies ==> from visited 2- delete the google cookies 3- restart 4- follow my user story I think that you need to have the same screen as my first attachment. Look at the next joined image. It seems that the stress comes from the google rules to read.
| (Reporter) | ||
Comment 13•2 years ago
|
||
Created attachment 8680239 [details] red needed to reproduce
I don't see anything notable in the profiles, but I'm terrible at reading those kinds of profile. Sorry!
Flags: needinfo?(n.nethercote)
Comment 15•2 years ago
|
||
I've tested it on nightly 45.0a1 (2015-11-01) Windows 8.1 Nothing weird.
Comment 16•2 years ago
|
||
Intel® Pentium(R) CPU G3258 @ 3.20GHz × 2 FF RC 41.0 Ubuntu 14.04 I've got something weird. With this test case, FF CPU grows to 25%. when I leave, it goes to 2% I have a very powerful CPU. 25% for me is a lot. (like 60% for a less powerful CPU, I guess)
Comment 17•2 years ago
|
||
¡Hola Xavier! Thanks for your testing. I'm marking this bug NEW as there are now two separate users confirming this is a problem. Could you please gather and provide the URL of a profile as described at https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem ? ¡Gracias! Alex
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(xavier.delgado)
Summary: 60% CPU usage on idle on the empty www.google search page → High CPU usage on idle empty www.google.fr French search page
Comment 18•2 years ago
|
||
Hola Alex. I've done another test. google.com and google.fr use the same CPU on my PC. So I can't say anymore that it's reproduced. Gracias a ti :) Javi (o Xavi ;) )
Flags: needinfo?(xavier.delgado)
| (Reporter) | ||
Comment 19•2 years ago
|
||
Xavier, Did you try to reproduce using my user story in comments 12 and 13 ? It still have the problem with the new firefox version (42.0). Google was my home page but it is no more possible. The CPU usage is normal (~1%) in 2 cases : - the firefox window is minimized - the google page is not the active tab
Comment 20•2 years ago
|
||
Hey, Actually, you're right. I'm on firefox 42.0 When - I minimize firefox window - Google page is not the active tab CPU usage decreases around 1%
Comment 21•2 years ago
|
||
Have you tried to reproduce bug on others browsers? (To see if it's a Google issue, or a Firefox issue)
Flags: needinfo?(alertesmails)
Comment 22•2 years ago
|
||
Not only Seamonkey. Chrome and IE.
Comment 23•2 years ago
|
||
Windows 8.1 On IE, the change is from 0,6% with Google minimized or on another tab to 6% when active. On Chrome, the change is from 0,3% with Google minimized or on another tab to 1,5% when active. Ubuntu 14.04 (The big change from 2% to 25% is only on Ubuntu 14.04 (Firefox))
Comment 24•2 years ago
|
||
Windows 8.1 / Firefox 42 Changes from ~6% to ~16%
| (Reporter) | ||
Comment 25•2 years ago
|
||
> (The big change from 2% to 25% is only on Ubuntu 14.04 (Firefox))
Yes.
I reported the bug on Linux platform.
I tested with what I use i.e. Seamonkey and Firefox.
I am an end-user : I think that developers will easily see what happens and set the bug importance.Flags: needinfo?(alertesmails)
| (Reporter) | ||
Comment 26•2 years ago
|
||
@Xavier As you can reproduce on Ubuntu it would be nice to provide a profile as asked by alex_mayorga in comment 17. Maybe it will help.
Comment 27•2 years ago
|
||
Linux Euroka 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 14.04 / Firefox 42 report: http://people.mozilla.org/~bgirard/cleopatra/#report=ee22579895523a4981e6e0cf6889dcfff323726a
Comment 28•2 years ago
|
||
Windows 8.1 Nightly 45.0a1 (2015-11-05) http://people.mozilla.org/~bgirard/cleopatra/#report=136350fae13d9cbccdeb5f3756b35e89fd95fd0c
Comment 29•2 years ago
|
||
Better Ubuntu 14.04 testing. Nightly 45.0a1 (2015-11-08) http://people.mozilla.org/~bgirard/cleopatra/#report=3220974a7c62845bfcfd0ab3bc3f519c7229ca57
| (Reporter) | ||
Comment 30•2 years ago
|
||
You asked for profiles. Several profiles on several systems were provided. But it seems that nothing was done : the problem is still here...
Comment 31•2 years ago
|
||
¡Hola Benoit! Could you please take a look at the profiles at https://bugzilla.mozilla.org/show_bug.cgi?id=1218169 and advise? ¡Gracias! Alex
Flags: needinfo?(bgirard)
Comment 32•2 years ago
|
||
None of the profiles show any interesting activity. They only monitor graphics thread so it could be that work is happening in a background thread. To procedure we'd need to get a good process wide profile from a system profiler that would include all the threads in case this activity is coming from a background thread. Otherwise finding the element/source responsible by minimizing the page until the CPU usage goes away might help.
Flags: needinfo?(bgirard)
Comment 33•2 years ago
|
||
Same problem, high CPU usage on google results page. OS X Refresh HW and smooth scrolling on/off: no difference 2014 Macbook Pro When I disable Javascript on Google.com or when I minimise then CPU < 3%, else CPU >20% on the results page (static display)! Same bug as: https://bugzilla.mozilla.org/show_bug.cgi?id=877597? NB this has been a problem for me across 3 computers and several years... new profiles each time. Application Basics ------------------ Name: Firefox Version: 47.0.1 Build ID: 20160623154057 Update Channel: release User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:47.0) Gecko/20100101 Firefox/47.0 OS: Darwin 14.5.0 x86-64 Multiprocess Windows: 0/1 (Disabled) Safe Mode: false Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Extensions ---------- Name: Firefox Hello Version: 1.3.2 Enabled: true ID: loop@mozilla.org Name: Multi-process staged rollout Version: 1.0 Enabled: true ID: e10srollout@mozilla.org Name: Pocket Version: 1.0.2 Enabled: true ID: firefox@getpocket.com Graphics -------- Asynchronous Pan/Zoom: none Device ID: 0x0a2e GPU Accelerated Windows: 0/1 Basic (OMTC) Supports Hardware H264 Decoding: Yes Vendor ID: 0x8086 WebGL Renderer: Intel Inc. -- Intel Iris OpenGL Engine windowLayerManagerRemote: true AzureCanvasAccelerated: 1 AzureCanvasBackend: skia AzureContentBackend: quartz AzureFallbackCanvasBackend: none Important Modified Preferences ------------------------------ browser.cache.disk.capacity: 358400 browser.cache.disk.filesystem_reported: 1 browser.cache.disk.smart_size.first_run: false browser.cache.disk.smart_size.use_old_max: false browser.cache.frecency_experiment: 3 browser.download.importedFromSqlite: true browser.places.smartBookmarksVersion: 7 browser.sessionstore.upgradeBackup.latestBuildID: 20160623154057 browser.startup.homepage_override.buildID: 20160623154057 browser.startup.homepage_override.mstone: 47.0.1 dom.apps.reset-permissions: true dom.mozApps.used: true extensions.lastAppVersion: 47.0.1 gfx.blacklist.direct2d: 3 media.gmp-gmpopenh264.abi: x86_64-gcc3-u-i386-x86_64 media.gmp-gmpopenh264.lastUpdate: 1469019114 media.gmp-gmpopenh264.version: 1.5.3 media.gmp-manager.buildID: 20160623154057 media.gmp-manager.lastCheck: 1469019113 media.gmp-widevinecdm.abi: x86_64-gcc3-u-i386-x86_64 media.gmp-widevinecdm.lastUpdate: 1469019117 media.gmp-widevinecdm.version: 1.4.8.866 media.gmp.storage.version.observed: 1 network.cookie.prefsMigrated: true network.predictor.cleaned-up: true places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf plugin.importedState: true Important Locked Preferences ---------------------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.12 Version in use: 4.12 NSS Expected minimum version: 3.23 Basic ECC Version in use: 3.23 Basic ECC NSSSMIME Expected minimum version: 3.23 Basic ECC Version in use: 3.23 Basic ECC NSSSSL Expected minimum version: 3.23 Basic ECC Version in use: 3.23 Basic ECC NSSUTIL Expected minimum version: 3.23 Version in use: 3.23 Experimental Features ---------------------
Comment 34•2 years ago
|
||
WFM on Windows 10 x64 Nightly 50.0a1 (2016-07-20)
Comment 35•2 years ago
|
||
Hi, Do you still reproduce this issue? Please update to the latest FF version and see if you encounter any issue.
Flags: needinfo?(alertesmails)
Comment 36•2 years ago
|
||
(In reply to ovidiu boca[:Ovidiu] from comment #35) > Do you still reproduce this issue? Please update to the latest FF version > and see if you encounter any issue. @Ovidiu: Your comment does not make any sense. Did you actually read comment 33?
Flags: needinfo?(alertesmails)
Comment 37•2 years ago
|
||
Sorry for that, you are right. I wanted to ask if he can try with FF Nightly to see if he can reproduce it.
Comment 38•2 years ago
|
||
Same problem with FF 48.0 in Safe Mode.
Comment 39•2 years ago
|
||
(In reply to ovidiu boca[:Ovidiu] from comment #37) > Sorry for that, you are right. I wanted to ask if he can try with FF Nightly > to see if he can reproduce it. Not tried with Nightly (this is a working system), but the problem persists unchanged in FF 48.0 release.
Comment 40•2 years ago
|
||
Created attachment 8777027 [details] Screenshot 2016-08-02 14.06.17.png Alright I looked more into this. The google.fr page for me has a 'Rappel concernant les règles de confidentialité de Google' pannel. This has a CSS animated loading spinner that has an 'inherited visibility: hidden;'. We however keep re-calculating styles for this even though it's hidden. We have some optimizations to fix some of these cases but they are not being applied here. We should find out why. FWIW this page in chrome doesn't show this panel so I can't compare against Chrome.
Updated•2 years ago
|
||
Summary: High CPU usage on idle empty www.google.fr French search page → Hidden CSS Animated spinner causes high idle CPU usage on www.google.fr French search page
Updated•2 years ago
|
||
Component: General → Layout
Comment 41•2 years ago
|
||
If I allow the JS on google.fr then the CPU usage is high (30% when not doing anything, just displaying page). Sample the FF process shows a lot of mac_plugin_interposing_child_OnShowCursor (in XUL) calls. Maybe this helps? These calls are not there when JS is disabled. Tnx
Comment 42•2 years ago
|
||
If you want to verify you should set 'display: none' on the hidden spinner shown in the screenshot (inside the panel). This should drop down the CPU usage.
Comment 43•2 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #42) > If you want to verify you should set 'display: none' on the hidden spinner > shown in the screenshot (inside the panel). This should drop down the CPU > usage. CPU usage now settles to about 6-7% and FF will go into App Nap from Google results page. (This quite a lot of wakeups/s before going to Appnap compared to Safari, but with animation display:none a lot seems to be fixed)
Comment 44•2 years ago
|
||
How do you detect that something is in App Nap?
Comment 45•2 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #44) > How do you detect that something is in App Nap? Activity Monitor - Energy Tab https://support.apple.com/en-us/HT201464
Comment 46•2 years ago
|
||
Created attachment 8777050 [details]
Google5.html - (non-minimal) Reduction
Here's a fairly well reduced test case. Is there anything we can do to optimize or throttle this visibility: hidden; CSS animation? From what mstange tells me if this was visible this would be handled by OMTA and be throttled on the main thread. Perhaps we can throttle the case where it's also hidden?
I have a feeling this is a dupe of a power bug. But this being on the home page of google.fr makes it fairly important.Flags: needinfo?(bbirtles)
Comment 47•2 years ago
|
||
Yes, that sounds like bug 1237454. Hiro was working on it but I think he was looking for some help with detecting visibility of descendant elements. Hiro, is this a dupe of bug 1237454? Can you reproduce? (It might be Linux-specific. The STR appear to be comment 12 + comment 0.)
Flags: needinfo?(bbirtles) → needinfo?(hiikezoe)
Comment 48•2 years ago
|
||
Yes, this is absolutely a dupe of bug 1237454. Thanks BenWa for the test case, I could confirm easily. I don't think this bug is specific for Linux platform, I guess it depends on machine power, I mean, high CPU usage or not, but anyway, the invisible animation consumes definitely on the main thread. I am not sure to make this bug as a dupe of bug 1237454, so I am just adding bug 1237454 in dependency list for now.
Depends on: 1237454
Flags: needinfo?(hiikezoe)
Comment 49•2 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #48) > I am not sure to make this bug as a dupe of bug 1237454, Oops. I meant that "I am not sure it's a good thing to make..".
Comment 50•a year ago
|
||
Just wondering if there is any further input desired / needed for progress on this (I assume it effects every user with an OS X laptop?)
Comment 51•11 months ago
|
||
Hi. This is happening on Ubuntu on Firefox 51 (distribution and upstream versions) on the google.co.uk page. Interestingly, when logged into my google account this animation is not included and cpu usage is normal (see https://ovh.themcphails.uk/index.php/s/3AMFa2fO3eF5KlZ ). It only appears when not logged in (see https://ovh.themcphails.uk/index.php/s/GYkTSLuHM0wjm7N ).
Comment 52•11 months ago
|
||
Created attachment 8837193 [details] google.de repaints Firefox issues a lot of repaints while showing the search results. I attached a video (“google.de repaints”) where I switch the “Show Paint” desktop effect in KDE three times on and off. Looking closely one might be able to recognize the redrawing of an invisible spinner in the middle of the page. I used a freshly created Firefox profile for this recoding. Chromium does not show this redrawing behaviour. PS: I also noticed excessive redrawing without visual changes on the members page of a group in GitLab. PPS: Bug 877597 seems to be related.
Comment 53•11 months ago
|
||
As comment #40 describes, me and Tew could observe the hidden spinner of Privacy reminder having a significant impact on CPU usage, under Windows 10 and Windows 7 respectively (Platform specifies only Linux atm). Privacy reminder (http://i.imgur.com/Jxa5EYq.png; localized for gooogle.country domains) on google search results page is the visual indicator required to reproduce this bug, = clean profile/cleared cookies necessary. That reminder is shown to google users till they confirm their agreement (or have confirmed before and log in), which is likely a significant population, even if mostly short-term (long-term in case of people who do not accept T&C). firefox.exe --no-remote --profile "path_to_new_profile_to_create" http://www.google.de/?gws_rd=ssl#q=test was a quick cmdline setup to repro (works with any country tld (~5 tested) to get Privacy reminder, but google.COM may not be showing it consistently?) Per comment #42, document.getElementById("cnsm").style.display = "none"; fixes the high cpu usage by 'removing' the spinner better. Depending on the firefox version, cpu usage drops down from 12% (with spinner) to 2% (spinner removed), from 16% (with spinner) to sub-1% (spinner removed), from 7% (with spinner) to 1% (spinner removed). The current ff54.0a1 Nightly was still affected.
Comment 54•7 months ago
|
||
I can confirm decebalus’ observation that “better removing” the spinner helps. I use the following uBlock Origin rule (you might have to adapt the URL to your country): www.google.de###cnsm > g-loading-icon This nicely works around the problem for now.
Comment 57•2 days ago
|
||
This is happening across platforms and all Google search pages independently of the language. It can only be avoided by signing in, as mentioned above. I had 3 search pages open yesterday, and the battery got drained kinda quickly. I ended up quickly without any power left. :/ Knowing this problem, and the fact that Google forces us to stay logged in, is not that satisfying. Especially that I use containers to stop Google from tracking me.
Keywords: perf
OS: Linux → All
Hardware: x86 → All
Summary: Hidden CSS Animated spinner causes high idle CPU usage on www.google.fr French search page → Hidden CSS animated spinner causes high CPU load on Google search pages if not logged in
Comment 58•2 days ago
|
||
(In reply to Flupp from comment #54) > I use the following uBlock Origin rule (you might have to adapt the URL to your country): > > www.google.de###cnsm > g-loading-icon > > This nicely works around the problem for now. Thanks for this hint. The same rule also works with AdBlock Plus. However, applying such rules should be a temporary solution. At the end, it would be much better to have such code suppressed by the browser engine. In this way, we would need less add-on resources, we could speed-up firefox even more and we would not waste electrical energy on useless css code.
Comment 59•2 days ago
|
||
Bug 1237454 (which should hopefully fix this) has been prioritized for Q1.
You need to log in
before you can comment on or make changes to this bug.
Description
•