Closed Bug 1146107 Opened 11 years ago Closed 11 years ago

Assertion failure in nsRubyBaseContainerFrame::Reflow with huge margin

Categories

(Core :: Layout, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: jruderman, Assigned: xidorn)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Assertion failure: (0 != ((aStatus) & 0x0100)) || isize == lineSpanSize || mFrames.IsEmpty(), at layout/generic/nsRubyBaseContainerFrame.cpp:520 > MOZ_ASSERT(NS_INLINE_IS_BREAK(aStatus) || > isize == lineSpanSize || mFrames.IsEmpty());
Attached file testcase
Attached file stack
Attached patch patchSplinter Review
I don't see any serious problem could happen when this assertion is broken, hence just replace the assertion with a non-crash one.
Assignee: nobody → quanxunzhen
Attachment #8585281 - Flags: review?(dholbert)
As in bug 1146114, we may really want to relax this to NS_WARN_IF_FALSE(), and add a code-comment mentioning the bug number on adding a flag to documents with huge CSS sizes. (so we can make this assertion contingent on a document having reasonable sizes.)
Comment on attachment 8585281 [details] [diff] [review] patch >- MOZ_ASSERT(NS_INLINE_IS_BREAK(aStatus) || >- isize == lineSpanSize || mFrames.IsEmpty()); >+ NS_ASSERTION(NS_INLINE_IS_BREAK(aStatus) || >+ isize == lineSpanSize || mFrames.IsEmpty(), "bad isize"); Similar to bug 1146114 comment 7: let's change this to NS_WARN_IF_FALSE instead, and add an XXX comment mentioning bug 765861, so that we remember to increase the severity once that bug's been addressed. (And update the commit message mere accordingly.) r=me with that
Attachment #8585281 - Flags: review?(dholbert) → review+
Also, we should take the testcase (or something that trips this assertion) as a crashtest.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: