Copying a large image to the clipboard causes a short freeze
Affected version
Arch Linux
44.1
Wayland
Bug summary
Copying a large image to the clipboard causes a freeze.
Steps to reproduce
- Open this image: https://cdn.discordapp.com/attachments/355822466117009420/1108571468889067652/MCN21BP.png
- Copy the image to clipboard from a browser
More images:
- https://blog.davey.com/media/nuig3zs0/green-trees-banner-stock2.jpg
- https://images4.alphacoders.com/936/936378.jpg
What happened
There will be a short freeze when the image is copied.
If copied from Firefox, it is likely that Firefox will crash. It should work when copied from Chrome.
What did you expect to happen
There should not be a freeze.
Relevant logs, screenshots, screencasts etc.
Running Sysprof when copying the image shows a high amount of time spent in mmap
and munmap
.
Edited by road2react