Closed Bug 348075 Opened 18 years ago Closed 17 years ago

Assertions 'mState != eInEpilog' in nsXULContentSink.cpp on startup

Categories

(Core :: XUL, defect)

1.8 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.8.1

People

(Reporter: pamg.bugs, Assigned: pamg.bugs)

References

Details

(Keywords: assertion, qawanted, regression)

Updated my tree and rebuilt; now getting hundreds of these assertions on startup:

###!!! ASSERTION: tag in XUL doc epilog: 'mState != eInEpilog', file /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp, line 721
Break: at file /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp, line 721

Apologies if this is assigned to the wrong component.
Component: Startup and Profile System → XP Toolkit/Widgets: XUL
Product: Firefox → Core
QA Contact: startup → xptoolkit.xul
Version: 2.0 Branch → 1.8 Branch
I've been seeing these too, especially when switching from a nightly to my debug build.
Blocks: fx-noise
Is this Mac-only?  I don't see this on Linux....

If so, what's the document URI in question?
Flags: blocking1.8.1?
Flags: blocking1.8.1? → blocking1.8.1+
It may well be Mac-only.  I've only noticed it on startup, so the URI it's loading is http://www.mozilla.org/projects/bonecho/index-2.0b1.html.  And -- of course -- I can't reproduce it right now.  (Note that this is my local build, not a nightly.)  I'll keep trying.
I meant the URI of the mDocument of the nsXULContentSink -- the XUL file we're parsing when we hit the assert.  If this is mac-only, the problem could be bogus #ifdefs somewhere, say.
I've now been able to reproduce the problem a couple of times, but I haven't tracked down what combination of conditions makes it happen.  I have, however, gotten an additional line of context for the assertion, in case it's any help:

WARNING: NS_ENSURE_TRUE(mimeHdrParser) failed, file /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp, line 1180
###!!! ASSERTION: tag in XUL doc epilog: 'mState != eInEpilog', file /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp, line 721
Break: at file /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp, line 721

...followed by hundreds more of that last assertion.  I'll keep working on reproducing the problem.
Target Milestone: --- → mozilla1.8.1
--> Pam to help isolate the cause and then we can reassign.
Assignee: nobody → pamg.bugs
(In reply to comment #5)
> WARNING: NS_ENSURE_TRUE(mimeHdrParser) failed, file
> /Users/pamg/Development/mozilla/branch_source/mozilla/content/xul/document/src/nsXULContentSink.cpp,
> line 1180

Might the unexpected failure here explain how things got into an inconsistent state?
That could do it.  That would make us bail out without pushing things on the tag stack and then if we pop things normally we'll run into something very much like this problem.  Note that nsExpatDriver::HandleStartElement ignores the return value from mSink->HandleStartElement() (which would be an error in this case); I think it should abort the parse instead.

All that said, I wonder why we're failing to get that service.  That's the thing to really debug...
Setting qawanted because although I'm still seeing this fairly often, I can't narrow down the conditions that cause it, nor get it to reproduce in a debugger.
Keywords: qawanted
Pulling off the 1.8.1 blocker list - please re-nom if we get any actionable information.
Flags: blocking1.8.1.1?
Flags: blocking1.8.1-
Flags: blocking1.8.1+
(In reply to comment #8)
> All that said, I wonder why we're failing to get that service.  That's the
> thing to really debug...

It could happen if the initialization of the module in which the service lives is currently on the stack when the getService call is made.
Not making progress, moving to the branch-wanted list instead of the blocker list.
Flags: wanted1.8.1.x+
Flags: blocking1.8.1.1?
Flags: blocking1.8.1.1-
WFM on Mac trunk.
(In reply to comment #6)
> --> Pam to help isolate the cause and then we can reassign.

I haven't been able to reproduce it recently either.  Going to mark it WFM for now, reopen if it pops up again.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Flags: wanted1.8.1.x+
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.