Bug 479859 - select-and-drag text crashes some or all non-KDE apps in wayland
Summary: select-and-drag text crashes some or all non-KDE apps in wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.27.10
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 17:00 UTC by Kai Krakow
Modified: 2024-01-17 15:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2024-01-15 17:00:21 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Browse a web page in Chrome
2. Select text with the mouse
3. Try to drag the selected text across the screen

OBSERVED RESULT

The desktop freezes for a short amount of time ramping up IO, then the application (source of the drag operation) crashes.

EXPECTED RESULT

The application should not crash, obviously. But also, I should be able to drag the text to another window, or drag the text from one input field to another.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux 2.14, kernel 6.6.9, Wayland
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION

If this happens by accident, unsaved work gets lost thus raising bug priority.

Also, this or a similar crash happens when dragging the last open Chrome tab out of its window.

Apps that actually drag text as text seem to not be affected, e.g. I could drag text from Sublime Text to KWrite. So this may be limited to the Chrome-family of browsers and Electron apps. Or there is an issue with multi-format clipboard contents, e.g. dragging text from the browser can insert HTML and plain text, or dragging a browser tab can insert the tab in another browser or the URL in a text editor.

Chrome creates a crashdump with SIGTRAP, but there's no backtrace.

No such crash seems to occur with X11.
Comment 1 Nate Graham 2024-01-17 15:44:58 UTC
Can't reproduce in Plasma 6, where there have been a lot of Wayland improvements. Let's assume it's fixed there for now, but feel free to re-open this if you find that it still happens after upgrading to Plasma 6. Thanks!