Closed Bug 511712 Opened 15 years ago Closed 13 years ago

Some flash Ads causes high CPU usage

Categories

(Firefox :: General, defect)

3.5 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozbugz, Unassigned)

References

()

Details

(Keywords: hang, perf, Whiteboard: [CLOSEME 2011-05-30])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

Browser goes to 100% CPU usage and scroll wheel slows down browser with Java Script enabled on this website.

Reproducible: Always

Steps to Reproduce:
1. Load page
2. Use scroll wheel up and down many times
3.
Actual Results:  
Browser goes to 100% CPU Usage, but doesn't crash, you can close tab, but the rest of the browser is really un-responsive.  You can move the scrollbars up and down with the mouse, but CPU stuck at 100% and unable to do much else.  Turning off Java script in Tools->Options stops the hang.

Expected Results:  
Normal browser behavior, ie be able to access bookmarks, close tabs, open a new tab or close browser.

Java script bug.
not getting a hang with Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20090820 Minefield/3.7a1pre (.NET CLR 3.5.30729). Did you try safe mode or a new profile?
Severity: critical → major
Keywords: hang
Version: unspecified → 3.5 Branch
I tried it on 4 different builds.  Same site, JS horks the tab and all the other functions, it doesn't crash, but its eating a ton of CPU time.  Notice its not MSN.com, but see the URL field I filled in and give it a try.  I installed 4 builds today on my work PC same results.  Initially noticed it while checking a tryserver build, then tested the trunk and finally firefox 3.5.2  All installed in separate directories.  Same behavior, but I'm not about to kill my bookmarks on my home machine, so I'd have to export them, delete all the folders and reinstall.  The problem went away almost immediately after I disabled JS.  I could scroll that URL just fine.  MSN is default webpage on IE at work and on Firefox builds.. so its not the main webpage.
Yeah, i used the link you gave me. Did you try a new profile? You can save your old one, and just use the new one for testing. http://support.mozilla.com/en-US/kb/Managing+profiles
Ok, I renamed the App Data\Mozilla\Profiles folder to Profiles_old, it created a new folder upon starting FF3.5.2.  I also have an on board graphics adapter at home using Vista here compared to my work laptop with XP.
I just tried using the -profilemanager command line to create a new "test" profile user.  I opened the URL in new, felt the slower browser response, opened task manager, still very high CPU load of 95%. 

FF responds better on Vista than an XP laptop where bookmarks and Tools, Help come up if you wait, but the real issue here its using CPU resources, change URL or close that open URL, the browser performance comes back.  But for older users, I would say that FF is basically not worth using.  Considering MSN.com being a high traffic portal, I would have to say we should warn users in the short term and try to improve the perf on JS for a site like this.
Here it the attachment for XP I created earlier today:
https://bug435296.bugzilla.mozilla.org/attachment.cgi?id=395614

Also, the more I look at this, it appears the JS is loading both Adobe Flash Ads.  Who knows, maybe its the Adobe Flash Ads..
Summary: Javascript on an msn site hangs 3.5.2 & trunk builds including Minefield 08202009 → Javascript on an msn site which also loads Adobe Flash Ads creates high CPU load, and slows down FF 3.5.2 & trunk builds including Minefield 08202009
you have the latest flash, right?
Yep - I have Flash version 10,0,32,18 installed.  

I already know that Flash by itself is not a problem, since I can use streaming flash web/video sites no problem.  But, this URL is different somehow.
https://developer.mozilla.org/en/How_to_get_a_stacktrace_with_WinDbg

when it hangs, use:

!analyze -v -hang

attach the log here
timeless, I haven't yet had time to review this.. and haven't reproduced it yet.  I wonder MSN did a site change.
update: Testing latest trunk w/flash v10.0.42.34 appears to improve performance and CPU load is a non issue, but I need to recheck both 1.9.3 and 1.9.2 against flash v.10.0.42.18 and older to see if there is still a perf issue there.
We don't need to check against older versions of flash, as they are insecure and unsupported anyway. I would just check 3.6b5 and 3.5.7 with flash 10.0 r42
I did some tests on this page here to hopefully isolate the flash ad at the top of the page from the interactive flash below, so the interactive flash was not running on this page:
https://genographic.nationalgeographic.com/genographic/lan/en/resources.html

Flash  10.1 r85 (10.1.85.3)

ATI Radeon HD 5450 - Intel Core 2 Duo
3.5.9     shows about 39%-41%
3.6.11    shows about 45%
4.0b2pre  20100715 45%-50%
4.0b6     shows about 70%-80% 
4.0b8pre  20101021 70%-80%
Forgot to mention I tested using Windows 7 32-bit with no hardware acceleration turned on in firefox.
Keywords: perf
Summary: Javascript on an msn site which also loads Adobe Flash Ads creates high CPU load, and slows down FF 3.5.2 & trunk builds including Minefield 08202009 → Some flash Ads causes high CPU usage
Blocks: slowui
Reporter, are you still seeing this issue with Firefox 4.0.1 or later in safe mode or a fresh profile? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2011-05-30]
No reply, INCOMPLETE. Please retest with Firefox 4 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). Also, ensure you have the most up to date graphics drivers, operating system updates, and plugin versions (flash, java, etc). If you continue to see this issue with the newest Firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
FF4 jumps around about FF4 so its improved a bit even using Flash 10.3.
Resolution: INCOMPLETE → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: