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)
Firefox for Android Graveyard
General
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.
Comment 3•15 years ago
|
||
mfinkle,
what do you think about this bug? Is more information needed on this?
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 4•15 years ago
|
||
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+
| Assignee | ||
Comment 5•15 years ago
|
||
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)
| Assignee | ||
Comment 6•15 years ago
|
||
Comment on attachment 476917 [details] [diff] [review]
patch
I found more we should release, just to be safe.
Attachment #476917 -
Flags: review?(mbrubeck)
Updated•15 years ago
|
Attachment #476917 -
Flags: review+
Updated•15 years ago
|
OS: Linux → All
Hardware: x86 → All
| Assignee | ||
Comment 7•15 years ago
|
||
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 8•15 years ago
|
||
| Assignee | ||
Comment 9•15 years ago
|
||
Comment on attachment 477113 [details] [diff] [review]
unlink some more
This patch was not enough to prevent the shutdown leaks.
Updated•15 years ago
|
Summary: fennec do not release memory when closed → fennec does not release memory when closed
| Assignee | ||
Comment 10•15 years ago
|
||
Comment on attachment 477113 [details] [diff] [review]
unlink some more
Doesn't work as intended
Attachment #477113 -
Attachment is obsolete: true
Updated•15 years ago
|
Whiteboard: [fennec-checkin-postb1]
| Assignee | ||
Comment 11•15 years ago
|
||
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.
Description
•