Closed
Bug 393693
Opened 19 years ago
Closed 14 years ago
nsBlockFrame::ReflowInlineFrames hangs when pre has empty lines
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tuukka.tolvanen, Unassigned)
References
()
Details
(Keywords: hang, testcase)
Attachments
(1 file)
|
231 bytes,
text/html
|
Details |
fx trunk 2007082312 linux. Adjusting text zoom hangs on http://moinmo.in/MoinMoinRelease1.5/CHANGES -- conveniently enough it depends on window size and the particular zoom level and such things. A debug build aborts with Block(pre)(4)@0xe85c6f4: yikes! spinning on a line over 1000 times!
| Reporter | ||
Updated•19 years ago
|
Summary: text zoom hangs [@ nsBlockFrame::ReflowInlineFrames] → text zoom / window resize hangs [@ nsBlockFrame::ReflowInlineFrames]
Comment 1•19 years ago
|
||
I am seeing a similar 'inifinite reflow' issue with pre, in my case when using editor from inside my xulrunner app and editing text inside the pre.
"###!!! ASSERTION: Invalid offset: 'aOffset <= mSkipChars->mCharCount', file /data/mozilla_trunk/mozilla/gfx/thebes/src/gfxSkipChars.cpp, line 92
###!!! ASSERTION: redo line on totally empty line: 'aState.IsImpactedByFloat()', file /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp, line 3429
###!!! ASSERTION: unconstrained height on totally empty line: 'NS_UNCONSTRAINEDSIZE != aState.mAvailSpaceRect.height', file /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp, line 3431
Block(pre)(0)@0x89904c8: yikes! spinning on a line over 1000 times!"
Backtrace:
#9 0xb7bf1218 in PR_Abort () at /data/mozilla_trunk/mozilla/nsprpub/pr/src/io/prlog.c:513
#10 0xb7ce5448 in Abort (aMsg=0xbfc36720 "###!!! ABORT: file /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp, line 3212")
at /data/mozilla_trunk/mozilla/xpcom/base/nsDebugImpl.cpp:371
#11 0xb7ce5694 in NS_DebugBreak_P (aSeverity=3, aStr=0x0, aExpr=0x0, aFile=0xb539ea28 "/data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp",
aLine=3212) at /data/mozilla_trunk/mozilla/xpcom/base/nsDebugImpl.cpp:326
#12 0xb4c0ad52 in nsBlockFrame::ReflowInlineFrames (this=0x89904c8, aState=@0xbfc37148, aLine={mCurrent = 0x8e09250, mListLink = 0x8990508},
aKeepReflowGoing=0xbfc36e8c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3212
#13 0xb4c0c666 in nsBlockFrame::ReflowLine (this=0x89904c8, aState=@0xbfc37148, aLine={mCurrent = 0x8e09250, mListLink = 0x8990508},
aKeepReflowGoing=0xbfc36e8c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2219
#14 0xb4c0dbe5 in nsBlockFrame::ReflowDirtyLines (this=0x89904c8, aState=@0xbfc37148) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#15 0xb4c0f4c7 in nsBlockFrame::Reflow (this=0x89904c8, aPresContext=0xaf602098, aMetrics=@0xbfc37698, aReflowState=@0xbfc375c4, aStatus=@0xbfc37718)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#16 0xb4c14197 in nsBlockReflowContext::ReflowBlock (this=0xbfc37674, aSpace=@0xbfc37748, aApplyTopMargin=0, aPrevMargin=@0xbfc37de8, aClearance=0,
aIsAdjacentWithTop=1, aComputedOffsets=@0xbfc37738, aLine=0x89907b8, aFrameRS=@0xbfc375c4, aFrameReflowStatus=@0xbfc37718)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockReflowContext.cpp:338
#17 0xb4c0b53f in nsBlockFrame::ReflowBlockFrame (this=0x8990324, aState=@0xbfc37d68, aLine={mCurrent = 0x89907b8, mListLink = 0x8990364},
aKeepReflowGoing=0xbfc37aac) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2923
#18 0xb4c0c382 in nsBlockFrame::ReflowLine (this=0x8990324, aState=@0xbfc37d68, aLine={mCurrent = 0x89907b8, mListLink = 0x8990364},
aKeepReflowGoing=0xbfc37aac) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2166
#19 0xb4c0dbe5 in nsBlockFrame::ReflowDirtyLines (this=0x8990324, aState=@0xbfc37d68) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#20 0xb4c0f4c7 in nsBlockFrame::Reflow (this=0x8990324, aPresContext=0xaf602098, aMetrics=@0xbfc382b8, aReflowState=@0xbfc381e4, aStatus=@0xbfc38338)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#21 0xb4c14197 in nsBlockReflowContext::ReflowBlock (this=0xbfc38294, aSpace=@0xbfc38368, aApplyTopMargin=1, aPrevMargin=@0xbfc38a08, aClearance=0,
aIsAdjacentWithTop=1, aComputedOffsets=@0xbfc38358, aLine=0x8990390, aFrameRS=@0xbfc381e4, aFrameReflowStatus=@0xbfc38338)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockReflowContext.cpp:338
#22 0xb4c0b53f in nsBlockFrame::ReflowBlockFrame (this=0x89901a0, aState=@0xbfc38988, aLine={mCurrent = 0x8990390, mListLink = 0x89901e0},
aKeepReflowGoing=0xbfc386cc) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2923
#23 0xb4c0c382 in nsBlockFrame::ReflowLine (this=0x89901a0, aState=@0xbfc38988, aLine={mCurrent = 0x8990390, mListLink = 0x89901e0},
aKeepReflowGoing=0xbfc386cc) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2166
#24 0xb4c0dbe5 in nsBlockFrame::ReflowDirtyLines (this=0x89901a0, aState=@0xbfc38988) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#25 0xb4c0f4c7 in nsBlockFrame::Reflow (this=0x89901a0, aPresContext=0xaf602098, aMetrics=@0xbfc38d60, aReflowState=@0xbfc38cb0, aStatus=@0xbfc38f40)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#26 0xb4c2031b in nsContainerFrame::ReflowChild (this=0x897ffd0, aKidFrame=0x89901a0, aPresContext=0xaf602098, aDesiredSize=@0xbfc38d60,
aReflowState=@0xbfc38cb0, aX=0, aY=0, aFlags=0, aStatus=@0xbfc38f40, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#27 0xb4c525be in CanvasFrame::Reflow (this=0x897ffd0, aPresContext=0xaf602098, aDesiredSize=@0xbfc38ff0, aReflowState=@0xbfc38e88, aStatus=@0xbfc38f40)
at /data/mozilla_trunk/mozilla/layout/generic/nsHTMLFrame.cpp:577
#28 0xb4c2031b in nsContainerFrame::ReflowChild (this=0x8980114, aKidFrame=0x897ffd0, aPresContext=0xaf602098, aDesiredSize=@0xbfc38ff0,
aReflowState=@0xbfc38e88, aX=0, aY=0, aFlags=3, aStatus=@0xbfc38f40, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#29 0xb4c4ca21 in nsHTMLScrollFrame::ReflowScrolledFrame (this=0x8980114, aState=@0xbfc390b0, aAssumeHScroll=0, aAssumeVScroll=1, aMetrics=0xbfc38ff0,
aFirstPass=1) at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:453
---Type <return> to continue, or q <return> to quit---
#30 0xb4c4cb39 in nsHTMLScrollFrame::ReflowContents (this=0x8980114, aState=0xbfc390b0, aDesiredSize=@0xbfc39370)
at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:535
#31 0xb4c4d25a in nsHTMLScrollFrame::Reflow (this=0x8980114, aPresContext=0xaf602098, aDesiredSize=@0xbfc39370, aReflowState=@0xbfc39210,
aStatus=@0xbfc39544) at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:746
#32 0xb4c2031b in nsContainerFrame::ReflowChild (this=0x897ff3c, aKidFrame=0x8980114, aPresContext=0xaf602098, aDesiredSize=@0xbfc39370,
aReflowState=@0xbfc39210, aX=0, aY=0, aFlags=0, aStatus=@0xbfc39544, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#33 0xb4cbb061 in ViewportFrame::Reflow (this=0x897ff3c, aPresContext=0xaf602098, aDesiredSize=@0xbfc39508, aReflowState=@0xbfc39458, aStatus=@0xbfc39544)
at /data/mozilla_trunk/mozilla/layout/generic/nsViewportFrame.cpp:286
#34 0xb4bdc83d in PresShell::DoReflow (this=0x897e418, target=0x897ff3c) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:6066
#35 0xb4bea2c0 in PresShell::ProcessReflowCommands (this=0x897e418, aInterruptible=0) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:6179
#36 0xb4bea543 in PresShell::DoFlushPendingNotifications (this=0x897e418, aType=Flush_Layout, aInterruptibleReflow=0)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:4415
#37 0xb4bea732 in PresShell::FlushPendingNotifications (this=0x897e418, aType=Flush_Layout) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:4377
#38 0xb5154037 in nsEditor::EndUpdateViewBatch (this=0x89bf570) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditor.cpp:4365
#39 0xb530f2d8 in nsHTMLEditor::EndUpdateViewBatch (this=0x89bf570) at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:5820
#40 0xb515ec39 in nsEditor::EndPlaceHolderTransaction (this=0x89bf570) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditor.cpp:984
#41 0xb5141237 in ~nsAutoPlaceHolderBatch (this=0xbfc397cc) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditorUtils.h:66
#42 0xb531edd5 in nsHTMLEditor::TypedText (this=0x89bf570, aString=@0xbfc39808, aAction=0)
at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:1364
#43 0xb53225b4 in nsHTMLEditor::HandleKeyPress (this=0x89bf570, aKeyEvent=0x8958d20)
at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:1334
#44 0xb5148dfa in nsTextEditorKeyListener::KeyPress (this=0x8606fc8, aKeyEvent=0x8958d30)
at /data/mozilla_trunk/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp:253
#45 0xb4edc425 in DispatchToInterface (aEvent=0x8958d30, aListener=0x8606fc8, aMethod=<error reading variable>, aIID=@0xb53af2d0)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventListenerManager.cpp:182
#46 0xb4edecd1 in nsEventListenerManager::HandleEvent (this=0x8981010, aPresContext=0xaf602098, aEvent=0xbfc39f30, aDOMEvent=0xbfc39b74,
aCurrentTarget=0xaf60d8d0, aFlags=514, aEventStatus=0xbfc39b78) at /data/mozilla_trunk/mozilla/content/events/src/nsEventListenerManager.cpp:1207
#47 0xb4f09ade in nsEventTargetChainItem::HandleEvent (this=0x8e0a1b8, aVisitor=@0xbfc39b6c, aFlags=514)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:201
#48 0xb4f09ea2 in nsEventTargetChainItem::HandleEventTargetChain (this=0x8e0a2f0, aVisitor=@0xbfc39b6c, aFlags=518, aCallback=0xbfc39c10)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:281
#49 0xb4f09f85 in nsEventTargetChainItem::HandleEventTargetChain (this=0x8e0a2f0, aVisitor=@0xbfc39b6c, aFlags=6, aCallback=0xbfc39c10)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:310
#50 0xb4f0a668 in nsEventDispatcher::Dispatch (aTarget=0xaf60e2f8, aPresContext=0xaf602098, aEvent=0xbfc39f30, aDOMEvent=0x0, aEventStatus=0xbfc39d48,
aCallback=0xbfc39c10) at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:473
#51 0xb4bde0a5 in PresShell::HandleEventInternal (this=0x897e418, aEvent=0xbfc39f30, aView=0xaf602b08, aStatus=0xbfc39d48)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:5718
#52 0xb4bdf676 in PresShell::HandleEvent (this=0x897e418, aView=0xaf602b08, aEvent=0xbfc39f30, aEventStatus=0xbfc39d48)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:5519
#53 0xb509b4b0 in nsViewManager::HandleEvent (this=0xaf602aa8, aView=0xaf602b08, aPoint=@0xbfc39e18, aEvent=0xbfc39f30, aCaptured=0)
at /data/mozilla_trunk/mozilla/view/src/nsViewManager.cpp:1292
#54 0xb509fc0a in nsViewManager::DispatchEvent (this=0xaf602aa8, aEvent=0xbfc39f30, aStatus=0xbfc39e9c)
at /data/mozilla_trunk/mozilla/view/src/nsViewManager.cpp:1248
#55 0xb5095625 in HandleEvent (aEvent=0xbfc39f30) at /data/mozilla_trunk/mozilla/view/src/nsView.cpp:168
#56 0xb57a036f in nsCommonWidget::DispatchEvent (this=0xaf602b78, aEvent=0xbfc39f30, aStatus=@0xbfc39f8c)
at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsCommonWidget.cpp:225
#57 0xb5791ee1 in nsWindow::OnKeyPressEvent (this=0xaf602b78, aWidget=0x85410c8, aEvent=0x8dc7d60)
at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsWindow.cpp:2283
#58 0xb5792002 in key_press_event_cb (widget=0x85410c8, event=0x8dc7d60) at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsWindow.cpp:4541
#59 0xb7a2a8e0 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
(gdb) frame 11
#11 0xb7ce5694 in NS_DebugBreak_P (aSeverity=3, aStr=0x0, aExpr=0x0, aFile=0xb539ea28 "/data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp",
aLine=3212) at /data/mozilla_trunk/mozilla/xpcom/base/nsDebugImpl.cpp:326
326 Abort(buf.buffer);
(gdb) return
Make NS_DebugBreak_P return now? (y or n) y
#0 nsBlockFrame::ReflowInlineFrames (this=0x89904c8, aState=@0xbfc37148, aLine=
{mCurrent = 0x8e09250, mListLink = 0x8990508}, aKeepReflowGoing=0xbfc36e8c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3217
3217 allowPullUp = PR_FALSE;
(gdb) list
3212 NS_ABORT();
3213 }
3214 #endif
3215
3216 // Don't allow pullup on a subsequent LINE_REFLOW_REDO_NO_PULL pass
3217 allowPullUp = PR_FALSE;
3218 } while (NS_SUCCEEDED(rv) && LINE_REFLOW_REDO_NO_PULL == lineReflowStatus);
3219
3220 if (LINE_REFLOW_REDO_NEXT_BAND == lineReflowStatus) {
3221 movedPastFloat = PR_TRUE;
(gdb) print lineReflowStatus
$1 = LINE_REFLOW_REDO_NEXT_BAND
(gdb) step
Single stepping until exit from function __kernel_vsyscall,
which has no line number information.
[Switching to Thread -1222428992 (LWP 893)]
~nsLineLayout (this=0xbfc36b4c) at /data/mozilla_trunk/mozilla/layout/generic/nsLineLayout.cpp:145
145 MOZ_COUNT_DTOR(nsLineLayout);
(gdb) frame 0
#0 ~nsLineLayout (this=0xbfc36b4c) at /data/mozilla_trunk/mozilla/layout/generic/nsLineLayout.cpp:145
145 MOZ_COUNT_DTOR(nsLineLayout);
(gdb) fini
Run till exit from #0 ~nsLineLayout (this=0xbfc36b4c) at /data/mozilla_trunk/mozilla/layout/generic/nsLineLayout.cpp:145
nsBlockFrame::ReflowInlineFrames (this=0x89904c8, aState=@0xbfc37148, aLine={mCurrent = 0x8e09250, mListLink = 0x8990508}, aKeepReflowGoing=0xbfc36e8c)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3166
3166 do {
(gdb) step
3220 if (LINE_REFLOW_REDO_NEXT_BAND == lineReflowStatus) {
(gdb) step
3221 movedPastFloat = PR_TRUE;
(gdb) step
3162 do {
(gdb) step
3163 PRBool allowPullUp = PR_TRUE;
(gdb) step
3164 nsIContent* forceBreakInContent = nsnull;
(gdb) step
3165 PRInt32 forceBreakOffset = -1;
(gdb) step
3168 aState.mReflowState.mSpaceManager->PushState(&spaceManagerState);
(gdb) print spaceManagerState
$2 = {mLastFrame = 0x0, mX = 480, mY = 480, mLowestTop = -2147483648, mMaximalLeftYMost = -1073741824, mMaximalRightYMost = -1073741824,
mHaveCachedLeftYMost = 1 '\001', mHaveCachedRightYMost = 1 '\001'}
(gdb) next
3179 &aState.mReflowState, &aLine);
(gdb) next
3180 lineLayout.Init(&aState, aState.mMinLineHeight, aState.mLineNumber);
(gdb) next
3181 if (forceBreakInContent) {
(gdb) print forceBreakInContent
$3 = (class nsIContent *) 0x0
(gdb) next
3186 allowPullUp);
(gdb) step
nsBlockFrame::DoReflowInlineFrames (this=0x89904c8, aState=@0xbfc37148, aLineLayout=@0xbfc36b4c, aLine={mCurrent = 0x8e09250, mListLink = 0x8990508},
aKeepReflowGoing=0xbfc36e8c, aLineReflowStatus=0xbfc36c18, aAllowPullUp=1) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3269
3269 aLine->FreeFloats(aState.mFloatCacheFreeList);
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•19 years ago
|
||
Tracing the first "###!!! ASSERTION: Invalid offset: 'aOffset <= mSkipChars->mCharCount', file /data/mozilla_trunk/mozilla/gfx/thebes/src/gfxSkipChars.cpp, line 92"
(gdb) bt
#0 NS_DebugBreak_P (aSeverity=1, aStr=0xb5753ade "Invalid offset", aExpr=0xb5753abc "aOffset <= mSkipChars->mCharCount",
aFile=0xb57539c0 "/data/mozilla_trunk/mozilla/gfx/thebes/src/gfxSkipChars.cpp", aLine=92) at /data/mozilla_trunk/mozilla/xpcom/base/nsDebugImpl.cpp:263
#1 0xb56c8125 in gfxSkipCharsIterator::SetOffsets (this=0xbfe4a134, aOffset=5765, aInOriginalString=1)
at /data/mozilla_trunk/mozilla/gfx/thebes/src/gfxSkipChars.cpp:91
#2 0xb4cc5359 in gfxSkipCharsIterator::SetOriginalOffset (this=0xbfe4a134, aOriginalStringOffset=5765) at ../../dist/include/thebes/gfxSkipChars.h:265
#3 0xb4cbf72f in nsTextFrame::Reflow (this=0x8e63dd8, aPresContext=0x8991ae8, aMetrics=@0xbfe4a3b8, aReflowState=@0xbfe4a308, aStatus=@0xbfe4a4fc)
at /data/mozilla_trunk/mozilla/layout/generic/nsTextFrameThebes.cpp:5441
#4 0xb4c7fa2f in nsLineLayout::ReflowFrame (this=0xbfe4a61c, aFrame=0x8e63dd8, aReflowStatus=@0xbfe4a4fc, aMetrics=0x0, aPushedFrame=@0xbfe4a4f8)
at /data/mozilla_trunk/mozilla/layout/generic/nsLineLayout.cpp:891
#5 0xb4c19f96 in nsBlockFrame::ReflowInlineFrame (this=0x86b71f0, aState=@0xbfe4ac18, aLineLayout=@0xbfe4a61c, aLine=
{mCurrent = 0x8e63e1c, mListLink = 0x86b7230}, aFrame=0x8e63dd8, aLineReflowStatus=0xbfe4a588)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3522
#6 0xb4c1b48f in nsBlockFrame::DoReflowInlineFrames (this=0x86b71f0, aState=@0xbfe4ac18, aLineLayout=@0xbfe4a61c, aLine=
{mCurrent = 0x8e63e1c, mListLink = 0x86b7230}, aKeepReflowGoing=0xbfe4a95c, aLineReflowStatus=0xbfe4a6e8, aAllowPullUp=1)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3342
#7 0xb4c1bc26 in nsBlockFrame::ReflowInlineFrames (this=0x86b71f0, aState=@0xbfe4ac18, aLine={mCurrent = 0x8e63e1c, mListLink = 0x86b7230},
aKeepReflowGoing=0xbfe4a95c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:3186
#8 0xb4c1d666 in nsBlockFrame::ReflowLine (this=0x86b71f0, aState=@0xbfe4ac18, aLine={mCurrent = 0x8e63e1c, mListLink = 0x86b7230},
aKeepReflowGoing=0xbfe4a95c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2219
#9 0xb4c1ebe5 in nsBlockFrame::ReflowDirtyLines (this=0x86b71f0, aState=@0xbfe4ac18) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#10 0xb4c204c7 in nsBlockFrame::Reflow (this=0x86b71f0, aPresContext=0x8991ae8, aMetrics=@0xbfe4b168, aReflowState=@0xbfe4b094, aStatus=@0xbfe4b1e8)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#11 0xb4c25197 in nsBlockReflowContext::ReflowBlock (this=0xbfe4b144, aSpace=@0xbfe4b218, aApplyTopMargin=0, aPrevMargin=@0xbfe4b8b8, aClearance=0,
aIsAdjacentWithTop=1, aComputedOffsets=@0xbfe4b208, aLine=0x86b74e0, aFrameRS=@0xbfe4b094, aFrameReflowStatus=@0xbfe4b1e8)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockReflowContext.cpp:338
#12 0xb4c1c53f in nsBlockFrame::ReflowBlockFrame (this=0x86b704c, aState=@0xbfe4b838, aLine={mCurrent = 0x86b74e0, mListLink = 0x86b708c},
aKeepReflowGoing=0xbfe4b57c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2923
#13 0xb4c1d382 in nsBlockFrame::ReflowLine (this=0x86b704c, aState=@0xbfe4b838, aLine={mCurrent = 0x86b74e0, mListLink = 0x86b708c},
aKeepReflowGoing=0xbfe4b57c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2166
#14 0xb4c1ebe5 in nsBlockFrame::ReflowDirtyLines (this=0x86b704c, aState=@0xbfe4b838) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#15 0xb4c204c7 in nsBlockFrame::Reflow (this=0x86b704c, aPresContext=0x8991ae8, aMetrics=@0xbfe4bd88, aReflowState=@0xbfe4bcb4, aStatus=@0xbfe4be08)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#16 0xb4c25197 in nsBlockReflowContext::ReflowBlock (this=0xbfe4bd64, aSpace=@0xbfe4be38, aApplyTopMargin=1, aPrevMargin=@0xbfe4c4d8, aClearance=0,
aIsAdjacentWithTop=1, aComputedOffsets=@0xbfe4be28, aLine=0x86b70b8, aFrameRS=@0xbfe4bcb4, aFrameReflowStatus=@0xbfe4be08)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockReflowContext.cpp:338
#17 0xb4c1c53f in nsBlockFrame::ReflowBlockFrame (this=0x86b6ec8, aState=@0xbfe4c458, aLine={mCurrent = 0x86b70b8, mListLink = 0x86b6f08},
aKeepReflowGoing=0xbfe4c19c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2923
#18 0xb4c1d382 in nsBlockFrame::ReflowLine (this=0x86b6ec8, aState=@0xbfe4c458, aLine={mCurrent = 0x86b70b8, mListLink = 0x86b6f08},
aKeepReflowGoing=0xbfe4c19c) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:2166
#19 0xb4c1ebe5 in nsBlockFrame::ReflowDirtyLines (this=0x86b6ec8, aState=@0xbfe4c458) at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:1826
#20 0xb4c204c7 in nsBlockFrame::Reflow (this=0x86b6ec8, aPresContext=0x8991ae8, aMetrics=@0xbfe4c830, aReflowState=@0xbfe4c780, aStatus=@0xbfe4ca10)
at /data/mozilla_trunk/mozilla/layout/generic/nsBlockFrame.cpp:921
#21 0xb4c3131b in nsContainerFrame::ReflowChild (this=0x86b38e8, aKidFrame=0x86b6ec8, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4c830,
aReflowState=@0xbfe4c780, aX=0, aY=0, aFlags=0, aStatus=@0xbfe4ca10, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#22 0xb4c635be in CanvasFrame::Reflow (this=0x86b38e8, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4cac0, aReflowState=@0xbfe4c958, aStatus=@0xbfe4ca10)
at /data/mozilla_trunk/mozilla/layout/generic/nsHTMLFrame.cpp:577
#23 0xb4c3131b in nsContainerFrame::ReflowChild (this=0x86b3a2c, aKidFrame=0x86b38e8, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4cac0,
aReflowState=@0xbfe4c958, aX=0, aY=0, aFlags=3, aStatus=@0xbfe4ca10, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#24 0xb4c5da21 in nsHTMLScrollFrame::ReflowScrolledFrame (this=0x86b3a2c, aState=@0xbfe4cb80, aAssumeHScroll=0, aAssumeVScroll=1, aMetrics=0xbfe4cac0,
---Type <return> to continue, or q <return> to quit---
aFirstPass=1) at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:453
#25 0xb4c5db39 in nsHTMLScrollFrame::ReflowContents (this=0x86b3a2c, aState=0xbfe4cb80, aDesiredSize=@0xbfe4ce40)
at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:535
#26 0xb4c5e25a in nsHTMLScrollFrame::Reflow (this=0x86b3a2c, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4ce40, aReflowState=@0xbfe4cce0,
aStatus=@0xbfe4d014) at /data/mozilla_trunk/mozilla/layout/generic/nsGfxScrollFrame.cpp:746
#27 0xb4c3131b in nsContainerFrame::ReflowChild (this=0x86b3854, aKidFrame=0x86b3a2c, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4ce40,
aReflowState=@0xbfe4cce0, aX=0, aY=0, aFlags=0, aStatus=@0xbfe4d014, aTracker=0x0)
at /data/mozilla_trunk/mozilla/layout/generic/nsContainerFrame.cpp:715
#28 0xb4ccc061 in ViewportFrame::Reflow (this=0x86b3854, aPresContext=0x8991ae8, aDesiredSize=@0xbfe4cfd8, aReflowState=@0xbfe4cf28, aStatus=@0xbfe4d014)
at /data/mozilla_trunk/mozilla/layout/generic/nsViewportFrame.cpp:286
#29 0xb4bed83d in PresShell::DoReflow (this=0x88b3480, target=0x86b3854) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:6066
#30 0xb4bfb2c0 in PresShell::ProcessReflowCommands (this=0x88b3480, aInterruptible=0) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:6179
#31 0xb4bfb543 in PresShell::DoFlushPendingNotifications (this=0x88b3480, aType=Flush_Layout, aInterruptibleReflow=0)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:4415
#32 0xb4bfb732 in PresShell::FlushPendingNotifications (this=0x88b3480, aType=Flush_Layout) at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:4377
#33 0xb5165037 in nsEditor::EndUpdateViewBatch (this=0x897f0e8) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditor.cpp:4365
#34 0xb53202d8 in nsHTMLEditor::EndUpdateViewBatch (this=0x897f0e8) at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:5820
#35 0xb516fc39 in nsEditor::EndPlaceHolderTransaction (this=0x897f0e8) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditor.cpp:984
#36 0xb5152237 in ~nsAutoPlaceHolderBatch (this=0xbfe4d29c) at /data/mozilla_trunk/mozilla/editor/libeditor/base/nsEditorUtils.h:66
#37 0xb532fdd5 in nsHTMLEditor::TypedText (this=0x897f0e8, aString=@0xbfe4d2d8, aAction=0)
at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:1364
#38 0xb53335b4 in nsHTMLEditor::HandleKeyPress (this=0x897f0e8, aKeyEvent=0x89b4568)
at /data/mozilla_trunk/mozilla/editor/libeditor/html/nsHTMLEditor.cpp:1334
#39 0xb5159dfa in nsTextEditorKeyListener::KeyPress (this=0x869b1b0, aKeyEvent=0x89b4578)
at /data/mozilla_trunk/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp:253
#40 0xb4eed425 in DispatchToInterface (aEvent=0x89b4578, aListener=0x869b1b0, aMethod=<error reading variable>, aIID=@0xb53c02d0)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventListenerManager.cpp:182
#41 0xb4eefcd1 in nsEventListenerManager::HandleEvent (this=0x882bdd8, aPresContext=0x8991ae8, aEvent=0xbfe4da00, aDOMEvent=0xbfe4d644,
aCurrentTarget=0x898f378, aFlags=514, aEventStatus=0xbfe4d648) at /data/mozilla_trunk/mozilla/content/events/src/nsEventListenerManager.cpp:1207
#42 0xb4f1aade in nsEventTargetChainItem::HandleEvent (this=0x8e64170, aVisitor=@0xbfe4d63c, aFlags=514)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:201
#43 0xb4f1aea2 in nsEventTargetChainItem::HandleEventTargetChain (this=0x8e642a8, aVisitor=@0xbfe4d63c, aFlags=518, aCallback=0xbfe4d6e0)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:281
#44 0xb4f1af85 in nsEventTargetChainItem::HandleEventTargetChain (this=0x8e642a8, aVisitor=@0xbfe4d63c, aFlags=6, aCallback=0xbfe4d6e0)
at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:310
#45 0xb4f1b668 in nsEventDispatcher::Dispatch (aTarget=0x897c540, aPresContext=0x8991ae8, aEvent=0xbfe4da00, aDOMEvent=0x0, aEventStatus=0xbfe4d818,
aCallback=0xbfe4d6e0) at /data/mozilla_trunk/mozilla/content/events/src/nsEventDispatcher.cpp:473
#46 0xb4bef0a5 in PresShell::HandleEventInternal (this=0x88b3480, aEvent=0xbfe4da00, aView=0x8971f30, aStatus=0xbfe4d818)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:5718
#47 0xb4bf0676 in PresShell::HandleEvent (this=0x88b3480, aView=0x8971f30, aEvent=0xbfe4da00, aEventStatus=0xbfe4d818)
at /data/mozilla_trunk/mozilla/layout/base/nsPresShell.cpp:5519
#48 0xb50ac4b0 in nsViewManager::HandleEvent (this=0x86bc6a8, aView=0x8971f30, aPoint=@0xbfe4d8e8, aEvent=0xbfe4da00, aCaptured=0)
at /data/mozilla_trunk/mozilla/view/src/nsViewManager.cpp:1292
#49 0xb50b0c0a in nsViewManager::DispatchEvent (this=0x86bc6a8, aEvent=0xbfe4da00, aStatus=0xbfe4d96c)
at /data/mozilla_trunk/mozilla/view/src/nsViewManager.cpp:1248
#50 0xb50a6625 in HandleEvent (aEvent=0xbfe4da00) at /data/mozilla_trunk/mozilla/view/src/nsView.cpp:168
#51 0xb57b136f in nsCommonWidget::DispatchEvent (this=0x897b0e0, aEvent=0xbfe4da00, aStatus=@0xbfe4da5c)
at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsCommonWidget.cpp:225
#52 0xb57a2ee1 in nsWindow::OnKeyPressEvent (this=0x897b0e0, aWidget=0x85458c8, aEvent=0x80a1d60)
at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsWindow.cpp:2283
#53 0xb57a3002 in key_press_event_cb (widget=0x85458c8, event=0x80a1d60) at /data/mozilla_trunk/mozilla/widget/src/gtk2/nsWindow.cpp:4541
---Type <return> to continue, or q <return> to quit---
#54 0xb7a3b8e0 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
#55 0xb767179f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#56 0xb76802ea in ?? () from /usr/lib/libgobject-2.0.so.0
#57 0x0870e700 in ?? ()
#58 0xbfe4dc30 in ?? ()
#59 0x00000002 in ?? ()
#60 0xbfe4dc1c in ?? ()
#61 0xb54fc198 in ?? () from /data/mozilla_trunk/obj-i686-pc-linux-gnu/xulrunner/dist/bin/components/libgklayout.so
#62 0xbfe4db88 in ?? ()
#63 0xb5112943 in nsNodeSH::SetProperty (this=0x0, wrapper=0x0, cx=0x0, obj=0x80da540, id=134880608, vp=0x0, _retval=0x8000000)
at /data/mozilla_trunk/mozilla/dom/src/base/nsDOMClassInfo.cpp:6520
#64 0x085458c8 in ?? ()
#65 0x00000000 in ?? ()
(gdb) frame 1
#1 0xb56c8125 in gfxSkipCharsIterator::SetOffsets (this=0xbfe4a134, aOffset=5765, aInOriginalString=1)
at /data/mozilla_trunk/mozilla/gfx/thebes/src/gfxSkipChars.cpp:91
91 NS_ASSERTION(aOffset <= mSkipChars->mCharCount,
(gdb) print aOffset
$20 = 5765
(gdb) print mSkipChars->mCharCount
$21 = 5764
(gdb) up
#2 0xb4cc5359 in gfxSkipCharsIterator::SetOriginalOffset (this=0xbfe4a134, aOriginalStringOffset=5765) at ../../dist/include/thebes/gfxSkipChars.h:265
265 SetOffsets(aOriginalStringOffset + mOriginalStringToSkipCharsOffset, PR_TRUE);
(gdb) print aOriginalStringOffset
$22 = 5765
(gdb) print mOriginalStringToSkipCharsOffset
$23 = 0
(gdb) up
#3 0xb4cbf72f in nsTextFrame::Reflow (this=0x8e63dd8, aPresContext=0x8991ae8, aMetrics=@0xbfe4a3b8, aReflowState=@0xbfe4a308, aStatus=@0xbfe4a4fc)
at /data/mozilla_trunk/mozilla/layout/generic/nsTextFrameThebes.cpp:5441
5441 iter.SetOriginalOffset(offset + limitLength);
(gdb) print offset
$24 = 5764
(gdb) print limitLength
$25 = 1
Comment 3•19 years ago
|
||
This issue seems to to only happen when there are completely empty lines in the pre element (the MoinMoin URL has this and my xulrunner app was seeing the same thing).
Summary: text zoom / window resize hangs [@ nsBlockFrame::ReflowInlineFrames] → nsBlockFrame::ReflowInlineFrames hangs when pre has empty lines
Comment 4•19 years ago
|
||
Comment 5•18 years ago
|
||
WFM on Mac trunk with the testcase in comment 4. No assertion failures, no crash or hang.
Andrew, are you still seeing this on trunk?
Keywords: testcase
Comment 6•14 years ago
|
||
closing WFM per comment 5, which was made 5 years ago.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•