Closed Bug 331706 Opened 18 years ago Closed 18 years ago

Leak when scrolling

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: regis.caspar+bz, Unassigned)

Details

(Keywords: memory-leak, testcase, Whiteboard: cairo)

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060325 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060325 Firefox/1.6a1

When scrolling a page containing a decent amount of text, memory usage grows at each scroll. This seems to be a bug specific to cairo builds.

Reproducible: Always

Steps to Reproduce:
1. Open attached testcase
2. Press start
3. Monitor Firefox memory usage (with Windows's task manager or process explorer)

Actual Results:  
Memory usage grows (see attached picture)

Expected Results:  
No memory usage grows

Attached: 
 - testcase
 - memory usage graph (Process Explorer)
Keywords: mlk
Whiteboard: cairo
Attached file testcase
Attached image Mem. usage graph
Graph showing memory usage growth during testcase usage
Keywords: testcase
I see this with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060325 Firefox/1.6a1 (Cairo)

I do not see this with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060325 Firefox/1.6a1 ID:2006032503 (Non-cairo)

Leak-gauge.pl reports no leakage for the objects it tracks.
Yes I see this too, just as you described
I don't think this is a cairo bug.
So are we talking about a VC6 (pacifica) versus VC8 (gaius) issue then?
For the testcase I had the used memory growing well over 100M in my VC8 Express build of today. (with cairo)
I let the testcase run for a few minutes on my own non cairo-enabled VC8 build and my memory usage jumped no more than 1-1.5MB and went back to where it started at after stopping it and going back.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060324 Firefox/1.6a1 ID:2006032417
I just did a build off the exact same codebase as my previous post, but with Cairo enabled. I can confirm that memory usage does indeed go up quite rapidly in the testcase while it doesn't with Cairo disabled (like I said previously).
Testcase was slightly modified: 
gTest.timer = window.setTimeout(gTest.scrollAuto, 100, -amount);

on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060328 Firefox/1.6a1 (custom debug build)
Confirmed here also Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060326 Firefox/1.6a1 ID:2006032612
Status: UNCONFIRMED → NEW
Ever confirmed: true
i just checked in a fix that should probably fix it.  reopen if you're still seeing it in tomorrow's builds.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
As a matter of interest, what was the bug responsible for this?
Confirmed fixed on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060403 Firefox/1.6a1 ID:2006040312. 
Thanks Stuart for your quickfix fix.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: