Bug 365238

Summary: Calligra Sheets Crashes when adding chart
Product: [Applications] calligrasheets Reporter: Rodrigo Borges <rodrigoesborges>
Component: generalAssignee: Calligra Sheets (KSpread) Bugs <calligra-sheets-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: dag.andersen
Priority: NOR Keywords: drkonqi
Version First Reported In: 2.9.11   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rodrigo Borges 2016-07-08 14:34:52 UTC
Application: calligrasheets (2.9.11)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 4.2.0-banana08-60-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
Application crashed when trying to add a chart, after having selected first row as legend, first column as legend

-- Backtrace:
Application: Calligra Sheets (calligrasheets), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f9d1fad1616 in QPen::QPen(QPen const&) () at /usr/lib64/libQtGui.so.4
#6  0x00007f9d00c5a609 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#7  0x00007f9d00c8f880 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#8  0x00007f9d00c90024 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#9  0x00007f9d00c90e93 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#10 0x00007f9d00c88ef3 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#11 0x00007f9d00c89c35 in  () at /usr/lib64/kde4/calligra_shape_chart.so
#12 0x00007f9d207f81fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#13 0x00007f9d207fc59e in QObject::event(QEvent*) () at /usr/lib64/libQtCore.so.4
#14 0x00007f9d1f96076c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#15 0x00007f9d1f966cad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#16 0x00007f9d0bdf8e37 in KoApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkomain.so.14
#17 0x00007f9d207e42ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#18 0x00007f9d207e757d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQtCore.so.4
#19 0x00007f9d208118fe in  () at /usr/lib64/libQtCore.so.4
#20 0x00007f9d1c2c0a04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007f9d1c2c0c48 in  () at /usr/lib64/libglib-2.0.so.0
#22 0x00007f9d1c2c0cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f9d208110be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#24 0x00007f9d1f9fd676 in  () at /usr/lib64/libQtGui.so.4
#25 0x00007f9d207e2e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#26 0x00007f9d207e3165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#27 0x00007f9d207e85b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#28 0x00007f9d0c0a57a5 in kdemain () at /usr/lib64/libkdeinit4_calligrasheets.so
#29 0x0000000000408815 in _start ()

The reporter indicates this bug may be a duplicate of or related to bug 322162, bug 311177, bug 322161, bug 360939.

Reported using DrKonqi
Comment 1 Dag Andersen 2016-11-21 14:08:19 UTC
Confirmed on KDE Neon 5.8.3 calligrasheets 3.0 Alpha
Comment 2 Dag Andersen 2016-11-23 08:14:40 UTC
Git commit a43eeed42b629cb84ce2167c5e70ae1ee580ce68 by Dag Andersen.
Committed on 23/11/2016 at 08:14.
Pushed by danders into branch 'master'.

ChartShape: Fix crash due to accessing stale pointers

Summary:
Some data pointers where not reset when shape selection changed,
thus accessing data from privously selected shape.

Test:
Add a chart to eg sheets
Undo
Add another shape to chart

Result before: crash
After: No crash

This may have bearing on:
but needs more testing.

Reviewers: mecir, boemann

Reviewed By: boemann

Tags: #kexi, #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D3455

M  +9    -0    plugins/chartshape/ChartConfigWidget.cpp

https://commits.kde.org/calligra/a43eeed42b629cb84ce2167c5e70ae1ee580ce68
Comment 3 Justin Zobel 2020-12-17 05:23:55 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 4 Bug Janitor Service 2021-01-01 04:35:40 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 5 Bug Janitor Service 2021-01-16 04:34:49 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!