Public bug reported:

Large (48kb) clipboard operations fail deadlocking applications.
1) This will cause whatever program receives a paste command to instantly enter 
a locked up state
2) Using `ps -e` to find wl-copy and issue a `kill <wl-copy-pid>` will result 
in the program recovering. 
3) Transfers of 47 1K blocks will work correctly
4) Transfers of 48 1K blocks will fail.
5) This only happens when waypiping into my ubuntu 24.04 system. The same 
reproduction steps seems to work correctly when using waypipe 0.10.04 on a 
different system.
6) I have found an open issue upstream that seems to match this behavior 
"https://gitlab.freedesktop.org/mstoeckl/waypipe/-/issues/97";
7) I suspect (but have not confirmed) that this commit 
https://gitlab.freedesktop.org/mstoeckl/waypipe/-/commit/328e0d43972c5f89305be23582a64cfdda90620b
 would resolve the issue.
8) An Archlinux system using a newer version of waypipe does not have this 
behavior.

Steps to reproduce
1) Open two terminals on a target ubuntu 24.04 system via waypipe
2) In terminal 1 run `dd if=/dev/urandom bs=1k count=48 status=none | base64 | 
WAYLAND_DEBUG=1 wl-copy --foreground`
3) In terminal 2 run `WAYLAND_DEBUG=1 wl-paste`
4) wl-copy and wl-paste will hang
5) Issue a control+c to wl-copy and data will stream as expected to wl-paste.

System running programs.
```
grland@sadavir:~$ wl-copy --version
wl-clipboard 2.2.1
Copyright (C) 2018-2023 Sergey Bugaev
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```

```
grland@sadavir:~$ waypipe --version
waypipe 0.8.6
features: lz4 zstd dmabuf video vaapi
unavailable:
```

```
grland@sadavir:~$ ssh -V
OpenSSH_9.6p1 Ubuntu-3ubuntu13.12, OpenSSL 3.0.13 30 Jan 2024
```

System used as graphical display
```
[greg@endora ~]$ waypipe --version
waypipe 0.10.4
features:
  lz4: true
  zstd: true
  dmabuf: true
  video: true
```

```
[dedrone@endora ~]$ wl-copy --version
wl-clipboard 2.2.1
Copyright (C) 2018-2023 Sergey Bugaev
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```

```
[greg@endora ~]$ ssh -V
OpenSSH_10.0p2, OpenSSL 3.5.0 8 Apr 2025
```

Bug report guidelines compliance

lsb_release -rd
```
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
```

apt-cache policy waypipe
```
waypipe:
  Installed: 0.8.6-2build1
  Candidate: 0.8.6-2build1
  Version table:
 *** 0.8.6-2build1 500
        500 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status
```

What I expected to happen
```
Pasting large files works correctly and does not cause the program to hang
```

What happened
```
Pasting more than 48k of data locks up the application involved in the copy and 
paste commands
```

** Affects: waypipe (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Log file of copy"
   
https://bugs.launchpad.net/bugs/2116032/+attachment/5888323/+files/wl-paste.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116032

Title:
  Waypipe hangs when pasting more than 48kb data

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/waypipe/+bug/2116032/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to