Can't pipe large images into xclip while CopyQ is running
- Dominant language
- C++
- Stars
- 12.3k
- Forks
- 593
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 9
Description
If I run the command:
```
xclip -selection clipboard -in -target image/png < scr.png
```
where scr.png is a large image (3840x2160), while CopyQ ~~with the "Images" item format enabled~~ is running, then, after a few seconds, the following is printed in the terminal:
```
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Resource id in failed request: 0x1200006
Serial number of failed request: 38
Current serial number in output stream: 38
```
`xclip` thus crashes, making the image unavailable to other applications. The image does not reach CopyQ's clipboard history (even when increasing the "Maximum Image Width/Height" options past the image size).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.