Closed
Bug 358863
Opened 19 years ago
Closed 19 years ago
High CPU load and jumping of elements if bookmarks toolbar overflows
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mikaelelf, Assigned: mozilla)
Details
(Keywords: verified1.8.1.1, Whiteboard: [need os2 verification][need testcase])
Attachments
(3 files)
|
52.49 KB,
text/html
|
Details | |
|
13.54 KB,
text/html
|
Details | |
|
1.26 KB,
patch
|
mkaply
:
review+
mkaply
:
superreview+
dveditz
:
approval1.8.1.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.1) Gecko/20061021 PmW-Fx/2.0
Build Identifier: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0/contrib/firefox-2.0.en-US.os2.zip
CPU load between 40-99%, slow performance. Seems to depend on: 1) Bookmarks Toolbar contains more bookmarks than it could show 2)FF:s window size,(big window-big trouble).
Reproducible: Always
Steps to Reproduce:
1.Start FF in Maximized window
2.You should have more bookmarks in "Bookmarks TOolbar" than it can show, or resize window until there is bookmarks that doesn't show.
3.
Actual Results:
CPU is overloaded ~40-99%, FF:s performance is slow.
Expected Results:
No CPU overload, normal performance
Using eComStation 1.2MR on:
Acer Aspire laptop, AMD Athlon XP-M 2600+
~760 MB RAM
SNAP Graphics (Vesa VBE 2.0 mode)
No problem with FF 1.5.0.7
Comment 1•19 years ago
|
||
Using a fresh download of eComstation, and testing with both warpzilla firefox 2, and Peter Wielbacher's firefox 2, a window resize event is erroneously fired over and over.
This line of googlebarOverlay.xul will cause a race. Removing it clears the race. (True, we do not resize the toolbar when the user has too many buttons to fit inside the window, and maybe we should.) This only happens on the OS2 platform.
// event listener to update the search term buttons overflow status
window.addEventListener("resize", googlebarRefreshSearchButtons, true);
There is another side effect. When a hbox node is larger than the window size,
the vertical scroll bar disappears. In my case it is the node ggb_parent_container. That node stays the same size, no matter the window size, which is supposed to be allowed.
This is probably in preperation for the resize event, which is not in fact occuring. I would think that the horizontal scrollbar would disappear also.
Comment 2•19 years ago
|
||
This issue has been reported by several people in the newsgroups and when FF2 was first released I worked with Bart on #netlabs and he worked out that it was when FF was resized so that not all the bookmarks in the Personal toolbar could show. The odd thing is that not all pages seem to exhibit the issue www.nu.nl does.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 3•19 years ago
|
||
johnrw, the reporter did not say that he was using Googlebar. I rather think that he is seeing what the "collect-all" bug 247116 is about: that there is some kind of loop involved in the bookmark chevron display, even without extensions. The reason for this may be the same as for Googlebar... Can you give me a hint how to debug where the window resize event comes from? How did you do that to find the Googlebar line?
Severity: critical → normal
Comment 4•19 years ago
|
||
Peter, What I did was set a breakpoint in googlebarOverlay.js->addTerms using venkman. With the resize listener enabled, venkman will keep breaking in that function. Once you are in the breakpoint, look at the call stack. (Of course you must have include browser files checked for venkman.) Removing that listener, the cpu would idle correctly. Enabling it, the cpu was hovering around 70%. (My laptop fan comes on.)
For the benefit of the others here... to produce this error reduce the window size horizontally to cover any of the unofficial googlebar toolbar buttons. The vertical scrollbar disappears. The listener only serves here to show that resize window events are being fired.
Comment 5•19 years ago
|
||
I shrank the window horz to halfscreen to cover some of the toolbar buttons here.
chrome://global/content/bindings/popup.xml and file:///D:/FIREFOX/components/nsMicrosummaryService.js are unusual.
Comment 6•19 years ago
|
||
Here is a venkman profile baseline of my system idling properly.
Comment 7•19 years ago
|
||
http://www.mozilla.org/performance/jsprofiler.html states that will not do much good, and that quantify is the best tool. Since that is an IBM product, I hope someone watching has that tool.
Comment 8•19 years ago
|
||
It may be related to bug 247116 but it is related to the height of the toolbar and the pages jumps up and down because of it. This one is related to the width of he toolbar and jumps left and right because of it (at least here it is left and right).
| Assignee | ||
Comment 9•19 years ago
|
||
Adapting summary a bit so that it is found for "jump".
I am going to test if this is somehow related to the theme changes I made in bug 314843 and bug 336997.
Summary: CPU overload if bookmarks toolbar is containing more than it can show → High CPU load and jumping of elements if bookmarks toolbar overflows
Comment 10•19 years ago
|
||
Peter, I tried to get a developer OS2, or even a prerelease. Until Roderick at Mensys gets back to me, I will only be able to sympathize.
| Assignee | ||
Comment 11•19 years ago
|
||
This simple fix seems to do it for me (actually, the first min-width does it already, but winstripe has them on menubar and the first-child properties, too, so I thought I add them there to be sure).
Interestingly, the SeaMonkey version of the toolbar.css file has a note /* DON'T DELETE! */ next to the min-width setting. If the Toolkit/winstripe version had it, too, I would never have removed it for the pmstripe version. I now added it again in this patch...
For everybody who wants to try this out, just place the line
toolbar, menubar { min-width: 1px; }
into your userChrome.css.
Comment 12•19 years ago
|
||
Comment on attachment 246569 [details] [diff] [review]
Fix by using min-width
r/sr=mkaply
Attachment #246569 -
Flags: superreview+
Attachment #246569 -
Flags: review?(mozilla)
Attachment #246569 -
Flags: review+
| Assignee | ||
Comment 13•19 years ago
|
||
mkaply, thanks that was quick. :-) Checked into trunk.
johnrw, many thanks for all your help with this problem and all the Googlebar debug builds that you sent me. I am very sorry that I never made the connection between the problems we discussed and min-width...
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Version: unspecified → Trunk
Comment 14•19 years ago
|
||
Well I did discover a bug on firefox, mainly if you upgrade your eComstation's Firefox somehow... (I created a specific procedure that involves booting up and getting the firefox without loading the old 1.1 firefox using the commandline ftp) and getting it all setup, you can't install an extension to it.
You see eComstation uses a ramdrive for temp files, and firefox tries to create a file named install-xyz.rdf... and that of course fails on a 16bit fat ramdrive. So maybe you guys want to join in and yell foul on the bug. OS2 is probably the last os that 16bit drives may be found on, that will still be able to run a modern browser. The bug is here https://bugzilla.mozilla.org/show_bug.cgi?id=360070
Or maybe you can let eComstation know they are going to have problems with Firefox 2.0 and the ramdrive type. The error message firefox gives back to the user blames the extension, for a malformed install.rdf!
I don't guess Roderick will be getting back to me on the os2.
| Assignee | ||
Comment 15•19 years ago
|
||
Comment on attachment 246569 [details] [diff] [review]
Fix by using min-width
Would be great to get this OS/2 only fix also into FF 2.0.0.1.
Attachment #246569 -
Flags: approval1.8.1.1?
Updated•19 years ago
|
Flags: in-testsuite-
Comment 16•19 years ago
|
||
Comment on attachment 246569 [details] [diff] [review]
Fix by using min-width
approved for 1.8 branch, a=dveditz for drivers
Attachment #246569 -
Flags: approval1.8.1.1? → approval1.8.1.1+
| Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.1.1
Comment 17•19 years ago
|
||
Peter or John: Could you please help us verify this fix on OS/2? If things work as expected now, please replace the "fixed1.8.1.1" keyword with "verified1.8.1.1". Thanks!
Whiteboard: [need os2 verification
Updated•19 years ago
|
Whiteboard: [need os2 verification → [need os2 verification]
| Assignee | ||
Comment 18•19 years ago
|
||
Jay, that is a bit difficult as there are no OS/2 branch nightlies of Firefox (that I know of). I know that it works in my own build, but I am hesitant to verify using that.
Comment 19•19 years ago
|
||
Thanks for the feedback Peter, if it's working in your build, that's a good sign. Hopefully someone with an official os2 build can verify this...if not, I'm sure we'll hear about it if it's still broken. :-)
Whiteboard: [need os2 verification] → [need os2 verification][need testcase]
Comment 20•19 years ago
|
||
toolbar {min-width: 1px;} in userChrome.css on OS/2 FF2 fixes my problem with the Web Developer extension described at http://chrispederick.com/forums/viewtopic.php?id=1582.
| Assignee | ||
Comment 21•19 years ago
|
||
Verified fixed on branch using Firefox 2.0.0.1, but trunk the toolbar on "Gecko/20061222 Minefield/3.0a2pre" acts weird anyway, so I cannot really see if this particular bug is fixed.
Keywords: fixed1.8.1.1 → verified1.8.1.1
You need to log in
before you can comment on or make changes to this bug.
Description
•