Closed Bug 594107 Opened 15 years ago Closed 15 years ago

fennec does not release memory when closed

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(fennec2.0b2+)

RESOLVED FIXED
Tracking Status
fennec 2.0b2+ ---

People

(Reporter: u367160, Assigned: mfinkle)

Details

Attachments

(3 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100724 Firefox/3.6.8 GTB7.1 Build Identifier: after I export XPCOM_MEM_LEAK_LOG="leak.log" and just started fennec and closed I have attached leak.log with 774 entries leaked total 991519 bytes of memory. also I noticed following in console output: WARNING: unable to Flush() diry datasource during XPCOM shutdown: file /home/user/mozilla/mozilla-central/rdf/base/src/nsRDFXMLDataSource.cpp, line 778 and a list of leaking urls. Reproducible: Always Steps to Reproduce: preconditions: built fennec from mozilla-central 52094:ca371593d433 mobile-browser 1889:aeb8aa5a377f on linux with enabling ac_add_options --enable-logging ac_add_options --enable-logrefcnt.
Attached file leak.log
leak.log
Attached file console.log
mfinkle, what do you think about this bug? Is more information needed on this?
Status: UNCONFIRMED → NEW
Ever confirmed: true
We need to get a handle on this problem as soon as possible. Fennec leaks like this just opening and closing - no need to do anything else.
tracking-fennec: --- → 2.0b2+
Attached patch patchSplinter Review
With this patch, Fennec will shutdown without any leaks. The patch removes message listeners attached to the main window. Opening and closing Fennec shows no leaks.
Assignee: nobody → mark.finkle
Attachment #476917 - Flags: review?(mbrubeck)
Comment on attachment 476917 [details] [diff] [review] patch I found more we should release, just to be safe.
Attachment #476917 - Flags: review?(mbrubeck)
Attachment #476917 - Flags: review+
OS: Linux → All
Hardware: x86 → All
Comment on attachment 476917 [details] [diff] [review] patch Actually, this patch seems to be all that is needed to make Fennec close without leeaks. Even though we attach message listeners to the main window in browser-ui.js, those seem to have no affect on the leak behavior during shutdown. In fact, even if I only remove three of the five listeners in this patch, Fennec closes without leaks. Maybe the cycle collector is coming into play here?
Comment on attachment 477113 [details] [diff] [review] unlink some more This patch was not enough to prevent the shutdown leaks.
Summary: fennec do not release memory when closed → fennec does not release memory when closed
Comment on attachment 477113 [details] [diff] [review] unlink some more Doesn't work as intended
Attachment #477113 - Attachment is obsolete: true
Whiteboard: [fennec-checkin-postb1]
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fennec-checkin-postb1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: