| Summary: | Labplot2 crashes when trying to delete text element from xy-curve | ||
|---|---|---|---|
| Product: | [Applications] LabPlot2 | Reporter: | carl.benjamin.dreyer |
| Component: | general | Assignee: | Alexander Semke <alexander.semke> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | 2.9.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/education/labplot/commit/ccaf546ca8b20467f1df0184921ea21984a567a3 | Version Fixed/Implemented In: | 2.10 |
| Sentry Crash Report: | |||
| Attachments: |
data i used in application to make the plot
The stacktrace |
||
|
Description
carl.benjamin.dreyer
2022-06-09 18:06:03 UTC
Created attachment 149582 [details]
The stacktrace
the stacktrace
(In reply to carl.benjamin.dreyer from comment #0) > STEPS TO REPRODUCE > 1. open labplot2 version 2.9.0 > 2. import csv file containing data, to a new spreadsheet, see attachment for > data i used > 3. higlight all columns -> right click -> Plot data -> xy-curve -> plot > 4. Click on "text" from panel bar -> press delete button to delete text > label -> crash happens Thanks for reporting this issue. We'll check it. Just an additional comment in case you're interested or it's helping you to workaround this problem, if you are adding the text label via the toolbar it's added as a child of the worksheet and this is where we crash when you try to delete the label. If you add the label as a child of the plot via plot's context menu, and this is maybe what you also want to have at the end, there is no crash when you try to delete the text label. Git commit ccaf546ca8b20467f1df0184921ea21984a567a3 by Alexander Semke. Committed on 10/07/2022 at 08:20. Pushed by asemke into branch 'master'. [worksheet] don't crash when deleting a text label that was added after worksheet objects (plots and curves) were created via the plot data dialog. When a text label is added after new curves were created via PlotDataDialog, the undo or delete steps for this label lead to a crash in the handling of graphics effects in Qt. The root cause for the crash is not completely clear (maybe related ot labels child ScaledTextItem) so we deactivate the fade-in effect completely for text labels. FIXED-IN: 2.10 M +1 -0 ChangeLog M +14 -5 src/commonfrontend/worksheet/WorksheetView.cpp https://invent.kde.org/education/labplot/commit/ccaf546ca8b20467f1df0184921ea21984a567a3 |