Bug 454354 - nvidia: Java programs running in Plasma Wayland / Xwayland show massive flickering
Summary: nvidia: Java programs running in Plasma Wayland / Xwayland show massive flick...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-24 18:41 UTC by Andreas Hartmann
Modified: 2023-11-01 13:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hartmann 2022-05-24 18:41:56 UTC
SUMMARY
Running java apps in Plasma Wayland / X-Wayland leads to massive flickering of the Java apps or even QT apps.


STEPS TO REPRODUCE
1. Take Mediathekview and run it. Do several actions like Blacklisting of films. After blacklisting a few films, you most probably will get massive flickering.
2. Take a look at https://forums.developer.nvidia.com/t/wayland-massive-flickering-on-xwayland-java/215224 and https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317 (search for "nvidia user01"). You can find an example here: https://magentacloud.de/s/LybHRSF4YjD9brs
3. 

OBSERVED RESULT
Massive flickering after some time of operation (maybe 2 minutes).

EXPECTED RESULT
No flickering at all. Just as it works in Wayland gnome shell.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.32 / 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Nvidia: 515.43.04 and previous versions
Comment 1 Patrick Kopper 2022-07-06 06:30:16 UTC
I am noticing the same problem using JabRef, both with openjdk and jdk. The black flickering is so extreme that it covers almost the entire window at a high frequency, making the software completely unusable. Only Java programs running through XWayland are affected, running the same software through X11 works fine.

Running the same software using another GPU vendor works without issues. Not sure if this is an Nvidia or KDE bug.

OS:		Arch Linux x86_64
Kernel:	5.18.9-zen1-1-zen
DE:		Plasma 5.25.2 (kwin)
GPU:	NVIDIA GeForce RTX 2060 Rev. A

$ lspci -vks 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Gigabyte Technology Co., Ltd Device 37d9
        Flags: bus master, fast devsel, latency 0, IRQ 130, IOMMU group 1
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [250] Latency Tolerance Reporting
        Capabilities: [258] L1 PM Substates
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [420] Advanced Error Reporting
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
        Capabilities: [bb0] Physical Resizable BAR
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

$ cat /proc/cmdline
initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img [...] intel_iommu=on iommu=pt nvidia-drm.modeset=1 rw nowatchdog
Comment 2 David Edmundson 2023-07-07 09:59:40 UTC
There's some known sync problems with Nvidia proprietary driver. Kwin can't do anything about it.