Bug 476279 - With NVIDIA GPU on Wayland, viewing Task Manager previews freezes the panel
Summary: With NVIDIA GPU on Wayland, viewing Task Manager previews freezes the panel
Status: RESOLVED DUPLICATE of bug 469016
Alias: None
Product: KPipeWire
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-10-29 06:20 UTC by Deniil
Modified: 2024-01-03 14:55 UTC (History)
5 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 Deniil 2023-10-29 06:20:48 UTC
Hello, thank you for working on this amazing project, please tell me if any additional info is needed.

SUMMARY
plasmashell panel permanently freezes after hovering over items in the taskbar. The way it freezes is interesting, panel is visually frozen, but it responds to clicks, clicking sometimes minimizes/maximizes two windows at once and some are unclickable, feels to me like layout algorithm locks up, but that's just my assumption.

This problem only occurs on Wayland, not on X11, and it seems to have started after i bought an NVIDIA GPU, on AMD iGPU everything worked fine.

I was able to capture logs that occur when panel freezes
```
окт 29 09:09:42 okcomputer plasmashell[208405]: kpipewire_logging: Window not available PipeWireSourceItem_QML_958(0x560eaa18bc70, parent=0x560ea9fcb470, geometry=0,0 68x26)
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:0: RangeError: Maximum call stack size exceeded.
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:775: TypeError: Cannot read property 'configuration' of null
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.plasma.networkmanagement/contents/ui/main.qml:151: TypeError: Cannot read property 'expanded' of null
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/main.qml: Writing to "applet" broke the binding to the underlying model
окт 29 09:09:42 okcomputer plasmashell[206696]: file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/main.qml: Writing to "applet" broke the binding to the underlying model
окт 29 09:09:42 okcomputer plasmashell[206696]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_30_00.6.analog-stereo"
окт 29 09:09:42 okcomputer plasmashell[206696]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_30_00.6.analog-stereo"
окт 29 09:09:42 okcomputer plasmashell[206696]: org.kde.plasma.pulseaudio: No object for name "alsa_input.pci-0000_30_00.6.analog-stereo"
окт 29 09:09:42 okcomputer systemd[196952]: plasma-plasmashell.service: Consumed 50.478s CPU time.
окт 29 09:09:43 okcomputer plasmashell[208405]: kpipewire_logging: Window not available PipeWireSourceItem_QML_958(0x560eaa491300, parent=0x560e74b52600, geometry=0,0 68x26)
```


STEPS TO REPRODUCE
1. Start hovering taskbar items to see the previews
2. Eventually, if the bug occurs, panel permanently freezes, only restarting plasmashell helps.

OBSERVED RESULT
Panel permanently freezes.

EXPECTED RESULT
Panel shouldn't freeze

SOFTWARE/OS VERSIONS

 - KDE System Settings info:
```
Operating System: Arch Linux 
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 31,2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0
```

 - Nvidia settings info:
```
NVIDIA Driver Version: 535.113.01
NVML Version: 12.535.113.01
```

ADDITIONAL INFORMATION
I attached a video that demonstrates the issue
please tell me if any additional info is needed
Comment 1 Deniil 2023-10-29 06:24:20 UTC
Couldn't attach the video due to filesize limit, you can watch it on my server:
https://files.isekai.su/panel_bug.mp4
Comment 2 Nate Graham 2023-10-30 19:30:47 UTC
When this happens, do any apps freeze? Do any other parts of Plasma freeze--such as desktop icons?
Comment 3 Deniil 2023-10-31 09:15:33 UTC
Hi, thank you for looking into this.
When panel freezes, only panel and nothing else is affected, desktop icons work, apps work
Comment 4 Deniil 2023-10-31 09:19:35 UTC
My version of KPipeWire:
extra/kpipewire 5.27.9-1 (plasma) [installed]
    Components relating to pipewire use in Plasma
Comment 5 Nate Graham 2023-11-01 17:29:14 UTC
Very interesting. Thanks for the info.
Comment 6 Deniil 2023-11-02 07:21:41 UTC
I was unable to reproduce this issue under a fresh new user.
I'm suspecting this could be due to effects I have installed, how to remove all custom effects from Plasma?
Comment 7 Deniil 2023-11-02 08:29:53 UTC
I'm sorry for the confusion, problem occurred on a fresh new user as well, spoke too soon.
Comment 8 Nathanaël B. 2023-11-21 21:37:32 UTC
Hi, thanks for reporting this issue : I wanted to do it since at least a month.
I can confirm this crash/freeze !

OS/Machine infos :
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.2-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i5-10400 CPU @ 2.90GHz
Memory: 15.5 Gio of RAM
Graphics Processor: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2

NVidia/driver infos :
NVIDIA Driver Version: 545.29.02
NVML Version: 12.545.29.02

Please let me know if you need some more information, and good luck for developing all these pieces of software !
Comment 9 Nate Graham 2023-12-16 05:28:26 UTC
*** Bug 478587 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2023-12-20 20:11:55 UTC
Oh, I know what this is: a bug already fixed in Plasma 6. :)

*** This bug has been marked as a duplicate of bug 469016 ***
Comment 11 Deniil 2024-01-03 11:35:30 UTC
Hi, thank you for fixing this in Plasma 6

Is it possible to backport this fix to 5.27? Plasma 6 fixes the taskbar, but introduces other issues (i checked, they are all reported, don't worry). Plasma 5 works very well, but taskbar suffers from this bug. No version of KDE works for me on Wayland without issues and i'm forced to use gigachad XOrg.

Thank you!
Comment 12 Nate Graham 2024-01-03 14:55:20 UTC
I'm afraid not; there are no further releases of Plasma 5 planned.