Bug 463227 - [kwin compositing] kwin glitches the recording video buffer
Summary: [kwin compositing] kwin glitches the recording video buffer
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: platform-x11-standalone (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 5
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-19 08:49 UTC by bajcsielias78
Modified: 2024-05-14 21:26 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bajcsielias78 2022-12-19 08:49:36 UTC
SUMMARY
Since I installed KDE Plasma on Artix Linux, I can't record or screenshot the screen properly because the 'recording video buffer' is glitching/tearing constantly with old frames, unless reseting the compositor with [alt]-[shift]-[F12] two times. Most of times, obs will show 1 frame of actual existing screen and second frame with an older frame. This process will repeat forever.
Dragging windows fast with Wobbly Windows desktop effect will accelerate this process, but even rendering videos produce this effect.
This will also affect screenshots or any screen capturing software, except the actual physical display(s).


STEPS TO REPRODUCE
1. Install the kde plasma on Artix Linux
2. Install OBS or any recording software
[WARNING, the next step may include fast epileptic seizures]
3. Record and drag around fast the windows with wobbly effect to accelerate this process.

OBSERVED RESULT
A glitchy epileptic screen.
Video of the bug: https://youtu.be/dgIPl1XOh3o

EXPECTED RESULT
To record smoothly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Artix Linux rolling with kernel 6.0.12-artix1-1
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Graphics Platform: X11

ADITIONAL INFO: I don't know exactly what this bug is, so I just gave it the best name I could think of.
Comment 1 bajcsielias78 2022-12-19 09:54:46 UTC
(In reply to bajcsielias78 from comment #0)
> SUMMARY
> Since I installed KDE Plasma on Artix Linux, I can't record or screenshot
> the screen properly because the 'recording video buffer' is
> glitching/tearing constantly with old frames, unless reseting the compositor
> with [alt]-[shift]-[F12] two times. Most of times, obs will show 1 frame of
> actual existing screen and second frame with an older frame. This process
> will repeat forever.
> Dragging windows fast with Wobbly Windows desktop effect will accelerate
> this process, but even rendering videos produce this effect.
> This will also affect screenshots or any screen capturing software, except
> the actual physical display(s).
> 
> 
> STEPS TO REPRODUCE
> 1. Install the kde plasma on Artix Linux
> 2. Install OBS or any recording software
> [WARNING, the next step may include fast epileptic seizures]
> 3. Record and drag around fast the windows with wobbly effect to accelerate
> this process.
> 
> OBSERVED RESULT
> A glitchy epileptic screen.
> Video of the bug: https://youtu.be/dgIPl1XOh3o
> 
> EXPECTED RESULT
> To record smoothly.
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Artix Linux rolling with kernel 6.0.12-artix1-1
> KDE Plasma Version: 5.26.4
> KDE Frameworks Version: 5.101.0
> Qt Version: 5.15.7
> Graphics Platform: X11
> 
> ADITIONAL INFO: I don't know exactly what this bug is, so I just gave it the
> best name I could think of.

Here it's a recording of my screen in real life: https://youtu.be/vX7ozRsuUTE
Comment 2 Vlad Zahorodnii 2023-01-06 10:15:46 UTC
Can't reproduce on Wayland. And I don't know what XDP does on X11
Comment 3 bajcsielias78 2023-01-12 08:58:04 UTC
(In reply to Vlad Zahorodnii from comment #2)
> Can't reproduce on Wayland. And I don't know what XDP does on X11

I tested in Wayland. Can't reproduce it either in Wayland, but can in X.
Comment 4 Aleix Pol 2023-01-12 15:38:42 UTC
On X11 it's not handled by XDP (or anywhere in Plasma or even KDE). It's between OBS and X11.
Comment 5 bajcsielias78 2023-01-12 16:59:19 UTC
I am no expert in capturing screens and stuff like that, but I can see it happens only when the compositor is active. In fact even Spectacle can take fullscreen screenshots with the old frame if screenshots at the right moment and basically everything that can take capture output from screen.

I never experienced something like this in any DE/WM except for KDE. In fact I also have a secondary WM, dwm.
Comment 6 Aleix Pol 2023-01-12 19:32:22 UTC
Moving it to kwin for now.
Comment 7 David Edmundson 2024-05-14 21:26:30 UTC
Kwin isn't involved in this