Bug 482311

Summary: Video frame jump/reverse glitch with NVIDIA GPU on Wayland
Product: [Plasma] kwin Reporter: Florian RICHER <florian.richer>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: florian.richer, nate, xaver.hugl
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Glitch during play youtube vidéo
publickey - florian.richer@protonmail.com - 0xB19E3F4A.asc
signature.asc
Glitched zone
Gameplay

Description Florian RICHER 2024-03-03 14:07:25 UTC
Created attachment 166360 [details]
Glitch during play youtube vidéo

SUMMARY

When i play youtube video or when i playing at video game, i get this glitch like in attachment.


STEPS TO REPRODUCE
1. Install Plasma  5 /  6
2. Install Nvidia Driver
3. Start with wayland

OBSERVED RESULT

Video glitch.

Note : With plasma 6 and nvidia 550 update, it's less pronunced.

EXPECTED RESULT

No glitch

SOFTWARE/OS VERSIONS
NixOS : https://gitea.mrdev023.fr/florian.richer/nixos/src/commit/28dd029befb697df68f346b77e7474237241d672/flake.lock
KDE Plasma Version: 6.0.0
KDE Frameworks Version: ??? Not displayed
Qt Version: 6.6.2
Compositor : Wayland

ADDITIONAL INFORMATION

You can check from my NixOS flake to reproduce my bug more easily.
Comment 1 Florian RICHER 2024-03-03 14:08:30 UTC
It look like rollback of rendering and sometimes make a short black screen glitch.
Comment 2 Florian RICHER 2024-03-03 15:03:47 UTC
Like this bug https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317
Comment 3 Nate Graham 2024-03-05 23:16:10 UTC
Where's the YouTube video? I see you mousing around a web browser window on the megarelease announcement, and I see a PiP window on the side, but I don't see a glitch in a YouTube video.
Comment 4 Florian RICHER 2024-03-06 05:56:37 UTC
Created attachment 166467 [details]
publickey - florian.richer@protonmail.com - 0xB19E3F4A.asc

The IS encountered with all vidéo of youtube and also when i play video games liké son of thé forest.

My attachement IS already the youtube vidéo, i crop only the video.  But i can send you also a record when i play.


-------- Message d'origine --------
Le 06/03/2024 00:16, Nate Graham <bugzilla_noreply@kde.org> a écrit :

>  https://bugs.kde.org/show_bug.cgi?id=482311
>  
>  Nate Graham <nate@kde.org> changed:
>  
>             What    |Removed                     Added
>  ----------------------------------------------------------------------------
>                   CC|                            |nate@kde.org
>  
>  --- Comment #3 from Nate Graham <nate@kde.org> ---
>  Where's the YouTube video? I see you mousing around a web browser window on the
>  megarelease announcement, and I see a PiP window on the side, but I don't see a
>  glitch in a YouTube video.
>  
>  --
>  You are receiving this mail because:
>  You reported the bug.
>  You are on the CC list for the bug.
Comment 5 Florian RICHER 2024-03-06 05:56:38 UTC
Created attachment 166468 [details]
signature.asc
Comment 6 Nate Graham 2024-03-06 17:26:21 UTC
I don't see a glitch in your video. Can you point out what I should be looking at?
Comment 7 Florian RICHER 2024-03-06 17:46:55 UTC
Created attachment 166492 [details]
Glitched zone
Comment 8 Florian RICHER 2024-03-06 17:47:12 UTC
(In reply to Nate Graham from comment #6)
> I don't see a glitch in your video. Can you point out what I should be
> looking at?

I add https://bugs.kde.org/attachment.cgi?id=166492
Comment 9 Florian RICHER 2024-03-06 17:49:00 UTC
(In reply to Florian RICHER from comment #8)
> (In reply to Nate Graham from comment #6)
> > I don't see a glitch in your video. Can you point out what I should be
> > looking at?
> 
> I add https://bugs.kde.org/attachment.cgi?id=166492

In zone  (see https://bugs.kde.org/attachment.cgi?id=166492) in the video https://bugs.kde.org/attachment.cgi?id=166360

You can see little rollback during rendering. 
This bug is more present when i play video games with low fps
Comment 10 Florian RICHER 2024-03-06 18:15:32 UTC
Created attachment 166493 [details]
Gameplay
Comment 11 Florian RICHER 2024-03-06 18:16:00 UTC
I send you gameplay of Sons of the forest with bug
Comment 12 Florian RICHER 2024-03-06 18:18:33 UTC
https://mycld.mrdev023.fr/s/FLAgqJkwqs3AkgF
Comment 13 Nate Graham 2024-03-06 20:18:44 UTC
I see now, thanks.

I think it is very likely this is a GPU driver issue, but I'll let the KWin folks confirm.
Comment 14 Zamundaaa 2024-03-06 20:35:40 UTC
Yes, this is https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317, and will be fixed in future versions of Xwayland and the NVidia driver.
Comment 15 Florian RICHER 2024-03-06 20:48:15 UTC
(In reply to Zamundaaa from comment #14)
> Yes, this is https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317, and
> will be fixed in future versions of Xwayland and the NVidia driver.

Do you have MR nvidia side and xwayland side ?
Comment 16 Florian RICHER 2024-03-06 20:48:53 UTC
(In reply to Florian RICHER from comment #15)
> (In reply to Zamundaaa from comment #14)
> > Yes, this is https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317, and
> > will be fixed in future versions of Xwayland and the NVidia driver.
> 
> Do you have MR nvidia side and xwayland side ?

Or fixed version
Comment 17 Zamundaaa 2024-03-06 23:33:43 UTC
Yes, it's https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967. That on its own will resolve most of the problems with some performance cost, and some future version of the NVidia driver (probably 555) + https://invent.kde.org/plasma/kwin/-/merge_requests/4693 will fix it completely (without a performance drop).