Bug 456944 - Screen capture displays an incorrect and flickering image, if compositing is enabled.
Summary: Screen capture displays an incorrect and flickering image, if compositing is ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.25.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-20 12:25 UTC by dev
Modified: 2024-05-23 01:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dev 2022-07-20 12:25:45 UTC
SUMMARY
Screen capturing seems to occasionally display an outdated image of the screen.

STEPS TO REPRODUCE
1. Make sure compositing is enabled
2. Go to take a screenshot (with Flameshot for example)
3. Cancel the screenshot, and open a window
4. Go to take another screenshot

OBSERVED RESULT
The screenshot will be stuck showing what was on the screen when the first screenshot was taken. OBS will also only show this image, but in OBS it flickers rapidly.
Having compositing disabled with Shift+Alt+F12 seems to fix this issue.

EXPECTED RESULT
Screenshots should always show what is currently on the screen.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: LENOVO
Product Name: 20W6S04X00
System Version: ThinkPad P15s Gen 2i

ADDITIONAL INFORMATION
I originally had this issue sharing my desktop with Teamviewer. The person remoting in started to experience a strobing screen, rapidly switching between two images. I thought this was an error with my external monitor plugged in, but the issue persisted unplugging my monitor, and even restarting my computer.

After a couple of times disabling and re-enabling compositing, the error seems to have gone away for now, but I am not entirely sure what is triggering it to begin with.
Comment 1 dev 2023-02-15 01:11:45 UTC
Update: this has been occurring for me for a while now, and has persisted across 5.26 and even 5.27.

I have attached a video of a screen recording of this bug (OBS sees this flicker, but on my screen is just normal Firefox).

https://youtu.be/kAtg7IhsDE0

I first have compositing enabled, and the flicker is occurring. Halfway through the recording, I turn it off, and the flicker goes away. I turn it back on, but the flicker doesn't come back for the rest of the recording.
Comment 2 dev 2024-05-23 01:41:44 UTC
Seemingly fixed by removing `xf86-video-intel` https://bbs.archlinux.org/viewtopic.php?id=263247