Created attachment 58972 [details] Test data Version: git text-layoutrestructure-boemann branch (Using KDE 4.5.5) OS: Kubuntu 10.10 Test data is in MS PowerPoint 2003 format some content in it. Open the same document in calligra stage . Expected outcome: Ppt file should be opened and all the slides should be displayed. Actual outcome: Crash is observed after opening the file. Frequency: Always.
Please find the backtrace below. Application: Stage (kdeinit4), signal: Segmentation fault [Current thread is 1 (Thread 0xb7866710 (LWP 3532))] Thread 2 (Thread 0xb4a5ab70 (LWP 3541)): #0 0x004cf3a1 in pthread_mutex_lock () from /lib/libpthread.so.0 #1 0x00e724a4 in ?? () from /lib/libglib-2.0.so.0 #2 0x00e72848 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x0116559f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #4 0x01135609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #5 0x01135a8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #6 0x01031b7e in QThread::exec() () from /usr/lib/libQtCore.so.4 #7 0x0111435b in ?? () from /usr/lib/libQtCore.so.4 #8 0x01034df9 in ?? () from /usr/lib/libQtCore.so.4 #9 0x004cccc9 in start_thread () from /lib/libpthread.so.0 #10 0x0090e69e in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb7866710 (LWP 3532)): [KCrash Handler] #7 KoTextLayoutArea::hitTest (this=0x0, point=..., accuracy=Qt::ExactHit) at /home/swathi/nsc/calligra/libs/textlayout/KoTextLayoutArea.cpp:96 #8 0x04138a65 in KPrPresentationTool::checkHyperlink (this=0xa085b18, event=0xbf8816b8, shape=0x9618e88, hyperLink=...) at /home/swathi/nsc/calligra/kpresenter/part/KPrPresentationTool.cpp:302 #9 0x04138bcc in KPrPresentationTool::mouseMoveEvent (this=0xa085b18, event=0xbf8816b8) at /home/swathi/nsc/calligra/kpresenter/part/KPrPresentationTool.cpp:140 #10 0x041331d2 in KPrViewModePresentation::mouseMoveEvent (this=0xa086010, event=0xbf881ac4, point=...) at /home/swathi/nsc/calligra/kpresenter/part/KPrViewModePresentation.cpp:111 #11 0x048d17bf in KoPACanvas::mouseMoveEvent (this=0x9618a60, event=0xbf881ac4) at /home/swathi/nsc/calligra/libs/kopageapp/KoPACanvas.cpp:129 #12 0x013f4caa in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #13 0x048d1ca7 in KoPACanvas::event (this=0x9618a60, e=0xbf881ac4) at /home/swathi/nsc/calligra/libs/kopageapp/KoPACanvas.cpp:96 #14 0x01396fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #15 0x0139dc2e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #16 0x002e868a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #17 0x01136b3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #18 0x0139c094 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4 #19 0x0139c5ca in QApplicationPrivate::sendSyntheticEnterLeave(QWidget*) () from /usr/lib/libQtGui.so.4 #20 0x013f38de in QWidgetPrivate::hideChildren(bool) () from /usr/lib/libQtGui.so.4 #21 0x013f3ab2 in QWidgetPrivate::hide_helper() () from /usr/lib/libQtGui.so.4 #22 0x013fb040 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4 #23 0x013ff15f in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4 #24 0x04132eaf in KPrViewModePresentation::deactivate (this=0xa086010) at /home/swathi/nsc/calligra/kpresenter/part/KPrViewModePresentation.cpp:230 #25 0x048d096b in KoPAViewBase::setViewMode (this=0x98df940, mode=0x9fd4420) at /home/swathi/nsc/calligra/libs/kopageapp/KoPAViewBase.cpp:74 #26 0x04132a8f in KPrViewModePresentation::activateSavedViewMode (this=0xa086010) at /home/swathi/nsc/calligra/kpresenter/part/KPrViewModePresentation.cpp:272 #27 0x041388c5 in KPrPresentationTool::keyPressEvent (this=0xa085b18, event=0xbf882674) at /home/swathi/nsc/calligra/kpresenter/part/KPrPresentationTool.cpp:176 #28 0x04132a4b in KPrViewModePresentation::keyPressEvent (this=0xa086010, event=0xbf882674) at /home/swathi/nsc/calligra/kpresenter/part/KPrViewModePresentation.cpp:123 #29 0x048d19af in KoPACanvas::keyPressEvent (this=0x9618a60, event=0xbf882674) at /home/swathi/nsc/calligra/libs/kopageapp/KoPACanvas.cpp:139 #30 0x013f4b13 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #31 0x048d1ca7 in KoPACanvas::event (this=0x9618a60, e=0xbf882674) at /home/swathi/nsc/calligra/libs/kopageapp/KoPACanvas.cpp:96 #32 0x01396fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #33 0x0139eac9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #34 0x002e868a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #35 0x01136b3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #36 0x01396b9e in ?? () from /usr/lib/libQtGui.so.4 #37 0x0145369d in ?? () from /usr/lib/libQtGui.so.4 #38 0x01455b49 in ?? () from /usr/lib/libQtGui.so.4 #39 0x01429387 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #40 0x0145936a in ?? () from /usr/lib/libQtGui.so.4 #41 0x00e6e855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #42 0x00e72668 in ?? () from /lib/libglib-2.0.so.0 #43 0x00e72848 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #44 0x01165565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #45 0x01458be5 in ?? () from /usr/lib/libQtGui.so.4 #46 0x01135609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #47 0x01135a8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #48 0x0113a00f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #49 0x01395e07 in QApplication::exec() () from /usr/lib/libQtGui.so.4 #50 0x08c2102d in kdemain (argc=2, argv=0x90fdcc0) at /home/swathi/nsc/calligra/kpresenter/part/main.cpp:44 #51 0x0804e4d1 in _start ()
Looks like a crash in the new layout code
Same crash is observed while opening the pptx file in the below link. http://geant4.slac.stanford.edu/SLACTutorial09/SpeedUp.pptx
Still crash is observed.So reopening the bug.
different crash though # #7 0x01f78478 in QHash<int, KoInlineObject*>::findNode (this=0x8ff54e0, akey=@0xbfcfe2ec, ahp=0x0) at /usr/include/qt4/QtCore/qhash.h:884 # #8 0x01f762ad in value (this=0x8ff54d8, format=...) at /usr/include/qt4/QtCore/qhash.h:606 # #9 KoInlineTextObjectManager::inlineTextObject (this=0x8ff54d8, format=...) at /home/swathi/nsc/calligra/libs/kotext/KoInlineTextObjectManager.cpp:48 # #10 0x02531102 in KoTextDocumentLayout::resizeInlineObject (this=0x9434630, item=..., position=0, format=...) at /home/swathi/nsc/calligra/libs/textlayout/KoTextDocumentLayout.cpp:299 # #11 0x0114cd27 in QTextEngine::shape(int) const () from /usr/lib/libQtGui.so.4 # #12 0x011549d5 in QTextLine::layout_helper(int) () from /usr/lib/libQtGui.so.4 # #13 0x01155bf5 in QTextLine::setLineWidth(double) () from /usr/lib/libQtGui.so.4 # #14 0x02522075 in KoTextLayoutArea::layoutBlock (this=0x9e069d0, cursor=0x94349c0) at /home/swathi/nsc/calligra/libs/textlayout/KoTextLayoutArea.cpp:725 # #15 0x02523a94 in KoTextLayoutArea::layout (this=0x9e069d0, cursor=0x94349c0) at /home/swathi/nsc/calligra/libs/textlayout/KoTextLayoutArea.cpp:416 # #16 0x0253088e in KoTextLayoutRootArea::layout (this=0x9e069d0, cursor=0x94349c0) at /home/swathi/nsc/calligra/libs/textlayout/KoTextLayoutRootArea.cpp:53 # #17 0x025323cd in KoTextDocumentLayout::layout (this=0x9434630) at /home/swathi/nsc/calligra/libs/textlayout/KoTextDocumentLayout.cpp:343 # #18 0x02530bf4 in KoTextDocumentLayout::executeScheduledLayout (this=0x939cc88) at /home/swathi/nsc/calligra/libs/textlayout/KoTextDocumentLayout.cpp:422 # #19 0x02530d83 in KoTextDocumentLayout::qt_metacall (this=0x9434630, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0x9c23de0) at /home/swathi/nsc/build/libs/textlayout/KoTextDocumentLayout.moc:86 # #20 0x00b638ca in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4 # #21 0x00b6edf6 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4 # #22 0x00b706a2 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 # #23 0x00eadfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 # #24 0x00eb404e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 # #25 0x0055e68a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 # #26 0x00b5db3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 # #27 0x00b60d8b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4 # #28 0x00b60f4d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4 # #29 0x00b8ca74 in ?? () from /usr/lib/libQtCore.so.4 # #30 0x01a75855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 # #31 0x01a79668 in ?? () from /lib/libglib-2.0.so.0 # #32 0x01a79848 in g_main_context_iteration () from /lib/libglib-2.0.so.0 # #33 0x00b8c565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 # #34 0x00f6fbe5 in ?? () from /usr/lib/libQtGui.so.4 # #35 0x00b5c609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 # #36 0x00b5ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 # #37 0x00b6100f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 # #38 0x00eace07 in QApplication::exec() () from /usr/lib/libQtGui.so.4 # #39 0x0643602d in kdemain (argc=2, argv=0x8e2bec0) at /home/swathi/nsc/calligra/kpresenter/part/main.cpp:44 # #40 0x0804e4d1 in _start ()
Patch that fixes the issue is for review at the calligra-devel@kde.org mailing-list.
Fixed with c4e15536e59a333ad42ca70c7464668da8e6e61a in master and cherry-pick'd the commit to the textlayout-branch.
Verified in commit df1a8d36dcc689caecf341f3d4dfd9632cadaaf9.