Bug 481975 - Plasma 6 Wayland flickering/stuttering/jittering on web and electron apps and games on Nvidia. Seemigly reverting to previous states
Summary: Plasma 6 Wayland flickering/stuttering/jittering on web and electron apps and...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-28 23:25 UTC by bailey brightman
Modified: 2024-04-24 01:51 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A video with minor jittering/flickering (1.89 MB, video/x-matroska)
2024-02-28 23:25 UTC, bailey brightman
Details
Typing in a text feild causes text to disapear, before re-apearing (1.89 MB, video/x-matroska)
2024-02-28 23:30 UTC, bailey brightman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bailey brightman 2024-02-28 23:25:28 UTC
Created attachment 166176 [details]
A video with minor jittering/flickering

SUMMARY
Inside browsers and electron apps, as shown in the video attached, I am seeing elements seemingly revert to previous states for a moment, flicker, or turn black. This is constant while watching videos. While writting this issue I am seeing text disapear, the blue highlight move up to the title bar, and the bottom section disapear. Though I havent caught it on video, I see the same issue on spotify with it sometimes going black. This is not the case in the latest plasma 5 release. This has been the case after a re-install of arch

STEPS TO REPRODUCE
1. Log on to a plasma 6 wayland session 
2. Open a browser, electron app, steam, or some games
3.  watch a video, write text, or do something which may cause the screen to update like changing tabs in a mail client. 

OBSERVED RESULT
State seems to revert, only visually, for a moment and some screens loose all elements. Normal applications such as dolphin, kitty with neovim, kate, are not effected.  

EXPECTED RESULT
Elements remain updated, the application or video shows video is smooth without flickering or jittering

SOFTWARE/OS VERSIONS
  Linux/KDE Plasma: 
  Operating System: Arch Linux 
  KDE Plasma Version: 6.0.0
  KDE Frameworks Version: 6.0.0
  Qt Version: 6.6.2
  Kernel Version: 6.7.6-arch1-1 (64-bit)
  Graphics Platform: Wayland
  Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz
  Memory: 15.5 GiB of RAM
  Graphics Processor: NVIDIA GeForce RTX 2070 Super with Max-Q Design/PCIe/SSE2
  Manufacturer: HP
  Product Name: OMEN Laptop 15-ek0xxx
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2-1

ADDITIONAL INFORMATION
This has been the case for about a month, and has not been the case for the entirety of the time I've been using plasma 6 (using kdesrc-build to compile on my machine)

It is much worse than the video shows
Comment 1 bailey brightman 2024-02-28 23:30:21 UTC
Created attachment 166177 [details]
Typing in a text feild causes text to disapear, before re-apearing

Near the end, I do delete text myself before adding new text. No text is actually deleted, only visually disapearing
Comment 2 vic 2024-02-28 23:34:18 UTC
I have the same issue on rtx 2060 with amd cpu
when you write smth. on google search, the cursor jumps all over the text and the text sometimes disappearing :) , and same in brave, edge and chrome.
in arduino ide (written in java) the same, and also when scrolling with the mouse wheel, portions of test disappearing and jumping one on the top of another.
after todays update just a bit better but the problem is there
Comment 3 Zamundaaa 2024-02-28 23:55:46 UTC
This is a NVidia driver issue, see https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317 for details. The issue appearing or disappearing has no real cause; it's a race condition that can be triggered by lots of things.
NVidia has a workaround for Wayland native apps, so it should not happen if you run these apps as Wayland native.
Comment 4 vic 2024-02-29 07:50:41 UTC
how to know which app is native wayland and which isn't ?
Comment 5 Zamundaaa 2024-02-29 13:40:07 UTC
You can open the kwin debug console by searching for "kwin debug console" in krunner. It lists which windows are using Wayland, and which are using X11
Comment 6 vic 2024-02-29 15:49:54 UTC
If it's nvidia issue, do I have to throw plasma 6 away before it even started, or do I have to throw my pc away? I tried gnome and the same browsers don't have this issue?
Comment 7 Zamundaaa 2024-03-03 19:39:21 UTC
Like I already wrote, it's a race condition. Random seeming changes can make it happen or stop it from happening. Some people have this problem, some don't, some only have it with certain refresh rates, with certain DEs, with certain apps, only when performance drops happen, whatever.
It'll be properly fixed with 6.1 + future Xwayland + future NVidia driver that support explicit sync. Until then, if you can't make the apps you use native Wayland, you can either still use Xorg, or a different DE if it doesn't happen there for you.