Bug 281670 - Crash on saving ( Calligra::Tables::RTree<Calligra::Tables::SharedSubStyle>::intersectingPairs )
Summary: Crash on saving ( Calligra::Tables::RTree<Calligra::Tables::SharedSubStyle>::...
Status: RESOLVED WORKSFORME
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: unspecified Linux
: VHI crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
: 263414 264602 272148 276852 277812 285372 288205 291908 293508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-09 09:05 UTC by LukasT
Modified: 2021-01-16 04:33 UTC (History)
9 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 LukasT 2011-09-09 09:05:21 UTC
Application: calligratables (2.4 Alpha 4)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.3
Operating System: Linux 2.6.35.13-92.fc14.i686.PAE i686

-- Information about the crash:
- What I was doing when the application crashed:
File -> Save -> Ok -> Crash

I tried to kocovert file.xls out.ods and that crashed too.

The crash can be reproduced every time.

-- Backtrace:
Application: Tables (calligratables), signal: Segmentation fault
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0x0169f60b in Calligra::Tables::RTree<Calligra::Tables::SharedSubStyle>::intersectingPairs (this=0x8ec9944, rect=...) at /home/lukas/src/calligra/tables/RTree.h:530
#9  0x01698bd9 in Calligra::Tables::StyleStorage::saveOdfCreateDefaultStyles (this=0x8ec9520, maxCols=@0xbfa7024c, maxRows=@0xbfa700fc, tableContext=...) at /home/lukas/src/calligra/tables/StyleStorage.cpp:313
#10 0x01667eab in Calligra::Tables::Sheet::saveOdfColRowCell (this=0x8ec60d8, xmlWriter=..., mainStyles=..., maxCols=1, maxRows=1, tableContext=...) at /home/lukas/src/calligra/tables/Sheet.cpp:2574
#11 0x0166772a in Calligra::Tables::Sheet::saveOdf (this=0x8ec60d8, tableContext=...) at /home/lukas/src/calligra/tables/Sheet.cpp:2513
#12 0x0163941d in Calligra::Tables::Map::saveOdf (this=0x8d17ac8, xmlWriter=..., savingContext=...) at /home/lukas/src/calligra/tables/Map.cpp:432
#13 0x01622490 in Calligra::Tables::DocBase::saveOdfHelper (this=0x8ceffd0, documentContext=..., saveFlag=Calligra::Tables::DocBase::SaveAll) at /home/lukas/src/calligra/tables/DocBase.cpp:158
#14 0x01ada4fd in Calligra::Tables::Doc::saveOdfHelper (this=0x8ceffd0, documentContext=..., saveFlag=Calligra::Tables::DocBase::SaveAll, plainText=0x0) at /home/lukas/src/calligra/tables/part/Doc.cpp:649
#15 0x01622372 in Calligra::Tables::DocBase::saveOdf (this=0x8ceffd0, documentContext=...) at /home/lukas/src/calligra/tables/DocBase.cpp:132
#16 0x001ce316 in KoDocument::saveNativeFormatODF (this=0x8ceffd0, store=0x99801d0, mimeType=...) at /home/lukas/src/calligra/libs/main/KoDocument.cpp:884
#17 0x001ce18b in KoDocument::saveNativeFormat (this=0x8ceffd0, file=...) at /home/lukas/src/calligra/libs/main/KoDocument.cpp:868
#18 0x001ccc21 in KoDocument::saveFile (this=0x8ceffd0) at /home/lukas/src/calligra/libs/main/KoDocument.cpp:536
#19 0x023e0357 in KParts::ReadWritePart::save() () from /usr/lib/libkparts.so.4
#20 0x023df58d in KParts::ReadWritePart::saveAs(KUrl const&) () from /usr/lib/libkparts.so.4
#21 0x001f945b in KoMainWindow::saveDocument (this=0x8d3bc18, saveas=true, silent=false) at /home/lukas/src/calligra/libs/main/KoMainWindow.cpp:981
#22 0x001faa98 in KoMainWindow::slotFileSaveAs (this=0x8d3bc18) at /home/lukas/src/calligra/libs/main/KoMainWindow.cpp:1257
#23 0x001ff152 in KoMainWindow::qt_metacall (this=0x8d3bc18, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfa70c88) at /home/lukas/src/build/calligra/libs/main/KoMainWindow.moc:149
#24 0x0326079b in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#25 0x0326fcc7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#26 0x05cce2ea in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#27 0x05cce56b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#28 0x0616f1ad in ?? () from /usr/lib/libQtGui.so.4
#29 0x06175d03 in ?? () from /usr/lib/libQtGui.so.4
#30 0x06176bee in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#31 0x01130575 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#32 0x05d2ee0b in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#33 0x061770b7 in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#34 0x05cd558c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x05cdac4d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x0104d17b in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#37 0x03259f63 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#38 0x05cd6518 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#39 0x05d602cc in ?? () from /usr/lib/libQtGui.so.4
#40 0x05d5e4f7 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#41 0x05d89590 in ?? () from /usr/lib/libQtGui.so.4
#42 0x01ee8192 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0x01ee8978 in ?? () from /lib/libglib-2.0.so.0
#44 0x01ee8c35 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#45 0x03287cad in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0x05d89206 in ?? () from /usr/lib/libQtGui.so.4
#47 0x032590fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0x032593aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0x0325df57 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#50 0x05cd3398 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#51 0x003fe3fb in kdemain (argc=2, argv=0xbfa71ec4) at /home/lukas/src/calligra/tables/part/Main.cpp:43
#52 0x08048789 in main (argc=2, argv=0xbfa71ec4) at /home/lukas/src/build/calligra/tables/calligratables_dummy.cpp:3

Reported using DrKonqi
Comment 1 Sebastian Sauer 2011-09-23 16:44:03 UTC
related bug-reports are bug 264602 and bug 263414
Comment 2 Sebastian Sauer 2011-12-05 02:53:22 UTC
*** Bug 264602 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Sauer 2011-12-05 02:53:34 UTC
*** Bug 263414 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Sauer 2011-12-05 02:53:54 UTC
*** Bug 288205 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Sauer 2011-12-05 02:56:12 UTC
I start to believe that following is the reason for the crash;

diff --git a/tables/RTree.h b/tables/RTree.h
index 9d57844..c2ca1d9 100644
--- a/tables/RTree.h
+++ b/tables/RTree.h
@@ -951,6 +951,9 @@ void RTree<T>::LeafNode::operator=(const LeafNode& other)
     this->m_level = other.m_level;
     this->m_data = other.m_data;
     this->m_dataIds = other.m_dataIds;
+
+    //TODO copy m_root
+    //TODO copy m_leafMap
 }

So, we miss to create (deep-)copies of m_root and m_leafMap what results in us still dealing with the the old Node* pointers what then leads later to a crash if they got deleted meanwhile (dangling pointers).
Comment 6 Jos van den Oever 2011-12-06 18:39:08 UTC
This bug is causing fluctuations while testing of loading xls and saving to ods.
So debugging this with the xls files from calligratests might help.

http://158.36.191.251:8080/viewType.html?tab=buildTypeStatusDiv&buildTypeId=bt7
Comment 7 Sebastian Sauer 2011-12-14 04:45:31 UTC
*** Bug 285372 has been marked as a duplicate of this bug. ***
Comment 8 Sebastian Sauer 2011-12-15 15:55:21 UTC
*** Bug 277812 has been marked as a duplicate of this bug. ***
Comment 9 Sebastian Sauer 2011-12-15 15:56:14 UTC
*** Bug 276852 has been marked as a duplicate of this bug. ***
Comment 10 Sebastian Sauer 2012-01-24 13:36:13 UTC
*** Bug 291908 has been marked as a duplicate of this bug. ***
Comment 11 Marijn Kruisselbrink 2012-04-13 18:29:40 UTC
0ea21080b8d0df314aa76ab14bec56d7e8e1ffef fixed one crash related to saving, after loading an ods or xls file that doesn't contain any cell styles (or actually, it might be enough for the document to just not contain any conditional cell styles, which would make the fix help in a lot more cases)
Comment 12 Jekyll Wu 2013-03-04 04:11:41 UTC
*** Bug 293508 has been marked as a duplicate of this bug. ***
Comment 13 Jekyll Wu 2013-03-04 04:22:10 UTC
*** Bug 272148 has been marked as a duplicate of this bug. ***
Comment 14 Justin Zobel 2020-12-17 05:21:26 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 15 Bug Janitor Service 2021-01-01 04:34:34 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 16 Bug Janitor Service 2021-01-16 04:33:58 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!