Bug 445881 - Destination application sometimes crashes upon paste
Summary: Destination application sometimes crashes upon paste
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.23.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-21 23:02 UTC by Lars Veldscholte
Modified: 2022-01-11 09:48 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 Lars Veldscholte 2021-11-21 23:02:37 UTC
SUMMARY
Every so often, when pasting something from the clipboard, the destination application crashes. This will happen reliably, until the *source* application is restarted. Only then, (after copying the data again), it can be properly pasted without a crash.

STEPS TO REPRODUCE
1. Copy something
2. Paste it

OBSERVED RESULT
The destination application crashes.

EXPECTED RESULT
The contents of the clipboard is pasted.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 480 Graphics
Comment 1 Nate Graham 2021-11-24 04:20:49 UTC
Can you attach a backtrace of one of these crashes? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 2 Lars Veldscholte 2021-11-28 15:18:59 UTC
Just got one of these crashes again. I tried to copy something from Firefox (running in native Wayland mode) to Kate.

There doesn't seem to be a backtrace, though. This is the output from gdb:

```
(gdb) run
Starting program: /usr/bin/kate 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffefccf640 (LWP 94845)]
[New Thread 0x7fffedd18640 (LWP 94846)]
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
[New Thread 0x7fffecf6a640 (LWP 94847)]
[New Thread 0x7fffe64f7640 (LWP 94848)]
[New Thread 0x7fffe5cf6640 (LWP 94849)]
[New Thread 0x7fffe54f5640 (LWP 94850)]
[New Thread 0x7fffe4cf4640 (LWP 94851)]
[New Thread 0x7fffd97d1640 (LWP 94852)]
[New Thread 0x7fffd8fd0640 (LWP 94853)]
[New Thread 0x7fffbbfff640 (LWP 94854)]
[New Thread 0x7fffbb7fe640 (LWP 94855)]
[New Thread 0x7fffbaffd640 (LWP 94856)]
[New Thread 0x7fffba7fc640 (LWP 94857)]
[New Thread 0x7fffb9ffb640 (LWP 94858)]
[New Thread 0x7fffb97fa640 (LWP 94859)]
[New Thread 0x7fffb8ff9640 (LWP 94860)]
[New Thread 0x7fff9bfff640 (LWP 94861)]
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
[Detaching after fork from child process 94863]
[Detaching after fork from child process 94865]
[Detaching after fork from child process 94868]
[Detaching after fork from child process 94869]
[Detaching after fork from child process 94870]
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain;charset=utf-8
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain
The Wayland connection broke. Did the Wayland compositor die?
[Thread 0x7fffb8ff9640 (LWP 94860) exited]
[Thread 0x7fffb97fa640 (LWP 94859) exited]
[Thread 0x7fffb9ffb640 (LWP 94858) exited]
[Thread 0x7fffba7fc640 (LWP 94857) exited]
[Thread 0x7fffbaffd640 (LWP 94856) exited]
[Thread 0x7fffbb7fe640 (LWP 94855) exited]
[Thread 0x7fffbbfff640 (LWP 94854) exited]
[Thread 0x7fffd8fd0640 (LWP 94853) exited]
[Thread 0x7fffd97d1640 (LWP 94852) exited]
[Thread 0x7fffe4cf4640 (LWP 94851) exited]
[Thread 0x7fffe54f5640 (LWP 94850) exited]
[Thread 0x7fffe5cf6640 (LWP 94849) exited]
[Thread 0x7fffe64f7640 (LWP 94848) exited]
[Thread 0x7fffecf6a640 (LWP 94847) exited]
[Thread 0x7fffedd18640 (LWP 94846) exited]
[Thread 0x7fffefccf640 (LWP 94845) exited]
[Thread 0x7ffff1078a80 (LWP 94834) exited]
[Inferior 1 (process 94834) exited with code 01]
(gdb) bt
No stack.
```
Comment 3 Bug Janitor Service 2021-12-13 04:35:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2021-12-28 04:35:01 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Vlad Zahorodnii 2022-01-11 09:48:21 UTC
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain;charset=utf-8
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain

There's a known issue where GTK apps don't send back data after receiving wl_data_source.send event. It's still weird that kate closes, I suggest to report that issue to Qt developers.