Bug 441396 - Kwin is rendering old content when taking screenshots
Summary: Kwin is rendering old content when taking screenshots
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: git master
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-22 21:20 UTC by Siddhartha
Modified: 2021-08-22 21:55 UTC (History)
0 users

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


Attachments
KWin supportInformation (8.39 KB, text/plain)
2021-08-22 21:20 UTC, Siddhartha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Siddhartha 2021-08-22 21:20:39 UTC
Created attachment 140959 [details]
KWin supportInformation

SUMMARY
Taking screenshots with Spectacle renders old content instead of what is actually on the screen. I have to "reset" Kwin by changing some Compositor settings before taking screenshots.

STEPS TO REPRODUCE

> Open Spectacle and take a screenshot using rectangular region.
The screen changes to some old state as it was when I had just logged in, including a partially black screen and a notification widget showing "Connected to wifi".

> Try "Window Under Cursor"
The same thing happens. Either some old window or the desktop itself comes in the screenshot, but not the currently open windows.

> Go to Compositor settings and change "Scale method" or "Rendering backend" to something else.
Now Kwin resets and I can take screenshots of the current screen again.

This bug appeared in the last month or so. Willing to help debug.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.80 (plasma-desktop-git r8585.20210820.4cc2de24d, kwin-git r19807.20210821.17b161213)
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.12-arch1-1 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Attaching kwin info.
Comment 1 Siddhartha 2021-08-22 21:55:41 UTC
Well, I digged into my Arch configuration and turns out the issue was installed xf86-video-intel driver, which is not recommended [0]. Removing the driver seems to have fixed the issue. Will report back if it reappears.

[0] https://community.kde.org/Plasma/5.9_Errata#Intel_GPUs