Local home page causes assertion: "preserved wrapper table not empty at shutdown"

RESOLVED FIXED

Status

()

defect
RESOLVED FIXED
13 years ago
a month ago

People

(Reporter: jruderman, Unassigned)

Tracking

(Blocks 1 bug, {assertion, memory-leak, testcase})

Trunk
PowerPC
macOS
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
First, save the testcase (an emptyish html file) as xxx.html.  Then:

1. firefox-bin xxx.html
2. cmd+q

or

1. set xxx.html as your home page
2. firefox-bin
3. cmd+q

Result: 

###!!! ASSERTION: preserved wrapper table not empty at shutdown: 'sPreservedWrapperTable.ops == 0', file /Users/admin/trunk/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 3669
(Reporter)

Comment 1

13 years ago
Posted file testcase
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060527 SeaMonkey/1.5a
(Reporter)

Updated

13 years ago
Blocks: fx-noise

Comment 3

13 years ago
I have a similar problem with embedded Xulrunner trunk 2006-07-03 on Windows.
The operations to cause the assertion were:

1. Create a new document or load one from the disk.
2. Create an editing session (load triggered, in case of a document load)
3. Modify the document in the editor.
4. Save the document using nsIWebBrowserPersist.
5. Close the application, destroying all object references.

Omission of step 4 results in no assertions.

Value of sPreservedWrapperTable.ops is 0x01ad1904.

Call stack from Visual Studio 2005:
 	xul.dll!NS_DebugBreak_P(unsigned int aSeverity=, const char * aStr=, const char * aExpr=, const char * aFile=, int aLine=)  Line 352	C++
>	xul.dll!nsDOMClassInfo::ShutDown()  Line 3691 + 0x27 bytes	C++
 	xul.dll!nsDOMScriptObjectFactory::Observe(nsISupports * aSubject=0x01e77a3c, const char * aTopic=0x019ac150, const unsigned short * someData=0x00000000)  Line 286 + 0x5 bytes	C++
 	xul.dll!nsObserverList::NotifyObservers(nsISupports * aSubject=0x01e77a3c, const char * aTopic=0x019ac150, const unsigned short * someData=0x00000000)  Line 128 + 0x1a bytes	C++
 	xul.dll!nsObserverService::NotifyObservers(nsISupports * aSubject=0x01e77a3c, const char * aTopic=0x019ac150, const unsigned short * someData=0x00000000)  Line 177	C++
 	xul.dll!NS_ShutdownXPCOM_P(nsIServiceManager * servMgr=0x00000000)  Line 706	C++
 	xul.dll!XRE_TermEmbedding()  Line 161	C++
 	WTLMozDemo.exe!WTLMozDemoTermEmbedding()  Line 214 + 0x8 bytes	C++

Comment 4

13 years ago
I get this every time on restart after XPCOM auto-registration, Windows.
(Reporter)

Comment 5

12 years ago
This assertion was removed from nsDOMClassInfo.cpp with the landing of the XPCOM cycle collector (bug 333078).

I don't see any assertions or string leaks when I launch with a local file on the command line.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Depends on: cycle-collector
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.