Bug 459246

Summary: Plasma Wayland crashes when using touchscreen gestures
Product: [Applications] dolphin Reporter: Jason <jason600.groome>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: kfm-devel
Priority: NOR Keywords: drkonqi
Version: 22.08.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash log from Neon Testing

Description Jason 2022-09-17 01:10:58 UTC
Application: dolphin (22.08.1)

Qt Version: 5.15.5
Frameworks Version: 5.98.0
Operating System: Linux 5.18.15-2-sd_resume x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
Starting from KDE 5.25.5, plasma or the application directly under, crashes when using the 3 finger touchscreen gestures for switch desktop, present windows or desktop grid.

This backtrace is from dolphin, but plasma and all other apps tried crash the same way. When plasma crashes, it restarts and looses the bug report, so I used dolphin for the backtrace.

This problem only started with 5.25.5, and only effects wayland with the builtin 3 finger touchscreen gestures. For example, I can switch desktop with the trackpad or keyboard shortcut and it works fine. This bug only effects the 3 finger touchscreen gestures.

Also, everything works fine in X11.

I clean installed to a separate drive (with a new user), the problem persists.

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f89e62f0a23 in QtWaylandClient::QWaylandInputDevice::Touch::touch_frame() () from /lib64/libQt5WaylandClient.so.5
#5  0x00007f89e5a87532 in ?? () from /lib64/libffi.so.8
#6  0x00007f89e5a84210 in ?? () from /lib64/libffi.so.8
#7  0x00007f89e6269a33 in ?? () from /lib64/libwayland-client.so.0
#8  0x00007f89e626a1b3 in ?? () from /lib64/libwayland-client.so.0
#9  0x00007f89e626a374 in wl_display_dispatch_queue_pending () from /lib64/libwayland-client.so.0
#10 0x00007f89e62f457d in QtWaylandClient::QWaylandDisplay::blockingReadEvents() () from /lib64/libQt5WaylandClient.so.5
#11 0x00007f89e62eb029 in QtWaylandClient::QWaylandShmBackingStore::resize(QSize const&) () from /lib64/libQt5WaylandClient.so.5
#12 0x00007f89e62eb259 in QtWaylandClient::QWaylandShmBackingStore::beginPaint(QRegion const&) () from /lib64/libQt5WaylandClient.so.5
#13 0x00007f89e946059f in QBackingStore::beginPaint(QRegion const&) () from /lib64/libQt5Gui.so.5
#14 0x00007f89e99ee42e in ?? () from /lib64/libQt5Widgets.so.5
#15 0x00007f89e9a1ef28 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f89ea57f839 in KXmlGuiWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#17 0x00007f89e99dd41e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007f89e8d66f88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#19 0x00007f89e8d69f21 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#20 0x00007f89e9d0db63 in ?? () from /lib64/libQt5Widgets.so.5
#21 0x00007f89e8d92730 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#22 0x00007f89e99dd41e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f89e8d66f88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007f89e8d69f21 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#25 0x00007f89e8dbec03 in ?? () from /lib64/libQt5Core.so.5
#26 0x00007f89e68c5eb0 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#27 0x00007f89e68c6268 in ?? () from /lib64/libglib-2.0.so.0
#28 0x00007f89e68c62fc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x00007f89e8dbe406 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#30 0x00007f89e8d659fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#31 0x00007f89e8d6db66 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#32 0x00005568f911d244 in ?? ()
#33 0x00007f89e86905b0 in __libc_start_call_main () from /lib64/libc.so.6
#34 0x00007f89e8690679 in __libc_start_main_impl () from /lib64/libc.so.6
#35 0x00005568f911d865 in ?? ()
[Inferior 1 (process 4031) detached]

Reported using DrKonqi
Comment 1 Jason 2022-09-17 02:39:36 UTC
Additional info, I tested KDE Neon 20220915 (User Edition) in a VM, with the touchscreen passed through. The same problem happens.
Comment 2 Jason 2022-09-17 04:39:37 UTC
Created attachment 152137 [details]
Crash log from Neon Testing
Comment 3 Jason 2022-09-17 04:41:43 UTC
The above crash log is from Neon Testing 20220916 with the 5.26 beta in a VM with the touchscreen passed through. Same problem.
Comment 4 Jason 2022-09-17 14:50:53 UTC
Fixed in Neon unstable 20220911, updated with discover (to 17th Sept 2022). Tested in a VM with touchscreen passed through.

Thanks guys. Changed status to Resolved/Fixed