Bug 445611 - Corrupted screenshots with fullscreen OpenGL applications
Summary: Corrupted screenshots with fullscreen OpenGL applications
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-16 20:13 UTC by Nikos Chantziaras
Modified: 2023-09-06 10:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
RetroArch screenshot (459.59 KB, image/jpeg)
2021-11-16 20:13 UTC, Nikos Chantziaras
Details
glxgears screenshot (146.75 KB, image/jpeg)
2021-11-16 20:13 UTC, Nikos Chantziaras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2021-11-16 20:13:21 UTC
Created attachment 143641 [details]
RetroArch screenshot

SUMMARY
When running a fullscreen application that uses OpenGL (primary use case are video games) with desktop effects disabled (the application disables them or manually with Shift+Alt+F12, Spectacle often produces pixel garbage in the screenshots.

Attached are two screenshots showing the issue. One is from RetroArch, the other with plain old glxgears after switching it to fullscreen mode using Alt+F3/More Actions/Fullscreen.

STEPS TO REPRODUCE
1. Disable the compositor (default shortcut Shift+Alt+F12.)
2. Run glxgears.
3. Make it fullscreen through KWin (upper-left icon on the window title bar, "More Actions", "Fullscreen".
4. Press Shift+PrintScr multiple times to take several screenshots and automatically save them in the default screenshot location configured in Spectacle.

OBSERVED RESULT
Some of the screenshots will have thick horizontal bars of black pixels.

EXPECTED RESULT
Screenshots should be clean without black pixels.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.8
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.10.79-gentoo (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 980 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
I installed flameshot (a screenshot tool, https://github.com/flameshot-org/flameshot) and it does not have this issue.
Comment 1 Nikos Chantziaras 2021-11-16 20:13:45 UTC
Created attachment 143642 [details]
glxgears screenshot
Comment 2 Nate Graham 2021-11-23 20:51:11 UTC
The screenshot itself comes from KWin; moving there.
Comment 3 David Edmundson 2023-09-06 10:38:46 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.