Bug 441396

Summary: Kwin is rendering old content when taking screenshots
Product: [Plasma] kwin Reporter: Siddhartha <kde>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: major    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWin supportInformation

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