Bug 306000 - simple document freezes calligrawords
Summary: simple document freezes calligrawords
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Pierre Ducroquet
URL:
Keywords:
: 287660 305521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-29 16:33 UTC by Bernd Buschinski
Modified: 2014-09-19 06:28 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test document which causes the freeze (23.51 KB, application/vnd.oasis.opendocument.text)
2012-08-29 16:33 UTC, Bernd Buschinski
Details
Lighter test-case to narrow down the crash source (19.42 KB, application/vnd.oasis.opendocument.text)
2014-09-14 22:22 UTC, Pierre Ducroquet
Details
Work around for this bug - lots of potential side effects, not to merge... (1.46 KB, patch)
2014-09-17 07:26 UTC, Pierre Ducroquet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Buschinski 2012-08-29 16:33:11 UTC
I am not sure what in this document causes the freeze, as it is rather simple

Reproducible: Always

Steps to Reproduce:
1. open test document

Actual Results:  
it freezes

Expected Results:  
it should not freeze

current git master
Comment 1 Bernd Buschinski 2012-08-29 16:33:51 UTC
Created attachment 73548 [details]
test document which causes the freeze

created with libreoffice 3.6.0
Comment 2 Gopalakrishna Bhat 2012-08-29 16:42:04 UTC
The attached document crashes Words for me

Application: Calligra Words (calligrawords), signal: Aborted
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7c7a033780 (LWP 31132))]

Thread 2 (Thread 0x7f7c5b5ea700 (LWP 31133)):
#0  0x00007f7c72fabecd in poll () from /lib/libc.so.6
#1  0x00007f7c6be7b744 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f7c6be7b864 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f7c73e48c46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#4  0x00007f7c73e1977f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#5  0x00007f7c73e19a08 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#6  0x00007f7c73d1c700 in QThread::exec() () from /lib/libQtCore.so.4
#7  0x00007f7c73dfa1af in ?? () from /lib/libQtCore.so.4
#8  0x00007f7c73d1f69b in ?? () from /lib/libQtCore.so.4
#9  0x00007f7c73a8fe0f in start_thread () from /lib/libpthread.so.0
#10 0x00007f7c72fb405d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f7c7a033780 (LWP 31132)):
[KCrash Handler]
#5  0x00007f7c72f04fa5 in raise () from /lib/libc.so.6
#6  0x00007f7c72f06428 in abort () from /lib/libc.so.6
#7  0x00007f7c73d15274 in qt_message_output(QtMsgType, char const*) () from /lib/libQtCore.so.4
#8  0x00007f7c73d15428 in ?? () from /lib/libQtCore.so.4
#9  0x00007f7c73d155b4 in qFatal(char const*, ...) () from /lib/libQtCore.so.4
#10 0x00007f7c5fde218a in KWViewModeNormal::documentToView (this=0x1ce1aa0, point=..., viewConverter=0x1bbe158) at /home/gk/kde/src/calligra/words/part/KWViewModeNormal.cpp:204
#11 0x00007f7c5fde06c8 in KWViewMode::documentToView (this=0x1ce1aa0, rect=..., viewConverter=0x1bbe158) at /home/gk/kde/src/calligra/words/part/KWViewMode.cpp:40
#12 0x00007f7c5fdb8ea7 in KWCanvasBase::updateCanvas (this=0x1cde418, rc=...) at /home/gk/kde/src/calligra/words/part/KWCanvasBase.cpp:697
#13 0x00007f7c7868ee2b in KoShapeManager::update (this=0x1cc9450, rect=..., shape=0x1fb3b10, selectionHandles=true) at /home/gk/kde/src/calligra/libs/flake/KoShapeManager.cpp:569
#14 0x00007f7c786764a5 in KoShape::update (this=0x1fb3b10) at /home/gk/kde/src/calligra/libs/flake/KoShape.cpp:585
#15 0x00007f7c786883e0 in KoShapeContainer::update (this=0x1fb3b10) at /home/gk/kde/src/calligra/libs/flake/KoShapeContainer.cpp:232
#16 0x00007f7c5c9676ce in TextShape::update (this=0x1fb3b10) at /home/gk/kde/src/calligra/plugins/textshape/TextShape.cpp:389
#17 0x00007f7c7868ca9d in KoShapeManager::addShape (this=0x1cc9450, shape=0x1fb3b10, repaint=KoShapeManager::PaintShapeOnAdd) at /home/gk/kde/src/calligra/libs/flake/KoShapeManager.cpp:230
#18 0x00007f7c7868f722 in KoShapeManager::qt_static_metacall (_o=0x1cc9450, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fff552b4730) at /home/gk/kde/build/calligra/libs/flake/KoShapeManager.moc:68
#19 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#20 0x00007f7c5fdaf0a6 in KWDocument::shapeAdded (this=0x12fcee0, _t1=0x1fb3b10, _t2=KoShapeManager::AddWithoutRepaint) at /home/gk/kde/build/calligra/words/part/moc_KWDocument.cpp:153
#21 0x00007f7c5fdc11bf in KWDocument::addFrame (this=0x12fcee0, frame=0x206f690) at /home/gk/kde/src/calligra/words/part/KWDocument.cpp:412
#22 0x00007f7c5fdaee43 in KWDocument::qt_static_metacall (_o=0x12fcee0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff552b4990) at /home/gk/kde/build/calligra/words/part/moc_KWDocument.cpp:88
#23 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#24 0x00007f7c5fdaebe3 in KWFrameSet::frameAdded (this=0x1a158f0, _t1=0x206f690) at /home/gk/kde/build/calligra/words/part/moc_KWFrameSet.cpp:101
#25 0x00007f7c5fe0870e in KWFrameSet::addFrame (this=0x1a158f0, frame=0x206f690) at /home/gk/kde/src/calligra/words/part/frames/KWFrameSet.cpp:68
#26 0x00007f7c5fe06f55 in KWFrame::KWFrame (this=0x206f690, shape=0x1fb3b10, parent=0x1a158f0, anchor=0x0) at /home/gk/kde/src/calligra/words/part/frames/KWFrame.cpp:49
#27 0x00007f7c5fe01305 in KWFrameLayout::createNewFramesForPage (this=0x12fcf28, pageNumber=2) at /home/gk/kde/src/calligra/words/part/frames/KWFrameLayout.cpp:210
#28 0x00007f7c5fe28755 in KWPageInsertCommand::redo (this=0x1d97820) at /home/gk/kde/src/calligra/words/part/commands/KWPageInsertCommand.cpp:108
#29 0x00007f7c5fdbfddc in KWDocument::insertPage (this=0x12fcee0, afterPageNum=1, masterPageName=..., addUndoRedoCommand=false) at /home/gk/kde/src/calligra/words/part/KWDocument.cpp:234
#30 0x00007f7c5fdbfef0 in KWDocument::appendPage (this=0x12fcee0, masterPageName=..., addUndoRedoCommand=false) at /home/gk/kde/src/calligra/words/part/KWDocument.cpp:248
#31 0x00007f7c5fdf9767 in KWRootAreaProvider::provideNext (this=0x1bd3480, documentLayout=0x1be6180) at /home/gk/kde/src/calligra/words/part/KWRootAreaProvider.cpp:193
#32 0x00007f7c5fdfa3cf in KWRootAreaProvider::provide (this=0x1bd3480, documentLayout=0x1be6180) at /home/gk/kde/src/calligra/words/part/KWRootAreaProvider.cpp:300
#33 0x00007f7c72449705 in KoTextDocumentLayout::doLayout (this=0x1be6180) at /home/gk/kde/src/calligra/libs/textlayout/KoTextDocumentLayout.cpp:732
#34 0x00007f7c72448b50 in KoTextDocumentLayout::layout (this=0x1be6180) at /home/gk/kde/src/calligra/libs/textlayout/KoTextDocumentLayout.cpp:608
#35 0x00007f7c72449ee4 in KoTextDocumentLayout::executeScheduledLayout (this=0x1be6180) at /home/gk/kde/src/calligra/libs/textlayout/KoTextDocumentLayout.cpp:819
#36 0x00007f7c7244a755 in KoTextDocumentLayout::qt_static_metacall (_o=0x1be6180, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x1aca4c0) at /home/gk/kde/build/calligra/libs/textlayout/KoTextDocumentLayout.moc:66
#37 0x00007f7c73e2f3ee in QObject::event(QEvent*) () from /lib/libQtCore.so.4
#38 0x00007f7c74cd8f8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQtGui.so.4
#39 0x00007f7c74cdd40a in QApplication::notify(QObject*, QEvent*) () from /lib/libQtGui.so.4
#40 0x00007f7c798b25d6 in KoApplication::notify (this=0x7fff552b9140, receiver=0x1be6180, event=0x1bc46d0) at /home/gk/kde/src/calligra/libs/main/KoApplication.cpp:504
#41 0x00007f7c73e1aa2e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQtCore.so.4
#42 0x00007f7c73e1e391 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/libQtCore.so.4
#43 0x00007f7c73e48a93 in ?? () from /lib/libQtCore.so.4
#44 0x00007f7c6be7b475 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#45 0x00007f7c6be7b7a8 in ?? () from /lib/libglib-2.0.so.0
#46 0x00007f7c6be7b864 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#47 0x00007f7c73e48c26 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#48 0x00007f7c74d791ee in ?? () from /lib/libQtGui.so.4
#49 0x00007f7c73e1e83f in QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#50 0x00007f7c7994ed46 in KoProgressUpdater::update (this=0x1a42740) at /home/gk/kde/src/calligra/libs/main/KoProgressUpdater.cpp:169
#51 0x00007f7c7994f464 in KoProgressUpdater::qt_static_metacall (_o=0x1a42740, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff552b6290) at /home/gk/kde/build/calligra/libs/main/KoProgressUpdater.moc:50
#52 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#53 0x00007f7c79951783 in KoUpdaterPrivate::sigUpdated (this=0x21869a0) at /home/gk/kde/build/calligra/libs/main/KoUpdaterPrivate_p.moc:109
#54 0x00007f7c7995157b in KoUpdaterPrivate::setProgress (this=0x21869a0, percent=100) at /home/gk/kde/src/calligra/libs/main/KoUpdaterPrivate_p.cpp:45
#55 0x00007f7c7995165c in KoUpdaterPrivate::qt_static_metacall (_o=0x21869a0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fff552b64e0) at /home/gk/kde/build/calligra/libs/main/KoUpdaterPrivate_p.moc:61
#56 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#57 0x00007f7c79950f8c in KoUpdater::sigProgress (this=0x138eb90, _t1=100) at /home/gk/kde/build/calligra/libs/main/KoUpdater.moc:116
#58 0x00007f7c79950bcf in KoUpdater::setProgress (this=0x138eb90, percent=100) at /home/gk/kde/src/calligra/libs/main/KoUpdater.cpp:62
#59 0x00007f7c798bfa17 in KoDocument::openFile (this=0x12fcee0) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:1356
#60 0x00007f7c79973de6 in KoPart::openFile (this=0x1307b20) at /home/gk/kde/src/calligra/libs/main/KoPart.cpp:181
#61 0x00007f7c78dbcc80 in ?? () from /lib/libkparts.so.4
#62 0x00007f7c78dbd214 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /lib/libkparts.so.4
#63 0x00007f7c798bdc27 in KoDocument::openUrl (this=0x12fcee0, _url=...) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:997
#64 0x00007f7c79974b27 in KoPart::openExistingFile (this=0x1307b20, url=...) at /home/gk/kde/src/calligra/libs/main/KoPart.cpp:328
#65 0x00007f7c799762ea in KoPart::qt_static_metacall (_o=0x1307b20, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff552b7010) at /home/gk/kde/build/calligra/libs/main/KoPart.moc:60
#66 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#67 0x00007f7c79955d9f in KoOpenPane::openExistingFile (this=0x142d970, _t1=...) at /home/gk/kde/build/calligra/libs/main/KoOpenPane.moc:118
#68 0x00007f7c79955b8b in KoOpenPane::qt_static_metacall (_o=0x142d970, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff552b71a0) at /home/gk/kde/build/calligra/libs/main/KoOpenPane.moc:63
#69 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#70 0x00007f7c79953cf3 in KoExistingDocumentPane::openExistingUrl (this=0x16844c0, _t1=...) at /home/gk/kde/build/calligra/libs/main/KoExistingDocumentPane.moc:103
#71 0x00007f7c79953ae4 in KoExistingDocumentPane::onAccepted (this=0x16844c0) at /home/gk/kde/src/calligra/libs/main/KoExistingDocumentPane.cpp:60
#72 0x00007f7c79953baf in KoExistingDocumentPane::qt_static_metacall (_o=0x16844c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff552b72c0) at /home/gk/kde/build/calligra/libs/main/KoExistingDocumentPane.moc:54
#73 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#74 0x00007f7c729ee5a7 in KFileWidget::slotOk() () from /lib/libkfile.so.4
#75 0x00007f7c729efb56 in ?? () from /lib/libkfile.so.4
#76 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#77 0x00007f7c729d5e05 in KDirOperator::fileSelected(KFileItem const&) () from /lib/libkfile.so.4
#78 0x00007f7c729d5ee5 in KDirOperator::Private::_k_slotActivated(QModelIndex const&) () from /lib/libkfile.so.4
#79 0x00007f7c729dbdc2 in ?? () from /lib/libkfile.so.4
#80 0x00007f7c73e2ff0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#81 0x00007f7c751ddca5 in QAbstractItemView::activated(QModelIndex const&) () from /lib/libQtGui.so.4
#82 0x00007f7c751df84c in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /lib/libQtGui.so.4
#83 0x00007f7c751fd4ee in QListView::mouseReleaseEvent(QMouseEvent*) () from /lib/libQtGui.so.4
#84 0x00007f7c74d285d0 in QWidget::event(QEvent*) () from /lib/libQtGui.so.4
#85 0x00007f7c750d2c36 in QFrame::event(QEvent*) () from /lib/libQtGui.so.4
#86 0x00007f7c751e02a3 in QAbstractItemView::viewportEvent(QEvent*) () from /lib/libQtGui.so.4
#87 0x00007f7c73e1ab96 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/libQtCore.so.4
#88 0x00007f7c74cd8f5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQtGui.so.4
#89 0x00007f7c74cddc6b in QApplication::notify(QObject*, QEvent*) () from /lib/libQtGui.so.4
#90 0x00007f7c798b25d6 in KoApplication::notify (this=0x7fff552b9140, receiver=0x19671c0, event=0x7fff552b85c0) at /home/gk/kde/src/calligra/libs/main/KoApplication.cpp:504
#91 0x00007f7c73e1aa2e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQtCore.so.4
#92 0x00007f7c74cd9dcb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib/libQtGui.so.4
#93 0x00007f7c74d546c4 in ?? () from /lib/libQtGui.so.4
#94 0x00007f7c74d53451 in QApplication::x11ProcessEvent(_XEvent*) () from /lib/libQtGui.so.4
#95 0x00007f7c74d79572 in ?? () from /lib/libQtGui.so.4
#96 0x00007f7c6be7b475 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#97 0x00007f7c6be7b7a8 in ?? () from /lib/libglib-2.0.so.0
#98 0x00007f7c6be7b864 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#99 0x00007f7c73e48c26 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#100 0x00007f7c74d791ee in ?? () from /lib/libQtGui.so.4
#101 0x00007f7c73e1977f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#102 0x00007f7c73e19a08 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#103 0x00007f7c73e1e6a8 in QCoreApplication::exec() () from /lib/libQtCore.so.4
#104 0x00007f7c79c5f1f8 in kdemain (argc=1, argv=0x7fff552b9328) at /home/gk/kde/src/calligra/words/part/main.cpp:43
#105 0x000000000040099e in main (argc=1, argv=0x7fff552b9328) at /home/gk/kde/build/calligra/words/part/calligrawords_dummy.cpp:3
Comment 3 Bernd Buschinski 2013-02-18 18:38:18 UTC
now always crashes, no more freeze, with recent git master

Application: Calligra Words (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#6  KoParagraphStyle::applyStyle (this=this@entry=0x0, format=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/kotext/styles/KoParagraphStyle.cpp:238
#7  0x00007faece4babb3 in KoParagraphStyle::applyStyle (this=0x0, block=..., applyListStyle=true) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/kotext/styles/KoParagraphStyle.cpp:267
#8  0x00007faece9d2c2f in ToCGenerator::generateEntry (this=this@entry=0x1a07fa0, outlineLevel=outlineLevel@entry=1, cursor=..., block=..., blockId=@0x7fff2e8cccdc: 0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/textlayout/ToCGenerator.cpp:230
#9  0x00007faece9d3ce1 in ToCGenerator::generate (this=0x1a07fa0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/textlayout/ToCGenerator.cpp:151
#10 0x00007faece9d5305 in IndexGeneratorManager::generate (this=0x1481b00) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/textlayout/IndexGeneratorManager.cpp:147
#11 0x00007faece9c388d in KoTextDocumentLayout::layout (this=0x14c1320) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/textlayout/KoTextDocumentLayout.cpp:660
#12 0x00007faee3ec2c1e in QObject::event (this=0x14c1320, e=<optimized out>) at kernel/qobject.cpp:1194
#13 0x00007faee2f67d51 in QApplicationPrivate::notify_helper (this=this@entry=0x132a3c0, receiver=receiver@entry=0x14c1320, e=e@entry=0x1a080a0) at kernel/qapplication.cpp:4562
#14 0x00007faee2f6a3f9 in QApplication::notify (this=0x7fff2e8cf5f0, receiver=0x14c1320, e=0x1a080a0) at kernel/qapplication.cpp:4423
#15 0x00007faecf1b9d37 in KoApplication::notify (this=<optimized out>, receiver=0x14c1320, event=0x1a080a0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoApplication.cpp:537
#16 0x00007faee3eabbcd in QCoreApplication::notifyInternal (this=0x7fff2e8cf5f0, receiver=receiver@entry=0x14c1320, event=event@entry=0x1a080a0) at kernel/qcoreapplication.cpp:946
#17 0x00007faee3eaf457 in sendEvent (event=0x1a080a0, receiver=0x14c1320) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#18 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x10832b0) at kernel/qcoreapplication.cpp:1570
#19 0x00007faee3edca33 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#20 postEventSourceDispatch (s=0x132bac0) at kernel/qeventdispatcher_glib.cpp:279
#21 0x00007faedf498b34 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#22 0x00007faedf498ea4 in g_main_context_iterate.isra.24 () from /usr/lib64/libglib-2.0.so.0
#23 0x00007faedf498f6c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#24 0x00007faee3edcba4 in QEventDispatcherGlib::processEvents (this=0x1084750, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#25 0x00007faee3011d86 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00007faee3eafa0f in QCoreApplication::processEvents (flags=...) at kernel/qcoreapplication.cpp:1133
#27 0x00007faecf242e23 in KoProgressUpdater::update (this=<optimized out>) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoProgressUpdater.cpp:169
#28 0x00007faee3ec30df in QMetaObject::activate (sender=0x16606a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#29 0x00007faee3ec30df in QMetaObject::activate (sender=0x18e4f90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2e8cd9e0) at kernel/qobject.cpp:3539
#30 0x00007faecf244571 in KoUpdater::sigProgress (this=this@entry=0x18e4f90, _t1=_t1@entry=100) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999_build/libs/main/KoUpdater.moc:116
#31 0x00007faecf2445ec in KoUpdater::setProgress (this=0x18e4f90, percent=100) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoUpdater.cpp:62
#32 0x00007faec86d2a9a in KWOdfLoader::load (this=<optimized out>, odfStore=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/words/part/KWOdfLoader.cpp:236
#33 0x00007faec86b4947 in KWDocument::loadOdf (this=0x15a6a10, odfStore=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/words/part/KWDocument.cpp:621
#34 0x00007faecf1c0d9b in KoDocument::loadOasisFromStore (this=0x15a6a10, store=<optimized out>) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:1680
#35 0x00007faecf1cca6b in KoDocument::loadNativeFormatFromStoreInternal (this=this@entry=0x15a6a10, store=store@entry=0x10a39a0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:1570
#36 0x00007faecf1cde84 in KoDocument::loadNativeFormatFromStore (this=this@entry=0x15a6a10, file=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:1518
#37 0x00007faecf1ce392 in KoDocument::loadNativeFormat (this=0x15a6a10, file_=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:1498
#38 0x00007faecf1ca06d in KoDocument::openFile (this=0x15a6a10) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:1309
#39 0x00007faecf261d74 in KoPart::openFile (this=0x15583f0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoPart.cpp:196
#40 0x00007faed8a175f3 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x15a9220) at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kparts/part.cpp:591
#41 0x00007faed8a17b64 in KParts::ReadOnlyPart::openUrl (this=0x15583f0, url=...) at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kparts/part.cpp:555
#42 0x00007faecf1c746e in KoDocument::openUrl (this=0x15a6a10, _url=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoDocument.cpp:982
#43 0x00007faecf1ecb15 in KoMainWindow::openDocumentInternal (this=this@entry=0x14efad0, url=..., newpart=newpart@entry=0x15583f0, newdoc=newdoc@entry=0x15a6a10) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoMainWindow.cpp:730
#44 0x00007faecf1fb789 in KoMainWindow::openDocument (this=0x14efad0, newPart=0x15583f0, url=...) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoMainWindow.cpp:709
#45 0x00007faecf1bb68e in KoApplication::start (this=0x7fff2e8cf5f0) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/libs/main/KoApplication.cpp:441
#46 0x00007faecf4b9e66 in kdemain (argc=<optimized out>, argv=0x1084710) at /var/tmp/portage/app-office/calligra-9999/work/calligra-9999/words/part/main.cpp:41
#47 0x0000000000408a3f in launch (argc=argc@entry=2, _name=_name@entry=0x1268338 "/usr/bin/calligrawords", args=0x1268384 "\001", args@entry=0x126834f "/home/buscher/Done/Documents/callitest/text-orig.odt", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x126838c "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x126839f "kuehlschrank;1361212410;601603;8922_TIME15020524") at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kinit/kinit.cpp:726
#48 0x000000000040989b in handle_launcher_request (sock=7, who=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kinit/kinit.cpp:1218
#49 0x0000000000409f03 in handle_requests (waitForPid=waitForPid@entry=0) at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kinit/kinit.cpp:1411
#50 0x0000000000405b77 in main (argc=2, argv=<optimized out>, envp=0x7fff2e8d0150) at /var/tmp/portage/kde-base/kdelibs-4.10.0/work/kdelibs-4.10.0/kinit/kinit.cpp:1899
Comment 4 Inge Wallin 2013-07-01 03:58:11 UTC
Now classifies as a crash bug.
Comment 5 Camilla Boemann 2013-08-11 10:20:41 UTC
Nope it still freezes for me
Comment 6 Pierre Ducroquet 2014-09-14 22:20:34 UTC
This is not a bug in the OpenDocument parsing code, rather a layout issue related to the handling of the soft page break in a header element without a preceding paragraph : the layout system starts spawning an infinity of pages (likely resulting in a crash sooner or later).
I'll add a simpler test case with most of the content dropped to make it easier to debug.
Comment 7 Pierre Ducroquet 2014-09-14 22:22:18 UTC
Created attachment 88706 [details]
Lighter test-case to narrow down the crash source
Comment 8 Pierre Ducroquet 2014-09-17 07:25:16 UTC
I just found the error in our layout system that creates this crash.
I only have a workaround so far, a usable and clean fix is going to take a bit more thinking.
Comment 9 Pierre Ducroquet 2014-09-17 07:26:23 UTC
Created attachment 88718 [details]
Work around for this bug - lots of potential side effects, not to merge...
Comment 10 Camilla Boemann 2014-09-17 08:39:03 UTC
So is it the keep with next or the softbreak

Do all those headings have keepWithNext, and then at the end when there is no more space on paper we backtrack them all?
Comment 11 Camilla Boemann 2014-09-17 08:52:21 UTC
To answer my own question - yes all those headings have keep with next and thus we backtrack them all. 
I guess LO/AOO doesn't backtrack in this case - but rather keep them all as nothing else really makes sense - just keeping the first is not any more correct than keeping them all

So the correct solution will be something along the lines of checking if it makes sense at all to back track before really backtracking

what do you say?
Comment 12 Pierre Ducroquet 2014-09-17 09:08:05 UTC
I've started a patch (it's on my home desk, I'll finish it and send it tonight) to give a more meaningfull output in layoutBlock so that the backtrack code can make a wiser decision and not backtrack when we encountered a page break. But the real fix is indeed to do in the backtracking code.
Comment 13 Pierre Ducroquet 2014-09-18 19:57:50 UTC
Git commit 643a232d0bb6fb4ccea1ab9c32ebdb0ccc4ca114 by Pierre Ducroquet.
Committed on 18/09/2014 at 19:53.
Pushed by ducroquet into branch 'master'.

Fix for bug 306000 - never backtrack a whole page

This fixes bug 306000 by preventing the backtracking to undo the layout of a
whole page, thus starting an infinite loop.
This can be triggered by a page break in the middle of keepWithNext paragraphs.
REVIEW: 120250

M  +1    -1    libs/textlayout/KoTextLayoutArea.cpp

http://commits.kde.org/calligra/643a232d0bb6fb4ccea1ab9c32ebdb0ccc4ca114
Comment 14 Pierre Ducroquet 2014-09-18 20:12:50 UTC
*** Bug 305521 has been marked as a duplicate of this bug. ***
Comment 15 Pierre Ducroquet 2014-09-18 21:31:56 UTC
Git commit 4a6203319cba09dae354a6c58fd30aab70a7a5ee by Pierre Ducroquet.
Committed on 18/09/2014 at 19:53.
Pushed by ducroquet into branch 'calligra/2.8'.

Fix for bug 306000 - never backtrack a whole page

This fixes bug 306000 by preventing the backtracking to undo the layout of a
whole page, thus starting an infinite loop.
This can be triggered by a page break in the middle of keepWithNext paragraphs.
REVIEW: 120250

M  +1    -1    libs/textlayout/KoTextLayoutArea.cpp

http://commits.kde.org/calligra/4a6203319cba09dae354a6c58fd30aab70a7a5ee
Comment 16 Pierre Ducroquet 2014-09-19 06:14:18 UTC
*** Bug 287660 has been marked as a duplicate of this bug. ***
Comment 17 Bernd Buschinski 2014-09-19 06:28:44 UTC
Hi, thanks for fixing this bug!
This Bug was one of of the main reasons why I couldn’t use calligrawords as my main writing application. Now my big “writing times” are over, but I hope that the test document helped a bit :)
I have more bugreports on bko (with testdocuments), maybe I should re-test them all, as soon as I have time.
Anyway, just wanted to say thank you! You Rock!