Bug 292045

Summary: Calligra Words crashes on opening a particular file
Product: [Applications] calligrawords Reporter: Gopalakrishna Bhat <gopalakbhat>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: gopalakbhat, sebsauer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The file that crashes

Description Gopalakrishna Bhat 2012-01-20 15:52:22 UTC
Application: calligrawords (2.4 Beta 6)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:

Opened Words with the attached document as you open any other document

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Aborted
[Current thread is 1 (Thread 0x7fe22e7eb780 (LWP 14125))]

Thread 2 (Thread 0x7fe214af4700 (LWP 14130)):
#0  0x00007fe227e4d563 in poll () from /lib/libc.so.6
#1  0x00007fe2224cd7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fe2224cdd09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fe228c2866e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fe228bfca92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fe228bfcc97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fe228b1413f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fe228bdfaef in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fe228b16bc5 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fe22888cda0 in start_thread () from /lib/libpthread.so.0
#10 0x00007fe227e557dd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe22e7eb780 (LWP 14125)):
[KCrash Handler]
#6  0x00007fe227db6735 in raise () from /lib/libc.so.6
#7  0x00007fe227db7bab in abort () from /lib/libc.so.6
#8  0x00007fe228b0d4f4 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007fe228b0d6af in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fe228b0d854 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#11 0x00007fe2272c3eb9 in KoTextLayoutArea::setReferenceRect (this=0x7fff8a0eb8e0, left=0, right=-3, top=0, maximumAllowedBottom=1000000) at /home/gk/kde/src/calligra/libs/textlayout/KoTextLayoutArea.cpp:1721
#12 0x00007fe2272fb189 in KoStyleThumbnailer::layoutThumbnail (this=0x3b148d0, size=..., im=0x4021ea0) at /home/gk/kde/src/calligra/libs/textlayout/KoStyleThumbnailer.cpp:207
#13 0x00007fe2272fa49b in KoStyleThumbnailer::thumbnail (this=0x3b148d0, style=0x3b28c60, size=..., recreateThumbnail=false) at /home/gk/kde/src/calligra/libs/textlayout/KoStyleThumbnailer.cpp:124
#14 0x00007fe216dd9ccc in StylesModel::stylePreview (this=0x3f49df0, row=19, size=...) at /home/gk/kde/src/calligra/plugins/textshape/dialogs/StylesModel.cpp:196
#15 0x00007fe216dafa1a in StylesCombo::slotSelectionChanged (this=0x3ae6350, index=19) at /home/gk/kde/src/calligra/plugins/textshape/dialogs/StylesCombo.cpp:125
#16 0x00007fe216db00e0 in StylesCombo::qt_metacall (this=0x3ae6350, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff8a0ec170) at /home/gk/kde/build/calligra/plugins/textshape/StylesCombo.moc:97
#17 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#18 0x00007fe22a163af1 in QComboBox::currentIndexChanged(int) () from /usr/lib/libQtGui.so.4
#19 0x00007fe22a163b57 in ?? () from /usr/lib/libQtGui.so.4
#20 0x00007fe22a163ca9 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fe22a163dd7 in QComboBox::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#22 0x00007fe216db5423 in SimpleParagraphWidget::setCurrentFormat (this=0x3e87f30, format=...) at /home/gk/kde/src/calligra/plugins/textshape/dialogs/SimpleParagraphWidget.cpp:249
#23 0x00007fe216db5933 in SimpleParagraphWidget::qt_metacall (this=0x3e87f30, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff8a0ec4f0) at /home/gk/kde/build/calligra/plugins/textshape/SimpleParagraphWidget.moc:96
#24 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#25 0x00007fe216d9aa11 in TextTool::blockFormatChanged (this=0x3b93ab0, _t1=...) at /home/gk/kde/build/calligra/plugins/textshape/TextTool.moc:279
#26 0x00007fe216d938ee in TextTool::updateActions (this=0x3b93ab0) at /home/gk/kde/src/calligra/plugins/textshape/TextTool.cpp:1381
#27 0x00007fe216d9501f in TextTool::createOptionWidgets (this=0x3b93ab0) at /home/gk/kde/src/calligra/plugins/textshape/TextTool.cpp:1604
#28 0x00007fe22d6bfd6e in KoToolBase::optionWidgets (this=0x3b93ab0) at /home/gk/kde/src/calligra/libs/flake/KoToolBase.cpp:158
#29 0x00007fe22d6d8252 in KoToolManager::Private::postSwitchTool (this=0x2a60880, temporary=false) at /home/gk/kde/src/calligra/libs/flake/KoToolManager.cpp:357
#30 0x00007fe22d6d775f in KoToolManager::Private::switchTool (this=0x2a60880, tool=0x3b93ab0, temporary=false) at /home/gk/kde/src/calligra/libs/flake/KoToolManager.cpp:276
#31 0x00007fe22d6d7ae8 in KoToolManager::Private::switchTool (this=0x2a60880, id=..., temporary=false) at /home/gk/kde/src/calligra/libs/flake/KoToolManager.cpp:302
#32 0x00007fe22d6dc126 in KoToolManager::switchToolRequested (this=0x2a83cd0, id=...) at /home/gk/kde/src/calligra/libs/flake/KoToolManager.cpp:855
#33 0x00007fe219f39ba9 in KWDocument::createViewInstance (this=0x2b3d730, parent=0x2243620) at /home/gk/kde/src/calligra/words/part/KWDocument.cpp:232
#34 0x00007fe22e0db7c0 in KoDocument::createView (this=0x2b3d730, parent=0x2243620) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:438
#35 0x00007fe22e107537 in KoMainWindow::setRootDocument (this=0x2243620, doc=0x2b3d730) at /home/gk/kde/src/calligra/libs/main/KoMainWindow.cpp:446
#36 0x00007fe22e0e87fd in KoDocument::deleteOpenPane (this=0x2b3d730, closing=false) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:2703
#37 0x00007fe22e0e2482 in KoDocument::openFile (this=0x2b3d730) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:1670
#38 0x00007fe22be53b1c in ?? () from /usr/lib/libkparts.so.4
#39 0x00007fe22be54164 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#40 0x00007fe22e0e07be in KoDocument::openUrl (this=0x2b3d730, _url=...) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:1286
#41 0x00007fe22e0e81a6 in KoDocument::openExistingFile (this=0x2b3d730, url=...) at /home/gk/kde/src/calligra/libs/main/KoDocument.cpp:2629
#42 0x00007fe22e0e92e3 in KoDocument::qt_metacall (this=0x2b3d730, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fff8a0ed8d0) at /home/gk/kde/build/calligra/libs/main/KoDocument.moc:131
#43 0x00007fe219f296d4 in KWDocument::qt_metacall (this=0x2b3d730, _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0x7fff8a0ed8d0) at /home/gk/kde/build/calligra/words/part/moc_KWDocument.cpp:95
#44 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#45 0x00007fe22e1615a3 in KoOpenPane::openExistingFile (this=0x3035f90, _t1=...) at /home/gk/kde/build/calligra/libs/main/KoOpenPane.moc:104
#46 0x00007fe22e161481 in KoOpenPane::qt_metacall (this=0x3035f90, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff8a0ed9e0) at /home/gk/kde/build/calligra/libs/main/KoOpenPane.moc:86
#47 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#48 0x00007fe22e15fa53 in KoExistingDocumentPane::openExistingUrl (this=0x23fcf50, _t1=...) at /home/gk/kde/build/calligra/libs/main/KoExistingDocumentPane.moc:89
#49 0x00007fe22e15f8df in KoExistingDocumentPane::onAccepted (this=0x23fcf50) at /home/gk/kde/src/calligra/libs/main/KoExistingDocumentPane.cpp:61
#50 0x00007fe22e15fa02 in KoExistingDocumentPane::qt_metacall (this=0x23fcf50, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff8a0edaa0) at /home/gk/kde/build/calligra/libs/main/KoExistingDocumentPane.moc:77
#51 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#52 0x00007fe227891560 in KFileWidget::slotOk() () from /usr/lib/libkfile.so.4
#53 0x00007fe227892ac9 in ?? () from /usr/lib/libkfile.so.4
#54 0x00007fe2278937fe in KFileWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkfile.so.4
#55 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#56 0x00007fe227875e35 in KDirOperator::fileSelected(KFileItem const&) () from /usr/lib/libkfile.so.4
#57 0x00007fe227875f15 in KDirOperator::Private::_k_slotActivated(QModelIndex const&) () from /usr/lib/libkfile.so.4
#58 0x00007fe22787b61a in KDirOperator::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkfile.so.4
#59 0x00007fe228c105ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#60 0x00007fe22a29f0a5 in QAbstractItemView::activated(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#61 0x00007fe22a29f59f in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#62 0x00007fe22a2bb38e in QListView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#63 0x00007fe229de80fa in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#64 0x00007fe22a18c586 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#65 0x00007fe22a29c44b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#66 0x00007fe228bfda28 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#67 0x00007fe229d97aaf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#68 0x00007fe229d9d252 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#69 0x00007fe22aab3c96 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#70 0x00007fe228bfd89c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#71 0x00007fe229d98ab2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#72 0x00007fe229e14d45 in ?? () from /usr/lib/libQtGui.so.4
#73 0x00007fe229e13bda in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#74 0x00007fe229e3b282 in ?? () from /usr/lib/libQtGui.so.4
#75 0x00007fe2224cd29d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#76 0x00007fe2224cda78 in ?? () from /usr/lib/libglib-2.0.so.0
#77 0x00007fe2224cdd09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#78 0x00007fe228c28606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#79 0x00007fe229e3aeee in ?? () from /usr/lib/libQtGui.so.4
#80 0x00007fe228bfca92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#81 0x00007fe228bfcc97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#82 0x00007fe228c00eab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#83 0x00007fe22e420034 in kdemain (argc=1, argv=0x7fff8a0efc98) at /home/gk/kde/src/calligra/words/part/main.cpp:43
#84 0x0000000000400936 in main (argc=1, argv=0x7fff8a0efc98) at /home/gk/kde/build/calligra/words/part/calligrawords_dummy.cpp:3

Reported using DrKonqi
Comment 1 Gopalakrishna Bhat 2012-01-20 15:53:48 UTC
Created attachment 68040 [details]
The file that crashes
Comment 2 Sebastian Sauer 2012-01-27 06:47:34 UTC
Fixed with commit 2ef13ef59424b5ed6a1f0f0b69fe07ec545554ad
Comment 3 Gopalakrishna Bhat 2012-01-27 07:49:33 UTC
I had a solution similar to this preventing the -ve values. But PierreSt told me that it was a fix to the symptoms and not the route cause