Bug 173730 - Crash on saving a file based on the "Balance Sheet" template to an .ods file
Summary: Crash on saving a file based on the "Balance Sheet" template to an .ods file
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
: 187481 208995 223233 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-28 06:47 UTC by Michael Leupold
Modified: 2010-01-26 15:05 UTC (History)
4 users (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 Michael Leupold 2008-10-28 06:47:38 UTC
Version:           2.0 beta-2 (using 4.1.71 (KDE 4.1.71 (KDE 4.2 >= 20081023)), compiled sources)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.25.7quechua-0.1intelquechua-0.1intel

Steps to reproduce:
1. Create a new document based on Business/Balance Sheet
2. Save the document to an .ods file
-> KSpread crashes

This bug seeems to be ods specific and is not reproducible for eg. ksp files. It also doesn't happen for other templates I tried or empty documents.
Comment 1 Michael Leupold 2008-10-28 06:51:51 UTC
This seems to be due to an unavailable cell-style. The crash seems easy to fix but I guess there's more to it...

Application: KSpread (kspread), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f38b83b54ef in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 0x7f38ba6607a0 (LWP 18188)):
[KCrash Handler]
#4  0x00007f38b8688697 in QString::toUtf8 (this=0x18a2628) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/tools/qstring.cpp:3084
#5  0x00007f38ac550144 in KoXmlWriter::addAttribute (this=0x7fffc27f4870, attrName=0x7f38ac7393da "table:style-name", value=@0x7f38b8a6eb20)
    at /home/lemma/kde/trunk/source/koffice/libs/store/KoXmlWriter.h:78
#6  0x00007f38ac54de99 in KSpread::Cell::saveOdf (this=0x7fffc27f3d50, xmlwriter=@0x7fffc27f4870, mainStyles=@0x7fffc27f4ab0, row=1, column=1, repeated=@0x7fffc27f3d5c, tableContext=@0x7fffc27f47e0)
    at /home/lemma/kde/trunk/source/koffice/kspread/Cell.cpp:1127
#7  0x00007f38ac5ed13d in KSpread::Sheet::saveOdfCells (this=0xb60b10, xmlWriter=@0x7fffc27f4870, mainStyles=@0x7fffc27f4ab0, row=1, maxCols=32767, tableContext=@0x7fffc27f47e0)
    at /home/lemma/kde/trunk/source/koffice/kspread/Sheet.cpp:3728
#8  0x00007f38ac5f6b6a in KSpread::Sheet::saveOdfColRowCell (this=0xb60b10, xmlWriter=@0x7fffc27f4870, mainStyles=@0x7fffc27f4ab0, maxCols=32767, maxRows=23, tableContext=@0x7fffc27f47e0)
    at /home/lemma/kde/trunk/source/koffice/kspread/Sheet.cpp:3687
#9  0x00007f38ac5fde7b in KSpread::Sheet::saveOdf (this=0xb60b10, tableContext=@0x7fffc27f47e0) at /home/lemma/kde/trunk/source/koffice/kspread/Sheet.cpp:3399
#10 0x00007f38ac5d4005 in KSpread::Map::saveOdf (this=0x775880, xmlWriter=@0x7fffc27f4aa0, mainStyles=<value optimized out>, store=<value optimized out>, manifestWriter=<value optimized out>, 
    _indexObj=<value optimized out>, _partIndexObj=@0x7fffc27f4ae8) at /home/lemma/kde/trunk/source/koffice/kspread/Map.cpp:459
#11 0x00007f38ac6d61c1 in KSpread::Doc::saveOdfHelper (this=0x779410, documentContext=<value optimized out>, saveFlag=<value optimized out>)
    at /home/lemma/kde/trunk/source/koffice/kspread/part/Doc.cpp:389
#12 0x00007f38ac6d6569 in KSpread::Doc::saveOdf (this=0x779410, documentContext=@0x7fffc27f4d20) at /home/lemma/kde/trunk/source/koffice/kspread/part/Doc.cpp:346
#13 0x00007f38ba1373fd in KoDocument::saveNativeFormat (this=0x779410, file=<value optimized out>) at /home/lemma/kde/trunk/source/koffice/libs/main/KoDocument.cpp:1012
#14 0x00007f38ba13a066 in KoDocument::saveFile (this=0x779410) at /home/lemma/kde/trunk/source/koffice/libs/main/KoDocument.cpp:443
#15 0x00007f38b71f943f in KParts::ReadWritePart::save (this=0x779410) at /home/lemma/kde/trunk/source/KDE/kdelibs/kparts/part.cpp:821
#16 0x00007f38b71f95c4 in KParts::ReadWritePart::saveAs (this=0x779410, kurl=@0x7fffc27f5620) at /home/lemma/kde/trunk/source/KDE/kdelibs/kparts/part.cpp:842
#17 0x00007f38ba151f01 in KoMainWindow::saveDocument (this=0x7fd010, saveas=<value optimized out>, silent=false) at /home/lemma/kde/trunk/source/koffice/libs/main/KoMainWindow.cpp:995
#18 0x00007f38ba14c524 in KoMainWindow::slotFileSaveAs (this=0x7f38b8a6eb20) at /home/lemma/kde/trunk/source/koffice/libs/main/KoMainWindow.cpp:1257
#19 0x00007f38ba154be2 in KoMainWindow::qt_metacall (this=0x7fd010, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc27f5ae0)
    at /home/lemma/kde/trunk/build/debug/build/koffice/libs/main/KoMainWindow.moc:130
#20 0x00007f38b875c8d1 in QMetaObject::activate (sender=0x7f8410, from_signal_index=5, to_signal_index=6, argv=0x7fffc27f5ae0)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qobject.cpp:3031
#21 0x00007f38b875cbe5 in QMetaObject::activate (sender=0x7f8410, m=0x7f38ba09e940, from_local_signal_index=1, to_local_signal_index=2, argv=0x7fffc27f5ae0)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qobject.cpp:3121
#22 0x00007f38b9581473 in QAction::triggered (this=0x7f8410, _t1=false) at .moc/debug-shared/moc_qaction.cpp:216
#23 0x00007f38b958347c in QAction::activate (this=0x7f8410, event=QAction::Trigger) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qaction.cpp:1125
#24 0x00007f38b99ff88d in QMenuPrivate::activateAction (this=0x83eb00, action=0x7f8410, action_e=QAction::Trigger, self=true) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qmenu.cpp:1002
#25 0x00007f38b9a0244e in QMenu::mouseReleaseEvent (this=0x83eac0, e=0x7fffc27f6940) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qmenu.cpp:2169
#26 0x00007f38b68ac0cf in KMenu::mouseReleaseEvent (this=0x83eac0, e=0x7fffc27f6940) at /home/lemma/kde/trunk/source/KDE/kdelibs/kdeui/widgets/kmenu.cpp:452
#27 0x00007f38b95f0d76 in QWidget::event (this=0x83eac0, event=0x7fffc27f6940) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qwidget.cpp:7163
#28 0x00007f38b99fd3c1 in QMenu::event (this=0x83eac0, e=0x7fffc27f6940) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qmenu.cpp:2265
#29 0x00007f38b958a643 in QApplicationPrivate::notify_helper (this=0x617650, receiver=0x83eac0, e=0x7fffc27f6940) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3803
#30 0x00007f38b958b262 in QApplication::notify (this=0x7fffc27f7860, receiver=0x83eac0, e=0x7fffc27f6940) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3528
#31 0x00007f38b67dbe32 in KApplication::notify (this=0x7fffc27f7860, receiver=0x83eac0, event=0x7fffc27f6940) at /home/lemma/kde/trunk/source/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#32 0x00007f38b8744658 in QCoreApplication::notifyInternal (this=0x7fffc27f7860, receiver=0x83eac0, event=0x7fffc27f6940)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#33 0x00007f38b95987a3 in QCoreApplication::sendSpontaneousEvent (receiver=0x83eac0, event=0x7fffc27f6940)
    at ../../include/QtCore/../../../../../../source/qt-copy/src/corelib/kernel/qcoreapplication.h:212
#34 0x00007f38b958f7bb in QApplicationPrivate::sendMouseEvent (receiver=0x83eac0, event=0x7fffc27f6940, alienWidget=0x0, nativeWidget=0x83eac0, buttonDown=0x7f38ba0da4e8, 
    lastMouseReceiver=@0x7f38ba0da4f0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:2793
#35 0x00007f38b9616167 in QETWidget::translateMouseEvent (this=0x83eac0, event=0x7fffc27f7450) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:3976
#36 0x00007f38b9613cc3 in QApplication::x11ProcessEvent (this=0x7fffc27f7860, event=0x7fffc27f7450) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:3038
#37 0x00007f38b9643441 in x11EventSourceDispatch (s=0x61ac70, callback=0, user_data=0x0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:142
#38 0x00007f38b37190f2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#39 0x00007f38b371c396 in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00007f38b371c82f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#41 0x00007f38b87796b8 in QEventDispatcherGlib::processEvents (this=0x616a80, flags=@0x7fffc27f76f0) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:319
#42 0x00007f38b9642b27 in QGuiEventDispatcherGlib::processEvents (this=0x616a80, flags=@0x7fffc27f7750) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:198
#43 0x00007f38b8741070 in QEventLoop::processEvents (this=0x7fffc27f7800, flags=@0x7fffc27f77b0) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:143
#44 0x00007f38b874126c in QEventLoop::exec (this=0x7fffc27f7800, flags=@0x7fffc27f7810) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:194
#45 0x00007f38b874505b in QCoreApplication::exec () at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:845
#46 0x00007f38b958a3a4 in QApplication::exec () at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3331
#47 0x00007f38ba3dcee9 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/lemma/kde/trunk/source/koffice/kspread/part/Main.cpp:42
#48 0x00007f38b7447466 in __libc_start_main () from /lib/libc.so.6
#49 0x0000000000400729 in _start ()
Comment 2 Dario Andres 2009-09-30 17:21:45 UTC
*** Bug 208995 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Sauer 2010-01-26 14:50:51 UTC
That bug was fixed and the rfix was backported to the 2.1 branch with r1067044. Thanks for the feedback.
Comment 4 Sebastian Sauer 2010-01-26 15:05:16 UTC
*** Bug 187481 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Sauer 2010-01-26 15:05:31 UTC
*** Bug 223233 has been marked as a duplicate of this bug. ***