Bug 311569 - Words crashes when natively saving a document with a ToC
Summary: Words crashes when natively saving a document with a ToC
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords: release_blocker
Depends on:
Blocks:
 
Reported: 2012-12-12 14:25 UTC by Friedrich W. H. Kossebau
Modified: 2012-12-15 01:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich W. H. Kossebau 2012-12-12 14:25:34 UTC
Application: calligrawords (2.6 RC1)
KDE Platform Version: 4.9.3 "release 4"
Qt Version: 4.8.3
Operating System: Linux 3.4.11-2.16-desktop x86_64
Distribution: "openSUSE 12.2 (x86_64)"

-- Information about the crash:
Created a new document from the "Blank" template.
Added a few paragraphs.
Set two of them as head1
Added a ToC after the first paragraph, whith the two paragraphs appeared as entries in the ToC.
Then tried to save as odt.
*Boom*

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8980305780 (LWP 26446))]

Thread 2 (Thread 0x7f895d144700 (LWP 26447)):
#0  0x00007f897975413f in poll () from /lib64/libc.so.6
#1  0x00007f8975347684 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f89753477a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f897a5facf6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f897a5cb85f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f897a5cbae8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f897a4cdfc0 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007f897a5abfcf in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f897a4d0f9c in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f897a23ae0e in start_thread () from /lib64/libpthread.so.0
#10 0x00007f897975c2bd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f8980305780 (LWP 26446)):
[KCrash Handler]
#5  0x00007f897f229a52 in QHash<KoTextRange*, QHashDummyValue>::QHash (this=0x7fff41e19e50, other=...) at /usr/include/QtCore/qhash.h:282
#6  0x00007f897f229295 in QSet<KoTextRange*>::QSet (this=0x7fff41e19e50, other=...) at /usr/include/QtCore/qset.h:60
#7  0x00007f897f228ced in QForeachContainer<QSet<KoTextRange*> const>::QForeachContainer (this=0x7fff41e19e50, t=...) at /usr/include/QtCore/qglobal.h:2366
#8  0x00007f897f2286ed in KoTextRangeManager::textRangesChangingWithin (this=0x0, first=0, last=0, matchFirst=0, matchLast=-1) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/KoTextRangeManager.cpp:114
#9  0x00007f897f2de3b6 in KoTextWriter::Private::saveParagraph (this=0x2906460, block=..., from=0, to=18) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter_p.cpp:758
#10 0x00007f897f2d9815 in KoTextWriter::Private::writeBlocks (this=0x2906460, document=0x27ea530, from=0, to=18, listStyles=..., currentTable=0x0, currentList=0x0) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter_p.cpp:136
#11 0x00007f897f2e284c in KoTextWriter::Private::saveTableOfContents (this=0x2906460, document=0x16ce1b0, listStyles=..., toc=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter_p.cpp:1447
#12 0x00007f897f2d9457 in KoTextWriter::Private::writeBlocks (this=0x2906460, document=0x16ce1b0, from=0, to=-1, listStyles=..., currentTable=0x0, currentList=0x0) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter_p.cpp:98
#13 0x00007f897f2ef774 in KoTextWriter::write (this=0x7fff41e1aea0, document=0x16ce1b0, from=0, to=-1) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter.cpp:207
#14 0x00007f897f2eec08 in KoTextWriter::saveOdf (context=..., rdfData=0xf25de0, document=0x16ce1b0, from=0, to=-1) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/kotext/opendocument/KoTextWriter.cpp:80
#15 0x00007f89791a7c1c in KoTextShapeData::saveOdf (this=0x16d50d0, context=..., rdfData=0xf25de0, from=0, to=-1) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/textlayout/KoTextShapeData.cpp:273
#16 0x00007f896cab37c3 in KWOdfWriter::save (this=0x7fff41e1b320, odfStore=..., embeddedSaver=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/words/part/KWOdfWriter.cpp:304
#17 0x00007f896ca8995c in KWDocument::saveOdf (this=0xf1f3f0, documentContext=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/words/part/KWDocument.cpp:732
#18 0x00007f897fb55440 in KoDocument::saveNativeFormatODF (this=0xf1f3f0, store=0x2980820, mimeType=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoDocument.cpp:620
#19 0x00007f897fb551a0 in KoDocument::saveNativeFormat (this=0xf1f3f0, file=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoDocument.cpp:604
#20 0x00007f897fbcd905 in KoFilterChain::inputFileHelper (this=0x291c400, document=0xf1f3f0, alternativeFile=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoFilterChain.cpp:390
#21 0x00007f897fbcc352 in KoFilterChain::inputFile (this=0x291c400) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoFilterChain.cpp:127
#22 0x00007f8954d40710 in ExportHtml::convert (this=0x29229b0, from=..., to=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/filters/words/epub/exporthtml.cpp:81
#23 0x00007f897fbd584c in CalligraFilter::ChainLink::invokeFilter (this=0x2a26450, parentChainLink=0x0) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoFilterChainLink.cpp:90
#24 0x00007f897fbcc15a in KoFilterChain::invokeChain (this=0x291c400) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoFilterChain.cpp:95
#25 0x00007f897fbc4c98 in KoFilterManager::exportDocument (this=0x1feee30, url=..., mimeType=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoFilterManager.cpp:243
#26 0x00007f897fb5391a in KoDocument::saveFile (this=0xf1f3f0) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoDocument.cpp:338
#27 0x00007f897fc105f2 in KoPart::saveFile (this=0xf18190) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoPart.cpp:205
#28 0x00007f897f59a32c in KParts::ReadWritePart::save() () from /usr/lib64/libkparts.so.4
#29 0x00007f897f599701 in KParts::ReadWritePart::saveAs(KUrl const&) () from /usr/lib64/libkparts.so.4
#30 0x00007f897fb52db9 in KoDocument::exportDocument (this=0xf1f3f0, _url=...) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoDocument.cpp:265
#31 0x00007f897fb89b08 in KoMainWindow::saveDocument (this=0xd14660, saveas=true, silent=false) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoMainWindow.cpp:1058
#32 0x00007f897fb8baae in KoMainWindow::slotFileSaveAs (this=0xd14660) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoMainWindow.cpp:1326
#33 0x00007f897fb8fbbf in KoMainWindow::slotExportFile (this=0xd14660) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoMainWindow.cpp:1885
#34 0x00007f897fb91338 in KoMainWindow::qt_static_metacall (_o=0xd14660, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0x7fff41e1cac0) at /home/kossebau/Daten/Projekte/Calligra/build.debug/calligra/libs/main/KoMainWindow.moc:138
#35 0x00007f897a5e339f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#36 0x00007f897b49b542 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#37 0x00007f897b49b730 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#38 0x00007f897b8d4dc3 in ?? () from /usr/lib64/libQtGui.so.4
#39 0x00007f897b8db0d9 in ?? () from /usr/lib64/libQtGui.so.4
#40 0x00007f897c26d7c0 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#41 0x00007f897b4f0ed0 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#42 0x00007f897b8dc38b in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#43 0x00007f897b4a174c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#44 0x00007f897b4a642b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#45 0x00007f897fb4d9e8 in KoApplication::notify (this=0x7fff41e1e220, receiver=0x1109950, event=0x7fff41e1d6a0) at /home/kossebau/Daten/Projekte/Calligra/calligra/libs/main/KoApplication.cpp:504
#46 0x00007f897a5ccb0e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#47 0x00007f897b4a258b in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#48 0x00007f897b51cbdc in ?? () from /usr/lib64/libQtGui.so.4
#49 0x00007f897b51baa1 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#50 0x00007f897b541de2 in ?? () from /usr/lib64/libQtGui.so.4
#51 0x00007f89753473b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#52 0x00007f89753476e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#53 0x00007f89753477a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#54 0x00007f897a5facd6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#55 0x00007f897b541a5e in ?? () from /usr/lib64/libQtGui.so.4
#56 0x00007f897a5cb85f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#57 0x00007f897a5cbae8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#58 0x00007f897a5d0788 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#59 0x00007f897ff01338 in kdemain (argc=1, argv=0x7fff41e1e408) at /home/kossebau/Daten/Projekte/Calligra/calligra/words/part/main.cpp:43
#60 0x0000000000400a3e in main (argc=1, argv=0x7fff41e1e408) at /home/kossebau/Daten/Projekte/Calligra/build.debug/calligra/words/part/calligrawords_dummy.cpp:3

Reported using DrKonqi
Comment 1 Friedrich W. H. Kossebau 2012-12-12 14:30:07 UTC
DrKonqi missed to ask if I compiled myself and what branch.

Actually crashes for me both with latest 2.6 branch and master.
Comment 2 Camilla Boemann 2012-12-15 01:19:21 UTC
fixed with dd7f3b8f2f02a57dda39e9f1c8608801b8c2cf3b