Bug 471384 - Labplot crashes when saving simple data
Summary: Labplot crashes when saving simple data
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.10.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-06-23 13:18 UTC by Vit Pelcak
Modified: 2024-02-24 09:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.10.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2023-06-23 13:18:44 UTC
Application: labplot2 (2.10.0)

Qt Version: 5.15.10
Frameworks Version: 5.107.0
Operating System: Linux 6.3.7-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
I have started Labplot and saved the stuff immediatelly.
It crashed right away.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: LabPlot (labplot2), signal: Segmentation fault

[KCrash Handler]
#4  0x0000559b6952203b in ProjectDock::setProject (this=0x0, project=0x559b6c055fe0) at /usr/src/debug/labplot-2.10.0/src/kdefrontend/dockwidgets/ProjectDock.cpp:45
#5  0x0000559b694ef529 in MainWin::save (this=this@entry=0x559b6ba7c230, fileName=...) at /usr/src/debug/labplot-2.10.0/src/kdefrontend/MainWin.cpp:1753
#6  0x0000559b694efa25 in MainWin::saveProjectAs (this=0x559b6ba7c230) at /usr/src/debug/labplot-2.10.0/src/kdefrontend/MainWin.cpp:1684
#7  0x00007f91ccf257a2 in QtPrivate::QSlotObjectBase::call (a=0x7fff08125de0, r=0x559b6ba7c230, this=0x559b6bd53ca0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false> (sender=0x559b6bd53dc0, signal_index=4, argv=0x7fff08125de0) at kernel/qobject.cpp:3925
#9  0x00007f91ccf1e40f in QMetaObject::activate (sender=sender@entry=0x559b6bd53dc0, m=m@entry=0x7f91ce0bacc0, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff08125de0) at kernel/qobject.cpp:3985
#10 0x00007f91cdb9e8b2 in QAction::triggered (this=this@entry=0x559b6bd53dc0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#11 0x00007f91cdba142f in QAction::activate (this=0x559b6bd53dc0, event=<optimized out>) at kernel/qaction.cpp:1161
#12 0x00007f91cdd25ef2 in QMenuPrivate::activateCausedStack (this=this@entry=0x559b6be77ff0, causedStack=..., action=action@entry=0x559b6bd53dc0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1384
#13 0x00007f91cdd2dd23 in QMenuPrivate::activateAction (this=0x559b6be77ff0, action=0x559b6bd53dc0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1461
#14 0x00007f91cdbe6d68 in QWidget::event (this=0x559b6bbb09a0, event=0x7fff081263d0) at kernel/qwidget.cpp:9045
#15 0x00007f91cdba519e in QApplicationPrivate::notify_helper (this=this@entry=0x559b6b797b20, receiver=receiver@entry=0x559b6bbb09a0, e=e@entry=0x7fff081263d0) at kernel/qapplication.cpp:3640
#16 0x00007f91cdbad5cf in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff081263d0) at kernel/qapplication.cpp:3084
#17 0x00007f91cceed4f8 in QCoreApplication::notifyInternal2 (receiver=0x559b6bbb09a0, event=0x7fff081263d0) at kernel/qcoreapplication.cpp:1064
#18 0x00007f91cceed6ce in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#19 0x00007f91cdbab92e in QApplicationPrivate::sendMouseEvent (receiver=0x559b6bbb09a0, event=event@entry=0x7fff081263d0, alienWidget=<optimized out>, nativeWidget=0x559b6bbb09a0, buttonDown=buttonDown@entry=0x7f91ce0f2330 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#20 0x00007f91cdc002ca in QWidgetWindow::handleMouseEvent (this=this@entry=0x559b6bcfb710, event=event@entry=0x7fff08126680) at kernel/qwidgetwindow.cpp:580
#21 0x00007f91cdc02d1f in QWidgetWindow::event (this=0x559b6bcfb710, event=0x7fff08126680) at kernel/qwidgetwindow.cpp:300
#22 0x00007f91cdba519e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x559b6bcfb710, e=0x7fff08126680) at kernel/qapplication.cpp:3640
#23 0x00007f91cceed4f8 in QCoreApplication::notifyInternal2 (receiver=0x559b6bcfb710, event=0x7fff08126680) at kernel/qcoreapplication.cpp:1064
#24 0x00007f91cceed6ce in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#25 0x00007f91cd37d12b in QGuiApplicationPrivate::processMouseEvent (e=0x559b6c508fa0) at kernel/qguiapplication.cpp:2285
#26 0x00007f91cd3503ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#27 0x00007f91c791b1aa in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#28 0x00007f91caa7d8d8 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f91caa7dce8 in ?? () from /lib64/libglib-2.0.so.0
#30 0x00007f91caa7dd7c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f91ccf46496 in QEventDispatcherGlib::processEvents (this=0x559b6b8ee250, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007f91cceebf8b in QEventLoop::exec (this=this@entry=0x7fff081269b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#33 0x00007f91ccef4420 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#34 0x00007f91cd37059c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#35 0x00007f91cdba5115 in QApplication::exec () at kernel/qapplication.cpp:2832
#36 0x0000559b694df733 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/labplot-2.10.0/src/kdefrontend/LabPlot.cpp:236
[Inferior 1 (process 23729) detached]

Reported using DrKonqi
Comment 1 Alexander Semke 2023-06-25 10:24:29 UTC
(In reply to Vit Pelcak from comment #0)
> Application: labplot2 (2.10.0)
> 
> Qt Version: 5.15.10
> Frameworks Version: 5.107.0
> Operating System: Linux 6.3.7-1-default x86_64
> Windowing System: X11
> Distribution: "openSUSE Tumbleweed"
> DrKonqi: 5.27.6 [KCrashBackend]
> 
> -- Information about the crash:
> I have started Labplot and saved the stuff immediatelly.
> It crashed right away.

I cannot reproduce this problem and by looking at your backtrace and into the code I don't understand at the moment how this can happen.  What do you mean with "saved the stuff immediately"? You started labplot, created a new project and then saved this new and empty project?
Comment 2 Vit Pelcak 2023-06-26 09:52:06 UTC
Yes. No major changes done. Crashed on every attempt.
Comment 3 Martin 2023-06-27 20:10:36 UTC
Can you say us which steps you did to get it crashed.

1) Starting Labplot
2) Doing something ...
...
last) Saving project
Comment 4 Vit Pelcak 2023-06-28 07:55:43 UTC
(In reply to Martin from comment #3)
> Can you say us which steps you did to get it crashed.
> 
> 1) Starting Labplot
> 2) Doing something ...
> ...
> last) Saving project

Just to be sure, I deleted ~/.config/labplot2rc first

1) Run Labplot2 (with Czech localization)
2) File -> Save as... test (name of the file)

That's all. It crashed immediately.

Nothing else.
It happens to me all the time.
Comment 5 Martin 2023-06-28 08:08:43 UTC
This issue was fixed in the development version (a47862d3ea3394063a276fc96e8864c8bc895fa4). The changes must be backported to 2.10.0 release
Comment 6 Stefan Gerlach 2023-06-28 09:46:16 UTC
The fix is now in 2.10.1.