Endless loop in text layouting

Thorsten Zachmann t.zachmann at zagge.de
Thu Feb 3 07:40:34 GMT 2011


Hello Sebastian,

I have noticed a that the layout of a document is never finished and due to 
that it is not possible to scroll the document. This is most likely caused by 
the fact that layout now is triggered directly instead over the eventloop. 
With little bit older version of words it works without problems.

I have attached the document which hits the problem.

Here is the top of the bt, it goes on like that quite a lot.

(gdb) bt
#0  0x00007fffe18580ad in QHash<int, KWPageManagerPrivate::Page>::findNode 
(this=0x849e98, akey=@0x1b40a44, ahp=0x0) at 
/usr/include/qt4/QtCore/qhash.h:882
#1  0x00007fffe185b8b8 in QHash<int, KWPageManagerPrivate::Page>::value 
(this=0x849e98, akey=@0x1b40a44) at /usr/include/qt4/QtCore/qhash.h:606
#2  0x00007fffe185af1c in QHash<int, KWPageManagerPrivate::Page>::operator[] 
(this=0x849e98, akey=@0x1b40a44) at /usr/include/qt4/QtCore/qhash.h:731
#3  0x00007fffe1858a2c in KWPageManagerPrivate::pageOffset (this=0x849e90, 
pageNum=562, bottom=false) at 
/home/tz/develop/kde/git/calligra/words/part/KWPageManager.cpp:50
#4  0x00007fffe18571e4 in KWPage::offsetInDocument (this=0x7fffffe3fe00) at 
/home/tz/develop/kde/git/calligra/words/part/KWPage.cpp:207
#5  0x00007fffe1857395 in KWPage::rect (this=0x7fffffe3fe00, pageNumber=-1) at 
/home/tz/develop/kde/git/calligra/words/part/KWPage.cpp:219
#6  0x00007fffe185fd93 in KWViewModeNormal::clipRectToDocument (this=0xfa53c0, 
viewRect=...) at 
/home/tz/develop/kde/git/calligra/words/part/KWViewModeNormal.cpp:79
#7  0x00007fffe1834695 in KWCanvasBase::updateCanvas (this=0x1164198, rc=...) 
at /home/tz/develop/kde/git/calligra/words/part/KWCanvasBase.cpp:90
#8  0x00007ffff6f2a5e9 in KoShapeManager::update (this=0xb83ab0, rect=..., 
shape=0x0, selectionHandles=false) at 
/home/tz/develop/kde/git/calligra/libs/flake/KoShapeManager.cpp:555
#9  0x00007ffff6f0fed8 in KoShape::update (this=0x2410a60, rect=...) at 
/home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:630
#10 0x00007fffdbf83959 in TextShape::update (this=0x2410a60, shape=...) at 
/home/tz/develop/kde/git/calligra/plugins/textshape/TextShape.cpp:493
#11 0x00007fffdbfaef6d in Layout::addLine (this=0x1c1f840) at 
/home/tz/develop/kde/git/calligra/plugins/textshape/Layout.cpp:464
#12 0x00007fffe1886e6c in KWTextDocumentLayout::layout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:402
#13 0x00007fffe1885221 in KWTextDocumentLayout::relayout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:189
#14 0x00007fffe1891bb6 in KWTextFrameSet::updateTextLayout (this=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:183
#15 0x00007fffe182d05d in KWTextFrameSet::qt_metacall (this=0xe799c0, 
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffe40ef0)
    at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:82
#16 0x00007ffff26e9b27 in QMetaObject::activate (sender=0x243ce00, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#17 0x00007ffff72842fd in KoTextShapeData::relayout (this=0x243ce00) at 
/home/ko2/calligra-build/libs/kotext/KoTextShapeData.moc:83
#18 0x00007ffff7283f08 in KoTextShapeData::fireResizeEvent (this=0x243ce00) at 
/home/tz/develop/kde/git/calligra/libs/kotext/KoTextShapeData.cpp:180
#19 0x00007fffdbf818a6 in TextShape::shapeChanged (this=0x2410870, 
type=KoShape::PositionChanged, shape=0x0) at 
/home/tz/develop/kde/git/calligra/plugins/textshape/TextShape.cpp:217
#20 0x00007ffff6f0d659 in KoShapePrivate::shapeChanged (this=0x230dc40, 
type=KoShape::PositionChanged) at 
/home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:141
#21 0x00007ffff6f0ec6d in KoShape::setPosition (this=0x2410870, newPosition=...) 
at /home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:403
#22 0x00007fffe188c308 in KWFrameLayout::createNewFrameForPage (this=0x806390, 
fs=0xe799c0, pageNumber=563) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWFrameLayout.cpp:727
#23 0x00007fffe183fdba in KWDocument::requestMoreSpace (this=0x806330, 
fs=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/KWDocument.cpp:814
#24 0x00007fffe182f2fa in KWDocument::qt_metacall (this=0x806330, 
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffffe41520) at 
/home/ko2/calligra-build/words/part/moc_KWDocument.cpp:103
#25 0x00007ffff26e9b27 in QMetaObject::activate (sender=0xe799c0, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#26 0x00007fffe182d0b7 in KWTextFrameSet::moreFramesNeeded (this=0xe799c0, 
_t1=0xe799c0) at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:94
#27 0x00007fffe1891d7c in KWTextFrameSet::requestMoreFrames (this=0xe799c0, 
textHeight=0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:203
#28 0x00007fffe1886163 in KWTextDocumentLayout::layout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:409
#29 0x00007fffe1885221 in KWTextDocumentLayout::relayout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:189
#30 0x00007fffe1891bb6 in KWTextFrameSet::updateTextLayout (this=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:183
#31 0x00007fffe182d05d in KWTextFrameSet::qt_metacall (this=0xe799c0, 
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffe41f30)
    at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:82
#32 0x00007ffff26e9b27 in QMetaObject::activate (sender=0x2401310, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#33 0x00007ffff72842fd in KoTextShapeData::relayout (this=0x2401310) at 
/home/ko2/calligra-build/libs/kotext/KoTextShapeData.moc:83
#34 0x00007ffff7283f08 in KoTextShapeData::fireResizeEvent (this=0x2401310) at 
/home/tz/develop/kde/git/calligra/libs/kotext/KoTextShapeData.cpp:180
#35 0x00007fffdbf818a6 in TextShape::shapeChanged (this=0x2410a60, 
type=KoShape::PositionChanged, shape=0x0) at 
/home/tz/develop/kde/git/calligra/plugins/textshape/TextShape.cpp:217
#36 0x00007ffff6f0d659 in KoShapePrivate::shapeChanged (this=0x2446c90, 
type=KoShape::PositionChanged) at 
/home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:141
#37 0x00007ffff6f0ec6d in KoShape::setPosition (this=0x2410a60, newPosition=...) 
at /home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:403
#38 0x00007fffe188c308 in KWFrameLayout::createNewFrameForPage (this=0x806390, 
fs=0xe799c0, pageNumber=562) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWFrameLayout.cpp:727
#39 0x00007fffe183fdba in KWDocument::requestMoreSpace (this=0x806330, 
fs=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/KWDocument.cpp:814
#40 0x00007fffe182f2fa in KWDocument::qt_metacall (this=0x806330, 
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffffe42560) at 
/home/ko2/calligra-build/words/part/moc_KWDocument.cpp:103
#41 0x00007ffff26e9b27 in QMetaObject::activate (sender=0xe799c0, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#42 0x00007fffe182d0b7 in KWTextFrameSet::moreFramesNeeded (this=0xe799c0, 
_t1=0xe799c0) at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:94
#43 0x00007fffe1891d7c in KWTextFrameSet::requestMoreFrames (this=0xe799c0, 
textHeight=0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:203
#44 0x00007fffe1886163 in KWTextDocumentLayout::layout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:409
#45 0x00007fffe1885221 in KWTextDocumentLayout::relayout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:189
#46 0x00007fffe1891bb6 in KWTextFrameSet::updateTextLayout (this=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:183
---Type <return> to continue, or q <return> to quit---
#47 0x00007fffe182d05d in KWTextFrameSet::qt_metacall (this=0xe799c0, 
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffe42f70)
    at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:82
#48 0x00007ffff26e9b27 in QMetaObject::activate (sender=0x2434320, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#49 0x00007ffff72842fd in KoTextShapeData::relayout (this=0x2434320) at 
/home/ko2/calligra-build/libs/kotext/KoTextShapeData.moc:83
#50 0x00007ffff7283f08 in KoTextShapeData::fireResizeEvent (this=0x2434320) at 
/home/tz/develop/kde/git/calligra/libs/kotext/KoTextShapeData.cpp:180
#51 0x00007fffdbf818a6 in TextShape::shapeChanged (this=0x23ef250, 
type=KoShape::PositionChanged, shape=0x0) at 
/home/tz/develop/kde/git/calligra/plugins/textshape/TextShape.cpp:217
#52 0x00007ffff6f0d659 in KoShapePrivate::shapeChanged (this=0x243e620, 
type=KoShape::PositionChanged) at 
/home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:141
#53 0x00007ffff6f0ec6d in KoShape::setPosition (this=0x23ef250, newPosition=...) 
at /home/tz/develop/kde/git/calligra/libs/flake/KoShape.cpp:403
#54 0x00007fffe188c308 in KWFrameLayout::createNewFrameForPage (this=0x806390, 
fs=0xe799c0, pageNumber=561) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWFrameLayout.cpp:727
#55 0x00007fffe183fdba in KWDocument::requestMoreSpace (this=0x806330, 
fs=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/KWDocument.cpp:814
#56 0x00007fffe182f2fa in KWDocument::qt_metacall (this=0x806330, 
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffffe435a0) at 
/home/ko2/calligra-build/words/part/moc_KWDocument.cpp:103
#57 0x00007ffff26e9b27 in QMetaObject::activate (sender=0xe799c0, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#58 0x00007fffe182d0b7 in KWTextFrameSet::moreFramesNeeded (this=0xe799c0, 
_t1=0xe799c0) at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:94
#59 0x00007fffe1891d7c in KWTextFrameSet::requestMoreFrames (this=0xe799c0, 
textHeight=0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:203
#60 0x00007fffe1886163 in KWTextDocumentLayout::layout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:409
#61 0x00007fffe1885221 in KWTextDocumentLayout::relayout (this=0xe8ca10) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextDocumentLayout.cpp:189
#62 0x00007fffe1891bb6 in KWTextFrameSet::updateTextLayout (this=0xe799c0) at 
/home/tz/develop/kde/git/calligra/words/part/frames/KWTextFrameSet.cpp:183
#63 0x00007fffe182d05d in KWTextFrameSet::qt_metacall (this=0xe799c0, 
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffe43fb0)
    at /home/ko2/calligra-build/words/part/moc_KWTextFrameSet.cpp:82
#64 0x00007ffff26e9b27 in QMetaObject::activate (sender=0x243cfa0, m=<value 
optimized out>, local_signal_index=<value optimized out>, argv=0x23665f0) at 
kernel/qobject.cpp:3280
#65 0x00007ffff72842fd in KoTextShapeData::relayout (this=0x243cfa0) at 
/home/ko2/calligra-build/libs/kotext/KoTextShapeData.moc:83

-------------- next part --------------
A non-text attachment was scrubbed...
Name: homenet.hcii.cs.cmu.edu%2Fprogress%2Fblackwell_chapter_boneva_kraut.doc
Type: application/msword
Size: 143872 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110203/34ea26d3/attachment.doc>


More information about the calligra-devel mailing list