Bug 480682 - Plasmashell crashes when dragging a Application Launcher entry to a taskbar panel
Summary: Plasmashell crashes when dragging a Application Launcher entry to a taskbar p...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 5.93.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-01 14:13 UTC by Antti Savolainen
Modified: 2024-08-10 16:35 UTC (History)
5 users (show)

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


Attachments
Backtrace (20.31 KB, text/plain)
2024-02-01 14:13 UTC, Antti Savolainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2024-02-01 14:13:00 UTC
Created attachment 165436 [details]
Backtrace

SUMMARY
Demonstrative video: https://www.youtube.com/watch?v=2LnSHJc4fZQ
When dragging an application from the start menu to the taskbar, it crashes plasmashell. In this case I have a section separated by the margins separator that I drag the application into.

STEPS TO REPRODUCE
1. Open the Application Launcher
2. Drag any application to a taskbar panel

OBSERVED RESULT
Plasmashell crashes

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Comment 1 Nate Graham 2024-02-01 19:30:38 UTC
Relevant part:

#5  QUrl::isLocalFile (this=0x0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.7.0-beta2/src/corelib/io/qurl.cpp:3433
#6  0x00007d8fe0683149 in ContainmentItem::processMimeData (this=0x57d9b9883200, mimeData=0x57d9bc1f9970, x=294, y=24, dropJob=<optimized out>) at /usr/include/qt6/QtCore/qarraydatapointer.h:120
#7  0x00007d8fe0677d14 in ContainmentItem::qt_metacall (this=0x57d9b9883200, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fff28d68fd8) at /usr/src/debug/libplasma/build/src/plasmaquick/PlasmaQuick_autogen/include/moc_containmentitem.cpp:359

Cannot reproduce with Qt 6.6.0; maybe a Qt 6.7 regression?
Comment 2 Akseli Lahtinen 2024-02-06 11:16:45 UTC
Can't reproduce on my setup

Operating System: Fedora Linux 39
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.0
Kernel Version: 6.7.3-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 3 athaswildwhisper55232.untainted604 2024-02-08 17:18:16 UTC
Can reproduce on my system. 

Krunner is not affected by this:   https://files.catbox.moe/r3u8zw.mp4

NOTES: The action as described by the bug reporter is dragging and dropping an application icon from the Application Launcher to the panel as a **separate and standalone Plasma widget on the panel**, rather than pinning and adding it to the "Icons-only Task Manager".

SYSTEM DETAILS:

Operating System: EndeavourOS 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Kernel Version: 6.6.16-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Celeron® N4100 CPU @ 1.10GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600
System Version: 1.0
Comment 4 athaswildwhisper55232.untainted604 2024-02-08 17:20:51 UTC
I think this bug only occurs on Qt 6.7 and up.
Comment 5 Nate Graham 2024-08-10 16:35:36 UTC
(In reply to athaswildwhisper55232.untainted604 from comment #3)
> NOTES: The action as described by the bug reporter is dragging and dropping
> an application icon from the Application Launcher to the panel as a
> **separate and standalone Plasma widget on the panel**, rather than pinning
> and adding it to the "Icons-only Task Manager".

Yep, that is working for me with current git master and Plasma 6.7.2. Let's assume it got fixed for Plasma 6.2. If anyone affected finds that it's still reproducible for them after upgrading to 6.2, feel free to re-open this Bugzilla ticket. Thanks!