Bug 383856 - Hang on opening odt file [infinite? loop in RunAroundHelper::fit] [testcase]
Summary: Hang on opening odt file [infinite? loop in RunAroundHelper::fit] [testcase]
Status: RESOLVED WORKSFORME
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-22 13:51 UTC by Raúl
Modified: 2022-12-08 05:14 UTC (History)
0 users

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


Attachments
Test document that always reproduce the bug. (13.08 KB, application/vnd.oasis.opendocument.text)
2017-08-22 13:51 UTC, Raúl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl 2017-08-22 13:51:48 UTC
Created attachment 107440 [details]
Test document that always reproduce the bug.

I'm using the debian experimental 3.0.1 package rebuilt for stretch.

When opening the attached file I get it looks like an infinite loop at RunAroundHelper::fit.

#0  RunAroundHelper::fit (this=this@entry=0x7ffd79884a80, resetHorizontalPosition=resetHorizontalPosition@entry=false, isRightToLeft=<optimized out>, position=...) at ./libs/textlayout/RunAroundHelper.cpp:106
#1  0x00007f64111318fc in KoTextLayoutArea::layoutBlock (this=this@entry=0x559f6942f300, cursor=cursor@entry=0x559f6941c4b0) at ./libs/textlayout/KoTextLayoutArea.cpp:1350
#2  0x00007f6411134b53 in KoTextLayoutArea::layout (this=this@entry=0x559f6942f300, cursor=cursor@entry=0x559f6941c4b0) at ./libs/textlayout/KoTextLayoutArea.cpp:689
#3  0x00007f641114bdbd in KoTextLayoutRootArea::layoutRoot (this=this@entry=0x559f6942f300, cursor=cursor@entry=0x559f6941c4b0) at ./libs/textlayout/KoTextLayoutRootArea.cpp:69
#4  0x00007f641114ed8d in KoTextDocumentLayout::doLayout (this=this@entry=0x559f69404ad0) at ./libs/textlayout/KoTextDocumentLayout.cpp:819
#5  0x00007f641114f618 in KoTextDocumentLayout::layout (this=0x559f69404ad0) at ./libs/textlayout/KoTextDocumentLayout.cpp:703
#6  0x00007f6411cd3499 in QObject::event (this=0x559f69404ad0, e=<optimized out>) at kernel/qobject.cpp:1263
#7  0x00007f6412050b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f6412058341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f6412a8d3a7 in KoApplication::notify (this=<optimized out>, receiver=0x559f69404ad0, event=0x559f68ea3da0) at ./libs/main/KoApplication.cpp:657
#10 0x00007f6411ca69e0 in QCoreApplication::notifyInternal2 (receiver=0x559f69404ad0, event=event@entry=0x559f68ea3da0) at kernel/qcoreapplication.cpp:988
#11 0x00007f6411ca916d in QCoreApplication::sendEvent (event=0x559f68ea3da0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#12 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x559f68e2da00) at kernel/qcoreapplication.cpp:1649
#13 0x00007f6411ca95d8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#14 0x00007f6411cfac43 in postEventSourceDispatch (s=0x559f68e80030) at kernel/qeventdispatcher_glib.cpp:276
#15 0x00007f640b3b97f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f640b3b9a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f640b3b9b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f6411cfb04f in QEventDispatcherGlib::processEvents (this=0x559f68e958c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x00007f640fe34cdb in KoProgressUpdater::update (this=<optimized out>) at ./libs/widgetutils/KoProgressUpdater.cpp:166
#20 0x00007f6411cd25e9 in QMetaObject::activate (sender=0x559f6932b2a0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3740
#21 0x00007f6411cd25e9 in QMetaObject::activate (sender=sender@entry=0x559f693297e0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffd798854b0)
    at kernel/qobject.cpp:3740
#22 0x00007f6411cd2f07 in QMetaObject::activate (sender=sender@entry=0x559f693297e0, m=m@entry=0x7f6410042be0 <KoUpdater::staticMetaObject>, local_signal_index=local_signal_index@entry=1, 
    argv=argv@entry=0x7ffd798854b0) at kernel/qobject.cpp:3602
#23 0x00007f640fe3edc1 in KoUpdater::sigProgress (this=this@entry=0x559f693297e0, _t1=<optimized out>, _t1@entry=100)
    at ./obj-x86_64-linux-gnu/libs/widgetutils/kowidgetutils_automoc.dir/moc_KoUpdater_S7VTS5GQ4NKEZV.cpp:158
#24 0x00007f640fe36274 in KoUpdater::setProgress (this=0x559f693297e0, percent=percent@entry=100) at ./libs/widgetutils/KoUpdater.cpp:56
#25 0x00007f6412a96d7c in KoDocument::openFile (this=0x559f68e8b100) at ./libs/main/KoDocument.cpp:1610
#26 0x00007f6412a9e632 in KoDocument::Private::openFile (this=0x559f68f1a580) at ./libs/main/KoDocument.cpp:271
#27 KoDocument::Private::openLocalFile (this=0x559f68f1a580) at ./libs/main/KoDocument.cpp:293
#28 0x00007f6412a9cd0d in KoDocument::openUrlInternal (this=this@entry=0x559f68e8b100, url=file:///home/raul/debs/calligra/testdocs/t5/t5d.odt) at ./libs/main/KoDocument.cpp:2675
#29 0x00007f6412a9d050 in KoDocument::openUrl (this=0x559f68e8b100, _url=file:///home/raul/debs/calligra/testdocs/t5/t5d.odt) at ./libs/main/KoDocument.cpp:1241
#30 0x00007f6412aa32fb in KoMainWindow::openDocumentInternal (this=this@entry=0x559f68f8b7c0, url=file:///home/raul/debs/calligra/testdocs/t5/t5d.odt, newpart=newpart@entry=0x559f68f23700, 
    newdoc=newdoc@entry=0x559f68e8b100) at ./libs/main/KoMainWindow.cpp:759
#31 0x00007f6412aa4de9 in KoMainWindow::openDocument (this=this@entry=0x559f68f8b7c0, newPart=0x559f68f23700, url=file:///home/raul/debs/calligra/testdocs/t5/t5d.odt) at ./libs/main/KoMainWindow.cpp:738
#32 0x00007f6412a89563 in KoApplication::start (this=this@entry=0x7ffd79886060) at ./libs/main/KoApplication.cpp:570
#33 0x00007f64130dd28b in kdemain (argc=<optimized out>, argv=<optimized out>) at ./words/app/main.cpp:54
---Type <return> to continue, or q <return> to quit---
#34 0x00007f6412d5a2b1 in __libc_start_main (main=0x559f683f0ab0 <main>, argc=2, argv=0x7ffd798861b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd798861a8)
    at ../csu/libc-start.c:291
#35 0x0000559f683f0aea in _start ()

From a gdb session I got these:
(gdb) info locals
maxLineWidth = 467.77403871160004
maxLineHeight = <optimized out>
maxNaturalTextWidth = 0
lineRect = {
  xp = 0, 
  yp = 2318704676.6306496, 
  w = 467.77403871160004, 
  h = -2318703850
}
lineRectPart = {
  xp = 0, 
  yp = 2318704676.6306496, 
  w = 467.77403871160004, 
  h = 0
}
movedDown = 2318703860
Comment 1 Justin Zobel 2022-11-08 06:50:11 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 2 Bug Janitor Service 2022-11-23 05:14:58 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 3 Bug Janitor Service 2022-12-08 05:14:32 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!