Bug 391383 - Dragging entries in the K menu causes an immediate crash
Summary: Dragging entries in the K menu causes an immediate crash
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: 5.20.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2018-03-04 17:19 UTC by Vadim
Modified: 2021-01-07 15:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim 2018-03-04 17:19:41 UTC
Instructions:

1. Click the menu
2. Pick any menu entry under Favorites
3. Click and drag

Result: plasmashell immediately crashes, taskbar goes away until it's automatically restarted. 


Backtrace:

Thread 1 "plasmashell" received signal SIGSEGV, Segmentation fault.
QDrag::mimeData (this=0x3430630000000000) at kernel/qdrag.cpp:154
154         return d->data;
(gdb) bt
#0  0x00007ffff0e591e0 in QDrag::mimeData() const (this=0x3430630000000000) at kernel/qdrag.cpp:154
#1  0x00007ffff0e5c7cb in QDragManager::QDragManager() (this=0x55a44f0) at kernel/qdnd.cpp:81
#2  0x00007ffff0e5c87f in QDragManager::self() () at kernel/qdnd.cpp:93
#3  0x00007ffff0e5929c in QDrag::exec(QFlags<Qt::DropAction>, Qt::DropAction) (this=0x88ecdb0, supportedActions=..., defaultDropAction=<optimized out>) at kernel/qdrag.cpp:284
#4  0x00007fff3fc25ddd in DragHelper::doDrag(QQuickItem*, QUrl const&, QIcon const&, QString const&, QString const&) const ()
    at /home/vadim/kde/usr/lib64/qml/org/kde/plasma/private/kicker/libkickerplugin.so
#5  0x00007fff3fc61d06 in DragHelper::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /home/vadim/kde/usr/lib64/qml/org/kde/plasma/private/kicker/libkickerplugin.so
#6  0x00007ffff045b26a in QObject::event(QEvent*) (this=0x27fe0d0, e=<optimized out>) at kernel/qobject.cpp:1246
#7  0x00007ffff156492c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x6eda80, receiver=receiver@entry=0x27fe0d0, e=e@entry=0x55a5070)
    at kernel/qapplication.cpp:3722
#8  0x00007ffff156c174 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd740, receiver=0x27fe0d0, e=0x55a5070) at kernel/qapplication.cpp:3481
#9  0x00007ffff0431be7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x27fe0d0, event=event@entry=0x55a5070) at kernel/qcoreapplication.cpp:1016
#10 0x00007ffff043436b in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x55a5070, receiver=<optimized out>) at kernel/qcoreapplication.h:233
#11 0x00007ffff043436b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x6e3090)
    at kernel/qcoreapplication.cpp:1676
#12 0x00007ffff0434888 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1530
#13 0x00007ffff0482e43 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x7714d0) at kernel/qeventdispatcher_glib.cpp:276
#14 0x00007fffe7dedb77 in g_main_dispatch (context=0x744c00) at gmain.c:3142
#15 0x00007fffe7dedb77 in g_main_context_dispatch (context=context@entry=0x744c00) at gmain.c:3795
#16 0x00007fffe7dedf20 in g_main_context_iterate (context=context@entry=0x744c00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3868
#17 0x00007fffe7dedfac in g_main_context_iteration (context=0x744c00, may_block=may_block@entry=1) at gmain.c:3929
#18 0x00007ffff0482c2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x764720, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x00007ffff043096a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffd610, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#20 0x00007ffff0439094 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1289
#21 0x0000000000421a72 in main ()
Comment 1 Alexander Mentyu 2018-03-09 12:25:47 UTC
Can't reproduce in:

Plasma: 5.12.2
Apps: 17.12.2
Frameworks: 5.43.0
Qt: 5.10.1
Kernel: 4.14.22-1-MANJARO
OS: Netrunner Rolling

Maybe there are some peculiarities installed or some options?
Comment 2 Justin Zobel 2020-11-20 06:41:46 UTC
Confirmed on 5.20.3 Plasma with KF 5.75.0 and Qt 5.15.1.

Dragged Discover from Favorites to desktop and the mouse cursor disappeared, next moment my session is killed and I'm back at SDDM.
Comment 3 Nate Graham 2021-01-07 15:42:05 UTC
Git commit 59985c6ed75ac9d63aa92785f913fb6943671f03 by Nate Graham, on behalf of Mikel Johnson.
Committed on 07/01/2021 at 15:41.
Pushed by ngraham into branch 'master'.

Kickoff redesign

This commit completely overhauls Kickoff's user interface!

Original design (UI/UX) discussion
----------------------------------
- https://phabricator.kde.org/T12192
- https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/186

Features / issues
-----------------
New:
- Double pane UI
- Both keyboard and mouse navigation have been overhauled
- Power/Session actions are available in the footer
- Improved RTL support
- Grid view
- All applications view
- Accessibility

Screenshots / Videos
--------------------
Apps

![image](/uploads/b44c0e36d7687b22f9df563ed19aad19/image.png)

Places

![image](/uploads/93ad74bd8e037dc70d4927eb20a8ec29/image.png)

Search

![image](/uploads/f77da9df55bd1f9e75c0b0de96eebfd8/image.png)

Accessibility

https://youtu.be/Vqah3yL5h_E

Bugs fixed
----------
Related: bug 357379, bug 369159, bug 369405, bug 378815, bug 387510, bug 387797, bug 392005, bug 393401, bug 394924, bug 398234, bug 398279, bug 398349, bug 398350, bug 398352, bug 398353, bug 405674, bug 408313, bug 410018, bug 412090, bug 415392, bug 416423, bug 419169, bug 423160, bug 425970, bug 426329, bug 427846, bug 428297

FIXED-IN: 5.21

@teams/vdg

A  +7    -0    applets/kickoff/ABOUT DESIGN CHANGES
D  +0    -71   applets/kickoff/DESIGN-GOALS
M  +6    -6    applets/kickoff/package/contents/config/config.qml
M  +45   -39   applets/kickoff/package/contents/config/main.xml
M  +9    -16   applets/kickoff/package/contents/ui/ActionMenu.qml
A  +144  -0    applets/kickoff/package/contents/ui/ApplicationsGroupView.qml     [License: GPL (v2+)]
M  +128  -46   applets/kickoff/package/contents/ui/ApplicationsView.qml
M  +12   -12   applets/kickoff/package/contents/ui/BaseView.qml
M  +13   -5    applets/kickoff/package/contents/ui/Breadcrumb.qml
M  +0    -2    applets/kickoff/package/contents/ui/ComputerView.qml
D  +0    -227  applets/kickoff/package/contents/ui/ConfigButtons.qml
M  +72   -18   applets/kickoff/package/contents/ui/ConfigGeneral.qml
C  +29   -43   applets/kickoff/package/contents/ui/FavoritesGridView.qml [from: applets/kickoff/package/contents/ui/FavoritesView.qml - 061% similarity]
M  +14   -24   applets/kickoff/package/contents/ui/FavoritesView.qml
R  +2    -3    applets/kickoff/package/contents/ui/FrequentlyUsedView.qml [from: applets/kickoff/package/contents/ui/OftenUsedView.qml - 089% similarity]
M  +599  -451  applets/kickoff/package/contents/ui/FullRepresentation.qml
M  +117  -64   applets/kickoff/package/contents/ui/Header.qml
M  +8    -9    applets/kickoff/package/contents/ui/Kickoff.qml
D  +0    -67   applets/kickoff/package/contents/ui/KickoffButton.qml
D  +0    -60   applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml
A  +106  -0    applets/kickoff/package/contents/ui/KickoffGridItem.qml     [License: GPL (v2+)]
A  +345  -0    applets/kickoff/package/contents/ui/KickoffGridView.qml     [License: GPL (v2+)]
D  +0    -31   applets/kickoff/package/contents/ui/KickoffHighlight.qml
M  +45   -40   applets/kickoff/package/contents/ui/KickoffItem.qml
M  +184  -26   applets/kickoff/package/contents/ui/KickoffListView.qml
A  +145  -0    applets/kickoff/package/contents/ui/LeaveButtons.qml     [License: GPL (v2+)]
R  +13   -11   applets/kickoff/package/contents/ui/PlacesView.qml [from: applets/kickoff/package/contents/ui/LeaveView.qml - 065% similarity]
M  +0    -1    applets/kickoff/package/contents/ui/RecentlyUsedView.qml
M  +25   -13   applets/kickoff/package/contents/ui/SearchView.qml
M  +4    -2    applets/kickoff/package/contents/ui/SectionDelegate.qml
M  +2    -2    applets/kickoff/package/contents/ui/code/tools.js
M  +3    -3    applets/kickoff/package/metadata.desktop

https://invent.kde.org/plasma/plasma-desktop/commit/59985c6ed75ac9d63aa92785f913fb6943671f03