Closed Bug 183309 Opened 22 years ago Closed 22 years ago

Mozilla crashes on startup. - Trunk [@ nsBindingManager::GetXBLDocumentInfo]

Categories

(Core :: XBL, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: d_king, Assigned: nallen)

Details

(Keywords: crash, qawanted, topcrash)

Crash Data

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 I downloaded todays nightly (Win32 Installer), and the install worked fine (well, ignoring the 130% downloaded indicator), but when Mozilla started up, it crashed before it got to the Profile Manager. I then downloaded the "08" version and had the same problem. Reproducible: Always Steps to Reproduce: 1. Start Mozilla 2. See Talkback startup for crash. Actual Results: Crash on startup. Expected Results: Mozilla to startup as it did with yesterdays (12/2) nightly build. See talkback sessions :- TB14674531E, TB14674492Q and TB14674451G. I first thought this might be Bug #183276, but I'm told I have a different stack.
Hmm, Build ID got Netscape 7.0, as that is what I used to report this...should've noticed that. Build ID is 2002120304-TRUNK, and I also tried 2002120308-TRUNK.
Here is the stack for TB14674531E, TB14674492Q and TB14674451G: nsBindingManager::GetXBLDocumentInfo [c:/builds/seamonkey/mozilla/content/xbl/src/nsBindingManager.cpp, line 1063] nsXBLService::LoadBindingDocumentInfo [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 1031] nsXBLService::GetBindingInternal [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 866] nsXBLService::GetBindingInternal [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 977] nsXBLService::BindingReady [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 836] nsXBLBindingRequest::DocumentLoaded [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 146] nsXBLStreamListener::Load [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 446] nsEventListenerManager::HandleEvent [c:/builds/seamonkey/mozilla/content/events/src/nsEventListenerManager.cpp, line 1861] nsDocument::HandleDOMEvent [c:/builds/seamonkey/mozilla/content/base/src/nsDocument.cpp, line 3483] nsXMLDocument::EndLoad [c:/builds/seamonkey/mozilla/content/xml/document/src/nsXMLDocument.cpp, line 559] nsXMLContentSink::DidBuildModel [c:/builds/seamonkey/mozilla/content/xml/document/src/nsXMLContentSink.cpp, line 412] nsExpatDriver::DidBuildModel [c:/builds/seamonkey/mozilla/htmlparser/src/nsExpatDriver.cpp, line 973] nsParser::DidBuildModel [c:/builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp, line 1259] nsParser::ResumeParse [c:/builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp, line 1805] nsParser::OnStopRequest [c:/builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp, line 2434] nsXBLStreamListener::OnStopRequest [c:/builds/seamonkey/mozilla/content/xbl/src/nsXBLService.cpp, line 328] nsJARChannel::OnStopRequest [c:/builds/seamonkey/mozilla/netwerk/protocol/jar/src/nsJARChannel.cpp, line 609] nsOnStopRequestEvent::HandleEvent [c:/builds/seamonkey/mozilla/netwerk/base/src/nsRequestObserverProxy.cpp, line 213] PL_HandleEvent [c:/builds/seamonkey/mozilla/xpcom/threads/plevent.c, line 645]
Well, line 1063 is in nsBindingManager::GetXBLDocumentInfo which was changed on 12/2/2002 for Bug #177545
Just tried a clean, clean install where I deleted everything out of the "Program Files/mozilla.org" directory after using the standard Windows Uninstall process. Still crashed.
Keywords: crash
Just to make sure it wasn't a problem with an upgrade I did today to ZoneAlarm, I reinstalled 20021202-TRUNK. It runs fine. Noticed one very interesting thing, the Win32 Installer had no problem downloading the 12/02 xpi files, while the 12/04 installer gives "Try Again" type errors all the time.
I ran into this and found that the reason for the crash is that the XUL cache is disabled. Reporter, see if you've got that pref set in your profile. mDocumentTable has no entries and the return result for the get doesn't appear to be checked. Somebody should find a home for this since Asa doesn't fix bugs. Alec -- was this exposed by your hashtable changes?
xbl
Assignee: asa → hyatt
Component: Browser-General → XBL
QA Contact: asa → jrgm
My XUL cache is disabled. Since this option is in the "Debug" section of the "Preferances", I've never worried about it. You seem to suggest that there is a problem that is causing this, so I'm leaving this bug open. Question: Should this be a Smoketest Blocker bug?
"debug" prefs are prefs that allow you to fuck up the browser completely. That's why they're called debug. Nothing that breaks because a debug pref is changed from the default is ever a blocker. That said, does changing that option make the crash go away?
Changing "Disable XUL Cache" to not be checked, fixes the startup problem. By the way, what are the defaults for the Debug Pref settings?
I answered my own question by creating a new profile and taking a look. The XUL Cache wasn't the only setting different from the default. I also had to change a couple of Javascript settings (strict warnings and dump).
This is a topcrasher on the MozillaTrunk. Seems to have started with a huge spike with 12/3 builds. I'll attach the latest Talkback data.
Keywords: qawanted, topcrash
Summary: Mozilla crashes on startup. → Mozilla crashes on startup. - Trunk [@ nsBindingManager::GetXBLDocumentInfo]
If I remember correctly, from a long time ago, having XUL cache disabled was the default. Which may explain why we have a lot of crashes. This problem with the XUL cache has, IMHO, either been exposed by the checkin for Bug #177545, or caused by it. I suspect the former. There are two solutions at the moment. The user can turn off the "Disable XUL Cache" in Edit-Preferences-Debug-Networking, or create a new profile. As using the XUL cache is now the default, then the first option is better (that is, easier).
"disable XUL cache" has not been the default for at least 2.5 years now (maybe more, but I have nothing to go on there).
Keywords: crash, qawanted, topcrash
Summary: Mozilla crashes on startup. - Trunk [@ nsBindingManager::GetXBLDocumentInfo]
summary and keywords somehow got removed! replacing both.
Keywords: crash, qawanted, topcrash
Summary: Mozilla crashes on startup. - Trunk [@ nsBindingManager::GetXBLDocumentInfo]
Well, this is the obvious fix. Spun a build with it and disabling the xul cache seems to work without crashing again.
Comment on attachment 108259 [details] [diff] [review] Check entry for null does *aResult get set to nsnull earlier in the function? if not, please do that. should you return a failure if entry is null?
*aResult is set to nsnull earlier in the function. Previous versions appear to return NS_OK under all circumstances. I looked at all of the callers in lxr and none are checking the return value anyways.
Comment on attachment 108259 [details] [diff] [review] Check entry for null oops! Yeah, this looks great. sr=alecf make sure to request 1.3a approval as soon as you get an r= - this is an important fix for 1.3alpha.
Attachment #108259 - Flags: superreview+
Running with the XUL Cache disabled has never really been the default, since "brutal sharing" became functional in December 1999. Really, that pref, the debug UI for that pref, and any ability to run with the XUL cache should be removed from the tree. (At minimum, the pref should be renamed to 'nglayout.debug.use_at_your_own_risk.disable_xul_cache' and the UI removed).
Comment on attachment 108259 [details] [diff] [review] Check entry for null Seems safe enough, but why is entry not found? If the only reason is that the XUL cache was disabled by the user, then does the topcrash keyword mean too many users are often running that way? /be
Attachment #108259 - Flags: review+
Blocks: 1.3a
No longer blocks: 1.3a
Attachment #108259 - Flags: approval1.3a?
I find that the XUL cache makes it difficult to compare builds of Mozilla using the same profile, they all try and use the latest XUL from the cache :-(
Comment on attachment 108259 [details] [diff] [review] Check entry for null a=asa for checkin to 1.3a
Attachment #108259 - Flags: approval1.3a? → approval1.3a+
Comment on attachment 108259 [details] [diff] [review] Check entry for null I don't have CVS commit access so I'll need someone to help run this in. r/sr/a are all +'ed
btw, a bug was reported on one of the ngs - with xul cache on, <?xul-overlay?> only works in chrome.
Fix is in. Thanks to timeless for getting this checked in.
.
Assignee: hyatt → nallen
resolving
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
v.fixed. this hasn't showed up in Talkback data for a while now.
Status: RESOLVED → VERIFIED
Crash Signature: [@ nsBindingManager::GetXBLDocumentInfo]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: