Bug 448844

Summary: [NVIDIA Wayland] Panel stops visually updating after some time, but remains functional and interactive
Product: [Plasma] plasmashell Reporter: Samuel <sampingu02>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Severity: normal CC: alexandrbezenkov, daniel090929, david, koloved, mfed3, nate
Priority: NOR Keywords: wayland
Version: 5.23.90   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Part of the output of `journalctl -xe` when the crash occured.
KCrash Handler Output

Description Samuel 2022-01-20 18:37:41 UTC
After some amount of time, the panel just freeze but all the buttons and tooltips work properly.

1. Log-in to a Plasma Wayland Session with NVIDIA GPU.
2. Use your computer for an hour or two.
3. Eventually the panel will freeze.

The panel will freeze eventually at some point, but all the panel functions continue to work. plasmashell --replace fixes this issue.

The panel should continue to respond and update normally without any freezes.

Linux Kernel: 5.16.1-arch1-1
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

NVIDIA GeForce GTX 1060 6GB
NVIDIA Proprietary Driver 495.46
Latest packages - all up-to-date, unstable Plasma 5.23.90 and latest qt5-wayland with merged NVIDIA GBM fix.
Comment 1 Samuel 2022-01-20 19:33:40 UTC
Here is a video showcasing the issue:- https://www.youtube.com/watch?v=ZTgTRRoO29g
Comment 2 Nate Graham 2022-01-20 23:38:50 UTC
Oh my goodness.

Not sure if this is a Plasma bug or a KWin bug or an NVIDIA driver bug. May be a combination of all three
Comment 3 Samuel 2022-01-21 03:29:49 UTC
(In reply to Nate Graham from comment #2) 
> Not sure if this is a Plasma bug or a KWin bug or an NVIDIA driver bug. May

Atleast its not as bad as it was previously. So should I report this to NVIDIA too or should I wait for confirmation that this is a NVIDIA Bug?

I also noticed that once when I did `plasmashell --replace`, there was a crash when panel was replaced and the panel just froze as soon as it appeared, maybe this crash is the reason? Another time, when I did this, the panel appeared, disappeared and then reappeared (but it worked normally, just weird replace behavior).
Comment 4 Samuel 2022-01-21 03:33:41 UTC
( No Backtraces because no debug symbols in Arch :( )
Comment 5 Nate Graham 2022-01-21 16:39:45 UTC
Oh, that might be it, yeah.

Even if the backtrace is crappy and lacking symbols, it's better than nothing, and we might be able to see if it's the same as something else.
Comment 6 Samuel 2022-01-23 08:13:52 UTC
Created attachment 145789 [details]
Part of the output of `journalctl -xe` when the crash occured.

I am now submitting the journalctl -xe output when I did plasmashell --replace and it crashed.
Comment 7 Samuel 2022-01-23 08:18:20 UTC
Created attachment 145790 [details]
KCrash Handler Output
Comment 8 Nate Graham 2022-01-23 15:00:38 UTC
Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x0000000000000020 in  ()
#5  0x00007fce113b8381 in  () at /usr/lib/qt/plugins/kf5/kwindowsystem/KF5WindowSystemKWaylandPlugin.so
#6  0x00007fce206c0f84 in KWindowShadowPrivate::~KWindowShadowPrivate() () at /usr/lib/libKF5WindowSystem.so.5
#7  0x00007fce113b86d1 in  () at /usr/lib/qt/plugins/kf5/kwindowsystem/KF5WindowSystemKWaylandPlugin.so
#8  0x00007fce206c0f0b in KWindowShadow::~KWindowShadow() () at /usr/lib/libKF5WindowSystem.so.5
#9  0x00007fce206c0f2e in KWindowShadow::~KWindowShadow() () at /usr/lib/libKF5WindowSystem.so.5
#10 0x00007fce1f534d65 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#11 0x00007fce1f535519 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#12 0x00007fce2162643d in  () at /usr/lib/libKF5PlasmaQuick.so.5
#13 0x00007fce1eedf4a7 in __run_exit_handlers () at /usr/lib/libc.so.6
#14 0x00007fce1eedf64e in  () at /usr/lib/libc.so.6
#15 0x00007fce1eec7b2c in __libc_start_main () at /usr/lib/libc.so.6
#16 0x00005564aab4689e in  ()
[Inferior 1 (process 21594) detached]

It's not great, but it's enough to detect that this is the same as Bug 443706, which was just fixed!

*** This bug has been marked as a duplicate of bug 443706 ***
Comment 9 Nate Graham 2022-01-27 17:05:53 UTC

*** This bug has been marked as a duplicate of bug 449163 ***
Comment 10 Nate Graham 2022-01-28 21:06:18 UTC

*** This bug has been marked as a duplicate of bug 429211 ***
Comment 11 Nate Graham 2022-02-03 17:21:53 UTC

*** This bug has been marked as a duplicate of bug 449163 ***
Comment 12 David Gow 2022-04-18 09:35:00 UTC
FYI: There is an nVidia/Wayland specific issue with identical symptoms to this, which https://codereview.qt-project.org/c/qt/qtwayland/+/393273 alone doesn't fix.

It seems to be due to a bug in libnvidia-egl-wayland:

I can't reproduce the issue with this patch, but can without it:
Comment 13 mfed3 2022-10-14 05:19:20 UTC
Confirmed I have the same exact issue. The Panel will no longer refresh but you can hover with tooltips around the panel and see that there is still interactivity and operability is there, the visual is not in sync with the status of the panel. 

Operating System: Arch Linux
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Manufacturer: ASUS
Comment 14 Sergey 2023-11-04 00:11:10 UTC
same here, 545 driver, they said it should fix wayland but its not

Operating System: openSUSE Tumbleweed 20231102
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.9-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i5-12400
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
Manufacturer: ASRock
Product Name: B660M-ITX/ac
Comment 15 RealGecko 2023-11-21 08:11:13 UTC
Encounter this problem too:

Operating System: Arch Linux
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 32 GiB of RAM
Graphics Processor: NVIDIA Corporation GP104BM [GeForce GTX 1070 Mobile] (rev a1)
Manufacturer: ASUS
Nvidia driver: 545.29.02
Comment 16 HappyRespawnanchor 2024-01-18 13:24:30 UTC
Same problem here:
Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.0-arch3-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10700KF CPU @ 3.80GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660/PCIe/SSE2
NVidia Driver Version: 545.29.06
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C76
System Version: 1.0