Closed
Bug 64000
Opened 25 years ago
Closed 22 years ago
localstore.rdf not flushed when I only use mail.
Categories
(Core Graveyard :: RDF, defect, P1)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
Future
People
(Reporter: sspitzer, Assigned: sspitzer)
References
Details
(Whiteboard: [nsbeta1+ 2/21])
Attachments
(3 files)
egads, this looks bad.
while working on bug #63853 (persisting "View | Message | Unread") I noticed
that if I launched mail alone, did stuff that should cause changes to
localstore.rdf, and quit, localstore.rdf did not get updated on disk.
if I launched mail and then browser, did stuff that should cause changes to
localstore.rdf, quit mail and then quit the browser, localstore.rdf got updated
on disk.
I'll investigate.
| Assignee | ||
Comment 1•25 years ago
|
||
here's what it looks like so far:
for the localstore datasource we never call, RDFXMLDataSourceImpl::Flush()
because we never call RDFXMLDataSourceImpl::~RDFXMLDataSourceImpl() because we
are leaking it.
probably something we are doing in mailnews.
I'm continuing to investigate.
| Assignee | ||
Comment 2•25 years ago
|
||
I've used the ref count balancer to see which RDFXMLDataSourceImpl objects are
leaking.
I attached the balance trees.
| Assignee | ||
Comment 3•25 years ago
|
||
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
| Assignee | ||
Comment 6•25 years ago
|
||
I was only watching RDFXMLDataSourceImpl, I'm not sure how nsMemoryImpl showed
up when I ran find-leakers.pl (see tree for object #2).
when I check for leaks when just using the browser, I still get a leaked
nsMemoryImply, but the other two leaks are not there.
Comment 7•25 years ago
|
||
Look for the leaking nsXULDocument, Luke.
| Assignee | ||
Comment 8•25 years ago
|
||
thanks for the tip, waterson.
I'm off to find the leaking nsXULDocument.
adding leak master dbaron to the cc list.
add bienvenu to the cc list, to keep him in the loop.
accepting.
Status: NEW → ASSIGNED
It sounds bad that you depend on destructors to do something important.
Leaking |nsXULDocument|s sound bad. I'm tired of dealing with them, because
it's too often circularity through JS (lately involving XBL rather than
anonymous content), and nearly impossible to debug. And we leak them all over
the place...
What does the leak log (XPCOM_MEM_LEAK_LOG) look like?
| Assignee | ||
Comment 10•25 years ago
|
||
this is p1 bad, in my book.
Priority: -- → P1
Target Milestone: --- → mozilla0.8
Comment 11•25 years ago
|
||
adding nsbeta1+ to this.
I agree with dbaron. We've changed lost of code in the past in mailnews to not
depend on destructors. Is there anyway we can change it so that localstore.rdf
gets saved on shutdown regardless of whether a destructor is hit? Finding the
leak is still good to. I'm sure this causes us to leak lots of other things.
Keywords: nsbeta1
Whiteboard: [nsbeta1+]
Comment 13•25 years ago
|
||
marking nsbeta1- and moving to future milestone.
| Assignee | ||
Comment 14•24 years ago
|
||
varada, I've got a hunch this leak might be a missing RemoveDataSource() call.
Comment 15•24 years ago
|
||
Oddly, WFM 2001093021 Linux. If I run just -mail, I can resize the window,
toggle visibility of the sidebar, etc., and the changes seem to get written back
out.
Comment 16•23 years ago
|
||
I tried this one with build 2002101015 on windows NT4.
No problem for me.
As I also see that a user seems to have no problem on Linux, could this be that
this bug got solved by another checkin?
This bug is old, might be the case.
sspitzer, can you double check?
Comment 17•23 years ago
|
||
I tried this one with build 2002101015 on windows NT4.
No problem for me.
As I also see that a user seems to have no problem on Linux, could this be that
this bug got solved by another checkin?
This bug is old, might be the case.
sspitzer, can you double check?
Comment 19•22 years ago
|
||
Still working on the trunk.
Closing as WFM.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•