Leak of documents and docshells involving lots of page loads

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
11 years ago
10 years ago

People

(Reporter: gkw, Unassigned)

Tracking

({memory-leak})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419.3 (KHTML, like Gecko) Safari/419.3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8pre) Gecko/20070919 BonEcho/2.0.0.8pre

I followed Jesse's and Arthur's instructions at

http://www.squarefree.com/2007/09/20/firefox-memory-usage-and-memory-leak-news/

And discovered a memory leak that didn't occur in GranParadiso Alpha 8.

Reproducible: Always

Steps to Reproduce:
1. run ./firefox && perl /Applications/leak-gauge.pl nspr_leaks.log
2. run BBC's "open all in tabs" three times continuously without finishing loading the previous set(s) of tabs.
3. before finishing loading open a new tab and load Google Maps.
4. before finishing confirm quit of program.
Actual Results:  
Leaked document at address 1c805c00.
 ... with URI "http://news.bbc.co.uk/2/hi/americas/7004975.stm".
Leaked document at address 24e8000.
 ... with URI "http://news.bbc.co.uk/2/hi/africa/7005969.stm".
Leaked document at address 261a200.
 ... with URI "http://news.bbc.co.uk/2/hi/asia-pacific/7005927.stm".
Leaked document at address 275c000.
 ... with URI "http://news.bbc.co.uk/2/hi/europe/7005483.stm".
Leaked document at address 1c81d200.
 ... with URI "http://news.bbc.co.uk/2/hi/europe/7005814.stm".
Leaked document at address 21c6400.
 ... with URI "http://news.bbc.co.uk/2/hi/uk_news/politics/7005957.stm".
Leaked docshell at address 17f09230.
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/2/hi/africa/7005969.stm".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/africa/7005969.stm".
Leaked docshell at address 17f158a0.
 ... which loaded URI "http://news.bbc.co.uk/2/hi/europe/7005483.stm".
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/europe/7005483.stm".
Leaked docshell at address 17f2e990.
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/europe/7005814.stm".
 ... which loaded URI "http://news.bbc.co.uk/2/hi/europe/7005814.stm".
Leaked docshell at address 17f3b270.
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/uk_news/politics/7005957.stm".
 ... which loaded URI "http://news.bbc.co.uk/2/hi/uk_news/politics/7005957.stm".
Leaked docshell at address 17f47a80.
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/2/hi/americas/7004975.stm".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/americas/7004975.stm".
Leaked docshell at address 16ffca90.
 ... which loaded URI "about:blank".
 ... which loaded URI "http://news.bbc.co.uk/2/hi/asia-pacific/7005927.stm".
 ... which loaded URI "http://news.bbc.co.uk/go/rss/-/2/hi/asia-pacific/7005927.stm".
Summary:
Leaked 0 out of 205 DOM Windows
Leaked 6 out of 144 documents
Leaked 6 out of 97 docshells

Expected Results:  
Summary:
Leaked 0 out of 205 DOM Windows
Leaked 0 out of 144 documents
Leaked 0 out of 97 docshells

this might have been reported, but i'm new to memory leaks and certainly thought this (stress) testing was worth a try.
Keywords: mlk

Comment 1

11 years ago
See also, http://wiki.mozilla.org/LeakingPages and Bug 394517.

Updated

11 years ago
Summary: Memory leak → Leak of documents and docshells involving lots of page loads
(Reporter)

Comment 2

11 years ago
This affects latest Minefield as well, though the steps weren't entirely the same, it's still along the principles of lots of page loads.


Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007101304 Minefield/3.0a9pre

Steps:
1. Start up Minefield.
2. Load BBC news' open all in tabs (30 tabs each click) ten times. (300 tabs loading in total)
3. While all tabs are still loading, quit Minefield by pressing apple-q then enter.


Result of leak-gauge.pl:

Leaked 0 out of 576 DOM Windows
Leaked 15 out of 347 documents
Leaked 15 out of 274 docshells

(Reporter)

Comment 3

11 years ago
Confirming, still occurs in latest nightly, follow steps in c#2 .

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007102004 Minefield/3.0a9pre

Result of leak-gauge.pl:

Summary:
Leaked 0 out of 638 DOM Windows
Leaked 15 out of 380 documents
Leaked 15 out of 304 docshells
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Reporter)

Comment 4

10 years ago
I don't see this anymore with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3

No leaks whatsoever with 150 or 300 tabs loaded as tested previously. Wonderful!
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.