Closed Bug 931422 Opened 11 years ago Closed 11 years ago

100% CPU when hovering over links on GitHub since Nightly 10-18

Categories

(Core :: Layout, defect)

27 Branch
x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla28
Tracking Status
firefox26 --- unaffected
firefox27 + verified
firefox28 + verified

People

(Reporter: me, Assigned: roc)

References

Details

(Keywords: regression, Whiteboard: [fixed by backing out bug 923193])

Attachments

(3 files)

I noticed CSS hover effects and the whole UI lagging pretty badly (~100ms for a hover effect), and started to track it down:

good: 2013-10-17-03-02-01-mozilla-central
bad:  2013-10-18-03-02-06-mozilla-central (and all nightlys to date)

Hardware Acceleration is enabled, GPU is AMD and I also did a driver update to AMD's latest beta, which didn't fix it, unfortunately.
I tried to quickly hover over a few links with hover effects, and noticed:

In the good build, CPU usage is around 50% while hovering, GPU goes up to ~15%.
In the bad build, CPU usage fully saturates one core, GPU usage stays at 2-3%.
To correct myself: I meant 50% of a single core in the good build.
Component: Untriaged → General
Product: Firefox → Core
Provide a testcase, please.
Flags: needinfo?(silv3rwind)
Keywords: testcase-wanted
Ah, it seems to be site-specific. My test case would be any GitHub profile page, like Joe's:

https://github.com/0c0w3

Quickly hover over the "Repositories contributed to" list and notice that the hover highlights starts to lag behind your mouse while the cpu usage of Firefox spikes to fully utilize a core.
Flags: needinfo?(silv3rwind)
Summary: Very noticeable UI Lag since Nightly 10-18 → Lag in CSS hover effects on GitHub since Nightly 10-18
Attached file github-nightly1018.zip
javascript profile
Did some more testing, and it seems to be JS related, as I don't get any lag with javascript.enabled = false. Attached above is a log from the profiler which I created in a fresh copy of the mentioned Nightly.
Component: General → JavaScript Engine
Summary: Lag in CSS hover effects on GitHub since Nightly 10-18 → 100% CPU when hovering over links on GitHub since Nightly 10-18
Maybe this'll help reproduce: After playing around with the site zoom level, it seems that it won't lag on certain zoom levels. Attached above is another profile for the same page when it didn't lag.

It's really strange and seems pretty random on when it's occuring, but if it does, the browser UI lags too.
OS: Windows 7 → All
STR:
Open https://github.com/0c0w3 and hover links of "Repositories contributed to".

Result: not smooth.

Regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=423b9c30c73d&tochange=4e7d1e2c93a6
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: Trunk → 27 Branch
SPS Profile against Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131030030201 CSet: 829d7bef8b0a:

http://people.mozilla.org/~bgirard/cleopatra/#report=a6e6eb7a4799be84e9922b22ed8e0bebbc156d7e

Probably a Regression of Bug 923193 (like Bug 929966), no?

FWIW, setting svg.display-lists.painting.enabled;false helps.
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/9c8ab7e9ae41
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 ID:20131017025216
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/45d9e6cd3473
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 ID:20131017030414
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=9c8ab7e9ae41&tochange=45d9e6cd3473

In local build
Last Good: 9c8ab7e9ae41
First Bad: a417424f9213
Regressed by:
a417424f9213	Robert O'Callahan — Bug 923193. Make transform-origin on SVG elements use the SVG bbox as the reference rectangle. r=heycam
Component: JavaScript Engine → Layout
Attached file semi-reduced
I analyzed this in Instruments on OSX before and after bug 923193 was backed out
and the performance problem is gone now (it was a lot of SVG GetBBox calls that
was the culprit).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by backing out bug 923193]
Assignee: nobody → roc
Target Milestone: --- → mozilla28
Fixed since 923193 is backed out on Aurora.
silverwind, can you please confirm this is fixed in Firefox 27 and 28?
Flags: needinfo?(silv3rwind)
Yep, confirming it working in 27, 28 and 29.
Flags: needinfo?(silv3rwind)
(In reply to silverwind from comment #16)
> Yep, confirming it working in 27, 28 and 29.

Thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: