| Summary: | PNG encoding issue in Spectacle while copying data to the Plasmashell Clipboard | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | kderazorback |
| Component: | General | Assignee: | Noah Davis <noahadvs> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | g311571057, kde, kde, kderazorback, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.3 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Journald screenshot | ||
|
Description
kderazorback
2025-07-29 17:29:34 UTC
Relevant line is this: jul 29 18:38:52 PLATINUM spectacle[278131]: Failed to send all clipobard data; sent -1 bytes out of 5891351 Which implies one of plasmashell or spectacle got stuck a bit when it was meant to be transferring and then plasmashell timed out. Im investigating a little bit on this and found out some weird behaviour, that I think its related. But Im not able to reproduce the exact error message: `Failed to send all clipobard data; sent -1 bytes out of 5891351` in a reliably way. If I take an screenshot on Spectacle for an small window region (500x500px or so) it works perfectly and the image is copied to the plasmashell clipboard without issues. Nothing weird logged on journald. If I copy instead a bigger window region (about 2560x1440px, my entire display res), almost all the time Spectacle will fail to put the image into the plasmashell clipboard and the following errors appear on the user's journald: ```text ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML Image: Error decoding: file:///home/kderazorback/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709: Unsupported image format ago 02 17:30:58 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:30:58 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:30:58 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:30:58 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:30:58 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML Image: Error decoding: file:///home/kderazorback/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709: Unsupported image format ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:30:58 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ``` But what is more interesting, if I open Gwenview, and open a big png image (5400x2700 pixels) and pressed Ctrl+C once, it works properly and copies the image to the plasmashell's clipboard. BUT if I pressed it multiple times in quick succession, the exact same error appears constantly on the systemd's journal and the image it not copied at all. ```text ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML Image: Error decoding: file:///home/kderazorback/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709: Unsupported image format ago 02 17:33:59 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:33:59 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:33:59 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:33:59 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:33:59 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:33:59 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML Image: Error decoding: file:///home/kderazorback/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709: Unsupported image format ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "BM\x96k" ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: TGAHandler::canRead() error while reading the header ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML Image: Error decoding: file:///home/kderazorback/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709: Unsupported image format ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG" ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ago 02 17:34:00 PLATINUM plasmashell[3207]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:49:17: TypeError: Cannot read property 'height' of null ``` I think this bug needs to be assigned to Plasmashell instead. For the sake of completion, this is the last output of KInfo: KDE Plasma Version: 6.4.3 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 Kernel Version: 6.14.0-27-generic (64-bit) Graphics Platform: Wayland Processors: 24 × 13th Gen Intel® Core™ i7-13700 Memory: 64 GiB of RAM (62.5 GiB usable) Graphics Processor 1: Intel® Graphics Graphics Processor 2: AMD Radeon RX 6700 XT And I'm using Gwenview 25.04.3 |