Bug 325085 - loading an odt with columns in sections hangs calligra words
Summary: loading an odt with columns in sections hangs calligra words
Status: RESOLVED WORKSFORME
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-19 11:03 UTC by Jos van den Oever
Modified: 2023-02-07 03:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
FIle that hangs calligra-words. (23.30 KB, application/vnd.oasis.opendocument.text)
2013-09-19 11:04 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 2013-09-19 11:03:37 UTC
A text file that contains columns in sections hangs when opening it in calligra words. The file has column breaks.


Reproducible: Always
Comment 1 Jos van den Oever 2013-09-19 11:04:17 UTC
Created attachment 82402 [details]
FIle that hangs calligra-words.
Comment 2 Jos van den Oever 2013-09-19 11:10:06 UTC
Here is a backtrace of one position in the infinite loop:

#0  0x00007fc751f454ba in KoShape::absolutePosition (this=0x57bed80, 
    anchor=anchor@entry=KoFlake::CenteredPosition)
    at /home/oever/work/nokia/src/calligra/libs/flake/KoShape.cpp:641
#1  0x00007fc7439be75d in KWFrameLayout::framesInPage (this=this@entry=
    0x248b160, page=...)
    at /home/oever/work/nokia/src/calligra/words/part/frames/KWFrameLayout.cpp:664
#2  0x00007fc7439c1eb9 in KWFrameLayout::createNewFramesForPage (
    this=this@entry=0x248b160, pageNumber=15137)
    at /home/oever/work/nokia/src/calligra/words/part/frames/KWFrameLayout.cpp:168
#3  0x00007fc7439daf89 in KWPageInsertCommand::redo (this=0x75fca30)
    at /home/oever/work/nokia/src/calligra/words/part/commands/KWPageInsertCommand.cpp:108
#4  0x00007fc74398e209 in KWDocument::insertPage (this=this@entry=0x248b110, 
    afterPageNum=15136, masterPageName=..., 
    addUndoRedoCommand=addUndoRedoCommand@entry=false)
    at /home/oever/work/nokia/src/calligra/words/part/KWDocument.cpp:251
#5  0x00007fc74398e301 in KWDocument::appendPage (this=this@entry=0x248b110, 
    masterPageName=..., addUndoRedoCommand=addUndoRedoCommand@entry=false)
    at /home/oever/work/nokia/src/calligra/words/part/KWDocument.cpp:265
#6  0x00007fc7439bc38d in KWRootAreaProvider::provideNext (
    this=this@entry=0x2484a60, documentLayout=documentLayout@entry=0x266d030)
    at /home/oever/work/nokia/src/calligra/words/part/KWRootAreaProvider.cpp:193
#7  0x00007fc7439bc92a in KWRootAreaProvider::provide (this=0x2484a60, 
    documentLayout=0x266d030)
    at /home/oever/work/nokia/src/calligra/words/part/KWRootAreaProvider.cpp:313
#8  0x00007fc75109629b in KoTextDocumentLayout::doLayout (
    this=this@entry=0x266d030)
    at /home/oever/work/nokia/src/calligra/libs/textlayout/KoTextDocumentLayout.cpp:796
#9  0x00007fc751096a78 in KoTextDocumentLayout::layout (this=0x266d030)
    at /home/oever/work/nokia/src/calligra/libs/textlayout/KoTextDocumentLayout.cpp:671
#10 0x000000395359232e in QObject::event(QEvent*) () from /lib64/libQtCore.so.4
#11 0x0000003aaebc84dc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /lib64/libQtGui.so.4
#12 0x0000003aaebceaa0 in QApplication::notify(QObject*, QEvent*) ()
   from /lib64/libQtGui.so.4
#13 0x00007fc7528e8007 in KoApplication::notify (this=<optimized out>, 
    receiver=0x266d030, event=0x2810af0)
    at /home/oever/work/nokia/src/calligra/libs/main/KoApplication.cpp:556
#14 0x000000395357a26d in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /lib64/libQtCore.so.4
#15 0x000000395357d1df in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQtCore.so.4
#16 0x00000039535a7883 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQtCore.so.4
Comment 3 Denis Kuplyakov 2014-06-04 12:58:06 UTC
It hangs on calligra/words/part/KWRootAreaProvider.cpp:312 as I can see. There is some "do {} while" loop.
Comment 4 Camilla Boemann 2014-06-04 13:04:58 UTC
I would say there is a good chance it's because the layout doesn't handle section columns and the pageprovider doesn't either. somehow it keeps on waiting for more space but no one makes the space available . something like that

implementing layout of columns in sections is a big task - or at least not a small one

So to prevent hangsa simple hack needs to be thought of
Comment 5 Andrew Crouthamel 2018-11-11 04:29:31 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-11-21 04:29:35 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Justin Zobel 2023-01-08 22:44:56 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 8 Bug Janitor Service 2023-01-23 05:04:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-02-07 03:55:17 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!