Bug 305521

Summary: calligrawords hangs when opening an odt
Product: [Applications] calligrawords Reporter: Jos van den Oever <jos>
Component: opendocumentAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: pinaraf
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: file that hangs calligrawords

Description Jos van den Oever 2012-08-20 22:35:13 UTC
A specific ODT causes Calligra Words to hang when it is opened.

The problem might be in the table of contents.


Reproducible: Always

Steps to Reproduce:
1. calligraconverter calligratests/import/msword/toc_support_mw07.doc hang.odt
2. calligrawords hang.odt
Actual Results:  

words(19300)/kotext KoTextLoader::loadSpan: Could not load bookmark 
words(19300)/kotext KoTextLoader::loadSpan: Could not load bookmark 
Program received signal SIGINT, Interrupt.
#0  0x0000003567af58b0 in QMatrix::QMatrix (this=0x7fffffffbc40, matrix=...)
    at painting/qmatrix.cpp:255
#1  0x0000003567b70fc3 in QTransform (this=0x7fffffffbc40)
    at painting/qtransform.h:65
#2  QTransform::operator* (this=0xdb1f30, m=...) at painting/qtransform.cpp:883
#3  0x00007ffff715b7dc in KoShape::absoluteTransformation (this=0xd97f90, 
    converter=0x0)
    at /home/oever/work/nokia/src/calligra/libs/flake/KoShape.cpp:435
#4  0x00007ffff715b45a in KoShape::absolutePosition (this=0xd97f90, 
    anchor=<optimized out>)
    at /home/oever/work/nokia/src/calligra/libs/flake/KoShape.cpp:641
#5  0x00007fffe7c3d445 in KWFrameLayout::framesInPage (this=this@entry=
    0x947c40, page=...)
    at /home/oever/work/nokia/src/calligra/words/part/frames/KWFrameLayout.cpp:471
#6  0x00007fffe7c3d669 in KWFrameLayout::frameOn (this=this@entry=0x947c40, 
    fs=0xb8cdc0, pageNumber=pageNumber@entry=2320)
    at /home/oever/work/nokia/src/calligra/words/part/frames/KWFrameLayout.cpp:587
#7  0x00007fffe7c3ff75 in KWFrameLayout::createNewFramesForPage (
    this=0x947c40, pageNumber=2320)
    at /home/oever/work/nokia/src/calligra/words/part/frames/KWFrameLayout.cpp:139
#8  0x00007fffe7c58cd0 in KWPageInsertCommand::redo (this=0x16be880)
    at /home/oever/work/nokia/src/calligra/words/part/commands/KWPageInsertCommand.cpp:108
#9  0x00007fffe7c0c701 in KWDocument::insertPage (this=this@entry=0x947be0, 
    afterPageNum=2319, masterPageName=..., 
    addUndoRedoCommand=addUndoRedoCommand@entry=false)
    at /home/oever/work/nokia/src/calligra/words/part/KWDocument.cpp:284
#10 0x00007fffe7c0c80a in KWDocument::appendPage (this=0x947be0, 
    masterPageName=..., addUndoRedoCommand=false)
    at /home/oever/work/nokia/src/calligra/words/part/KWDocument.cpp:298
#11 0x00007fffe7c3a908 in KWRootAreaProvider::provideNext (
    this=this@entry=0xb91330, documentLayout=documentLayout@entry=0xb80370)
    at /home/oever/work/nokia/src/calligra/words/part/KWRootAreaProvider.cpp:193
#12 0x00007fffe7c3ae8a in KWRootAreaProvider::provide (this=0xb91330, 
    documentLayout=0xb80370)
    at /home/oever/work/nokia/src/calligra/words/part/KWRootAreaProvider.cpp:300

Expected Results:  
Open the file without hanging.
Comment 1 Jos van den Oever 2012-08-20 22:36:21 UTC
Created attachment 73335 [details]
file that hangs calligrawords
Comment 2 Pierre Ducroquet 2014-09-18 20:12:50 UTC
This bug is a duplicate of 306000 : lots of keepWithNext paragraphs triggering an infinite loop in the backtrack code.

*** This bug has been marked as a duplicate of bug 306000 ***