Bug 461923 - (Wayland) Konsole crashes when dropping a file onto the terminal
Summary: (Wayland) Konsole crashes when dropping a file onto the terminal
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.08.3
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-11-16 21:23 UTC by Mia Herkt
Modified: 2023-01-28 11:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mia Herkt 2022-11-16 21:23:31 UTC
Application: konsole (22.08.3)

Qt Version: 5.15.7
Frameworks Version: 5.99.0
Operating System: Linux 6.0.8-1-preempt x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.26.3 [KCrashBackend]

-- Information about the crash:
In a Wayland (Sway) session, dragging and dropping a file from another application (such as Dolphin or Gwenview) crashes Konsole.

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fa0172101bd in Konsole::TerminalDisplay::dropEvent(QDropEvent*) () from /lib64/libkonsoleprivate.so.1
#5  0x00007fa0169e6c38 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#6  0x00007fa0169a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#7  0x00007fa0169ae306 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#8  0x00007fa015cdc128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#9  0x00007fa016a02240 in ?? () from /lib64/libQt5Widgets.so.5
#10 0x00007fa016a03127 in ?? () from /lib64/libQt5Widgets.so.5
#11 0x00007fa0169a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#12 0x00007fa015cdc128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#13 0x00007fa01617d8a8 in QGuiApplicationPrivate::processDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>) () from /lib64/libQt5Gui.so.5
#14 0x00007fa01614e8cc in QWindowSystemInterface::handleDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>) () from /lib64/libQt5Gui.so.5
#15 0x00007fa013c14a02 in ?? () from /lib64/libQt5WaylandClient.so.5
#16 0x00007fa012e6d872 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#17 0x00007fa012e6a210 in ffi_call_int (cif=<optimized out>, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=<optimized out>) at ../src/x86/ffi64.c:673
#18 0x00007fa012e6ce76 in ffi_call (cif=cif@entry=0x7ffe79239150, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffe79239220) at ../src/x86/ffi64.c:710
#19 0x00007fa014545a33 in wl_closure_invoke (closure=closure@entry=0x7f9fe0006390, target=<optimized out>, target@entry=0x557b0e3866c0, opcode=opcode@entry=4, data=<optimized out>, flags=1) at ../src/connection.c:1025
#20 0x00007fa0145461b3 in dispatch_event (display=0x557b0e1e7bd0, queue=<optimized out>) at ../src/wayland-client.c:1595
#21 0x00007fa014546374 in dispatch_queue (queue=0x557b0e1e7ca0, display=0x557b0e1e7bd0) at ../src/wayland-client.c:1741
#22 wl_display_dispatch_queue_pending (display=0x557b0e1e7bd0, queue=0x557b0e1e7ca0) at ../src/wayland-client.c:1983
#23 0x00007fa013bf4972 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /lib64/libQt5WaylandClient.so.5
#24 0x00007fa015d07c40 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#25 0x00007fa0169a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#26 0x00007fa015cdc128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#27 0x00007fa015cdf0c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#28 0x00007fa015d34353 in ?? () from /lib64/libQt5Core.so.5
#29 0x00007fa01406aa90 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#30 0x00007fa01406ae48 in ?? () from /lib64/libglib-2.0.so.0
#31 0x00007fa01406aedc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#32 0x00007fa015d33b56 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#33 0x00007fa015cdab9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#34 0x00007fa015ce2d06 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#35 0x0000557b0d11d165 in ?? ()
#36 0x00007fa01542c5b0 in __libc_start_call_main () from /lib64/libc.so.6
#37 0x00007fa01542c679 in __libc_start_main_impl () from /lib64/libc.so.6
#38 0x0000557b0d11d9f5 in ?? ()
[Inferior 1 (process 10002) detached]

Reported using DrKonqi
Comment 1 Kurt Hindenburg 2023-01-27 18:13:36 UTC
I can't reproduce w/ 22.08 or master under Wayland Neon 22.04.  Out of curiosity,  what are you doing copy/link/move and what type of file?


KDE Frameworks 
Version 5.102.0

Qt 
Version 5.15.8 (built against 5.15.8)
Comment 2 Mia Herkt 2023-01-28 11:03:00 UTC
(In reply to Kurt Hindenburg from comment #1)
> I can't reproduce w/ 22.08 or master under Wayland Neon 22.04.  Out of
> curiosity,  what are you doing copy/link/move and what type of file?

Maybe it only happens with Sway and perhaps other wlroots compositors then? The type doesn’t seem to matter; I get that crash with files of any type as well as directories and web URLs—but not text snippets. When dropping onto Konsole, there’s usually no action context menu (I think it should paste the location?), so copy/link/move doesn’t apply here.

But notably, it does *not* crash when the dropped item comes from the *same process*, such as when dropping files onto konsolepart in Dolphin.