Bug 501192 - Labplot crashes when dragging things around in the project tree for the second time
Summary: Labplot crashes when dragging things around in the project tree for the secon...
Status: RESOLVED WORKSFORME
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (other bugs)
Version First Reported In: 2.11.1
Platform: Flatpak Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-07 15:32 UTC by Kat Pavlu
Modified: 2025-06-09 14:54 UTC (History)
1 user (show)

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


Attachments
Video of the crash (606.24 KB, video/mp4)
2025-03-08 19:23 UTC, Kat Pavlu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kat Pavlu 2025-03-07 15:32:23 UTC
SUMMARY
Labplot crashes when dragging things around in the project tree for the second time

STEPS TO REPRODUCE
1. Make a projects, add three spreadsheets and a folder
2. drag spreadsheet into folder
3. drag second spreadsheet into folder
4. drag third spreadsheet into folder

OBSERVED RESULT
After the second or third drag operation, Labplot crashes.



SOFTWARE/OS VERSIONS
Operating System: TUXEDO OS 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-109018-tuxedo (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 10 Graphics
Manufacturer: LENOVO
Product Name: 20NKS52L02
System Version: ThinkPad T495

ADDITIONAL INFORMATION
There is a workaround: click the folder name after each drag. This prevents the crash.
Comment 1 disuser 2025-03-08 14:35:24 UTC
(In reply to realkpavel from comment #0)
> SUMMARY
> Labplot crashes when dragging things around in the project tree for the
> second time
> 
> STEPS TO REPRODUCE
> 1. Make a projects, add three spreadsheets and a folder
> 2. drag spreadsheet into folder
> 3. drag second spreadsheet into folder
> 4. drag third spreadsheet into folder
> 
> OBSERVED RESULT
> After the second or third drag operation, Labplot crashes.
> 
> 
> 
> SOFTWARE/OS VERSIONS
> Operating System: TUXEDO OS 
> KDE Plasma Version: 6.3.2
> KDE Frameworks Version: 6.11.0
> Qt Version: 6.8.2
> Kernel Version: 6.11.0-109018-tuxedo (64-bit)
> Graphics Platform: Wayland
> Processors: 8 × AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx
> Memory: 13.5 GiB of RAM
> Graphics Processor: AMD Radeon Vega 10 Graphics
> Manufacturer: LENOVO
> Product Name: 20NKS52L02
> System Version: ThinkPad T495
> 
> ADDITIONAL INFORMATION
> There is a workaround: click the folder name after each drag. This prevents
> the crash.

We have tried unsuccessfully to reproduce this issue on Linux and Windows 11 with the latest stable version of LabPlot.  Can you perhaps attach a screen recording of this behavior?
Comment 2 Kat Pavlu 2025-03-08 19:23:59 UTC
Created attachment 179236 [details]
Video of the crash
Comment 3 Kat Pavlu 2025-03-23 09:17:17 UTC
(In reply to disuser from comment #1)
> (In reply to realkpavel from comment #0)
> > SUMMARY
> > Labplot crashes when dragging things around in the project tree for the
> > second time
> > 
> > STEPS TO REPRODUCE
> > 1. Make a projects, add three spreadsheets and a folder
> > 2. drag spreadsheet into folder
> > 3. drag second spreadsheet into folder
> > 4. drag third spreadsheet into folder
> > 
> > OBSERVED RESULT
> > After the second or third drag operation, Labplot crashes.
> > 
> > 
> > 
> > SOFTWARE/OS VERSIONS
> > Operating System: TUXEDO OS 
> > KDE Plasma Version: 6.3.2
> > KDE Frameworks Version: 6.11.0
> > Qt Version: 6.8.2
> > Kernel Version: 6.11.0-109018-tuxedo (64-bit)
> > Graphics Platform: Wayland
> > Processors: 8 × AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx
> > Memory: 13.5 GiB of RAM
> > Graphics Processor: AMD Radeon Vega 10 Graphics
> > Manufacturer: LENOVO
> > Product Name: 20NKS52L02
> > System Version: ThinkPad T495
> > 
> > ADDITIONAL INFORMATION
> > There is a workaround: click the folder name after each drag. This prevents
> > the crash.
> 
> We have tried unsuccessfully to reproduce this issue on Linux and Windows 11
> with the latest stable version of LabPlot.  Can you perhaps attach a screen
> recording of this behavior?

attached in previous message. Still happens with the vesion on flathub as of now.

Output when ran in terminal is below. I created two spreadsheets (in addition to the default one) ad a folder and dragged two spreadsheets to the folder, like shown in the video.


kat@flint:~$ flatpak run org.kde.labplot2 
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x5ce25bc76720) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x5ce25bc7b470) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x5ce25bc76720) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x5ce25baf9720) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x5ce25bc76720) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x5ce25b1c1c30) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
QAbstractItemModel::endInsertRows:  Invalid index ( 4 , 0 ) in model AspectTreeModel(0x5ce25b827e60)
Comment 4 Kat Pavlu 2025-06-08 08:26:37 UTC
I can no longer reproduce this. I think it is fixed.