https://bugs.kde.org/show_bug.cgi?id=505281

            Bug ID: 505281
           Summary: Rectangular screenshots are consistently empty when
                    copied
    Classification: Applications
           Product: Spectacle
      Version First 6.3.91
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: noaha...@gmail.com
          Reporter: kostadinshishma...@protonmail.com
                CC: k...@david-redondo.de
  Target Milestone: ---

SUMMARY

If you take a rectangular screenshot when Spectacle is opened for the first
time, the screenshot will consistently be an empty file.

What appears in journalctl:
```
Jun 06 19:04:10 hostname plasmashell[2217441]:
qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML
Image: Error decoding:
file:///home/kostadin/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709:
Unsupported image format
Jun 06 19:04:10 hostname plasmashell[2217441]:
qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML
Image: Error decoding:
file:///home/kostadin/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709:
Unsupported image format
Jun 06 19:04:10 hostname plasmashell[2217441]:
qrc:/qt/qml/org/kde/plasma/private/clipboard/ImageItemDelegate.qml:26:9: QML
Image: Error decoding:
file:///home/kostadin/.local/share/klipper/data/da39a3ee5e6b4b0d3255bfef95601890afd80709/da39a3ee5e6b4b0d3255bfef95601890afd80709:
Unsupported image format
```

A bisect between 6.3.5 and 6.3.91 weirdly led to:

https://invent.kde.org/plasma/spectacle/-/commit/606581c1ad90d2dce186ec8437c4bdf20e4039f8

```
>From 606581c1ad90d2dce186ec8437c4bdf20e4039f8 Mon Sep 17 00:00:00 2001
From: Noah Davis <noaha...@gmail.com>
Date: Wed, 28 May 2025 13:40:06 -0400
Subject: [PATCH] Hide capture windows before deleting them when accepting

Prevents them from being visible in the background when using Save As.
```

STEPS TO REPRODUCE
1. Make sure Spectacle is not open
2. Launch Spectacle through either Print Screen or the Application Launcher
3. Capture a Rectangular screenshot
4. Copy it
5. Try to paste it into a program like Discord (it will just show image.png
with no actual content)

OBSERVED RESULT

Screenshot is an empty file

EXPECTED RESULT

The actual screenshot gets copied to the clipboard

SOFTWARE/OS VERSIONS
Operating System: Gentoo 2.17
KDE Plasma Version: 6.3.91
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.15.1-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 32 GiB of RAM (30.9 GiB usable)
Graphics Processor: AMD Radeon RX 6800

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to