Bug 479859

Summary: select-and-drag text crashes some or all non-KDE apps in wayland
Product: [Plasma] kwin Reporter: Kai Krakow <kai>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: nate
Priority: NOR    
Version First Reported In: 5.27.10   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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!