Bug 449721 - Crash when box plot is duplicated
Summary: Crash when box plot is duplicated
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (other bugs)
Version First Reported In: latest
Platform: Flatpak Linux
: NOR crash
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-06 22:15 UTC by waterlubber
Modified: 2022-02-10 21:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description waterlubber 2022-02-06 22:15:50 UTC
SUMMARY
LabPlot2 crashes when I attempt to duplicate a "box plot" in an existing Worksheet in version 2.9.0 27ef7ef. This occurs if I use the "Duplicate Here" option or the copy and paste options, and there is no "crash detected" window.

It should be noted that I am using the Flatpak nightly build, and unfortunately I haven't figured out how to get debug traces out of it. (I'm not that familiar with Flatpak nor gdb, although if the bug is proving hard to reproduce I could attempt to set up an environment for compiling KDE directly.) 

STEPS TO REPRODUCE
1. Create a spreadsheet with some arbitrary data. I used two columns of about seven data points, but it also occurs with one column.
2. Create a box plot in a new worksheet/plot using the Create Plot tool.
3. Right click on the "Box Plot" that is newly created and select "Duplicate Here." The program should crash to desktop.


OBSERVED RESULT
LabPlot2 crashes instantly with no visible error dialogs.

EXPECTED RESULT
The box plot would be duplicated, allowing me to (for example) color code two sets of data and two box plots differently within the same document. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux x86_64. KDE Flatpak runtime

KDE Plasma Version: KDE Flatpak runtime, system Plasma is 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3 

ADDITIONAL INFORMATION
Development version installed using the instructions here: https://labplot.kde.org/download/
Comment 1 Alexander Semke 2022-02-07 07:57:18 UTC
I can reproduce the issue. Thanks for reporting it. Looking into it now...
Comment 2 Stefan Gerlach 2022-02-10 21:00:48 UTC
Fixed now in commit 31dc0eca.