Closed Bug 736227 Opened 12 years ago Closed 12 years ago

"ASSERTION: unexpected state" with MathML, astral font name

Categories

(Core :: MathML, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14
Tracking Status
firefox14 - ---

People

(Reporter: jruderman, Assigned: jfkthame)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(4 files)

Attached file testcase
###!!! ASSERTION: unexpected state: 'aRenderingContext.FontMetrics()->Font(). Equals(aFontMetrics->Font())', file layout/mathml/nsMathMLFrame.cpp, line 338
Attached file stack trace
I haven't managed to reproduce on Linux x86_64.

The stack doesn't seem to quite line up with the assertion.  If the stack is off by one frame and one line, then that would locate the GetAxisHeight call here:
http://hg.mozilla.org/mozilla-central/annotate/f6d38b80417c/layout/mathml/nsMathMLmfencedFrame.cpp#l255

Given the rendContext->SetFont(fm) immediately prior, I would expect rendContext->FontMetrics() to return fm.

I don't see any obvious problem with nsFont::Equals.
I can reproduce on Linux x86_64, even with an empty profile.
Attached file stack trace from linux
Is this more helpful?
That trace confirms the GetAxisHeight call in comment 2, thanks.
I can reproduce now.  Seems that this is regression since 7e158ac25de3.
Will narrow down further.
Keywords: regression
OS: Mac OS X → All
Other than this being a regression, what's the justification for tracking this bug? Will this be a common error for MathML users? In what state is the user left when they run into this?
The bug doesn't affect this MathML testcase adversely (from a user perspective).

What the assertion is highlighting is that, for string |a|, a.Equals(a) is false (perhaps only for a certain comparator), which is likely to have wider ranging affects.  Perhaps the problem is only for non-BMP characters, but a problem with surrogates may be a problem with array index counting.
Argh - silly typo!
Assignee: nobody → jfkthame
Attachment #612457 - Flags: review?(smontagu)
Attachment #612457 - Flags: review?(smontagu) → review+
It's kinda scary that it took an obscure feature (fonts in MathML) to uncover a unicharutil bug. How can that be remedied?
http://hg.mozilla.org/mozilla-central/rev/d19b20df7e70
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: