Bug 305521 - calligrawords hangs when opening an odt
Summary: calligrawords hangs when opening an odt
Status: RESOLVED DUPLICATE of bug 306000
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (other bugs)
Version First Reported In: Git
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 22:35 UTC by Jos van den Oever
Modified: 2014-09-18 20:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
file that hangs calligrawords (5.03 KB, application/vnd.oasis.opendocument.text)
2012-08-20 22:36 UTC, Jos van den Oever
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***