Bug 491865

Summary: plasmashell crashes in pw_stream_dequeue_buffer() after PipeWireSourceStream::process()
Product: [KDE Neon] neon Reporter: Jacquemin <jpjacquemin>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: a.j.ball, ahiemstra, akselmo, aleixpol, alex, alfons.torrents, antonioni.rocha, fabricio.valadares, grudev.s, hamed.khakbiz, hasannisanci, hinstance, info+kde, jarlgjessing, jr, jyotib652, luca76, meven29, nate, neon-bugs, salnajjar, seshagiriprabhu, torbjorn.nilsen
Priority: VHI Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=489268
https://bugs.kde.org/show_bug.cgi?id=492400
Latest Commit: Version Fixed In: plasma 6.1.5
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/54573/events/87dc9fde7b554d28a5847b0757f6f820/
Attachments: New crash information added by DrKonqi

Description Jacquemin 2024-08-18 16:39:13 UTC
Application: plasmashell (6.1.4)

Qt Version: 6.7.2
Frameworks Version: 6.5.0
Operating System: Linux 6.8.0-40-generic x86_64
Windowing System: Wayland
Distribution: KDE neon 6.1
DrKonqi: 6.1.4 [CoredumpBackend]

-- Information about the crash:
the bug appeared with the kde neon 6.14 update and persists after the qt6 update

The crash does not seem to be reproducible.

-- Backtrace (Reduced):
#6  0x00007feef412fa08 in pw_stream_dequeue_buffer () at /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#7  0x00007feef419ffa8 in PipeWireSourceStream::process() (this=0x5f13d0dcd110) at ./src/pipewiresourcestream.cpp:688
[...]
#13 0x00007feef41122f4 in pw_impl_node_set_state () at /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
[...]
#15 0x00007feef411adb8 in pw_proxy_destroy () at /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#16 0x00007feef412f60f in pw_stream_disconnect () at /lib/x86_64-linux-gnu/libpipewire-0.3.so.0


Reported using DrKonqi
Comment 1 Jacquemin 2024-08-18 16:39:14 UTC
Created attachment 172731 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2024-08-19 20:57:34 UTC
*** Bug 491917 has been marked as a duplicate of this bug. ***
Comment 3 Akseli Lahtinen 2024-08-20 08:05:50 UTC
*** Bug 491925 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-08-20 16:43:43 UTC
*** Bug 491934 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-08-20 22:16:51 UTC
*** Bug 491953 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-08-21 15:20:44 UTC
*** Bug 483808 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-08-21 15:21:08 UTC
*** Bug 491936 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2024-08-22 15:13:12 UTC
*** Bug 492015 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-08-22 15:19:30 UTC
*** Bug 492022 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-08-23 02:36:17 UTC
All crashes are from Neon; seems like a Neon-specific bug, perhaps due to the very old PipeWire verison?
Comment 11 Jacquemin 2024-08-23 09:05:05 UTC
Thanks for your answer. PulseAudio is the default KDE neon sound serverr KDE. There are a few KDE PipeWire libraries installed, but no service.
Comment 12 Nate Graham 2024-08-23 15:50:10 UTC
*** Bug 492067 has been marked as a duplicate of this bug. ***
Comment 13 Jonathan Riddell 2024-08-23 16:05:25 UTC
Would anyone know how to reproduce this issue?
Comment 14 Jonathan Riddell 2024-08-23 16:28:05 UTC
We think this is a bug in Pipewire (rather than Qt or KDE software) which Pipewire have long since fixed but happens to be triggered by a recent change in Plasma.

One way forward might be to backport a newer Pipewire but the newer versions in Ubuntu don't compile easily on our Ubuntu 22.04 base.

Here is one version which does compile so you could try installing that and seeing if it helps but beware it's an untested build
http://embra.edinburghlinux.co.uk/~jr/tmp/pipewire-0.3.58.tar.gz
Comment 15 Nate Graham 2024-08-23 19:15:55 UTC
*** Bug 492095 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2024-08-24 16:44:42 UTC
*** Bug 492105 has been marked as a duplicate of this bug. ***
Comment 17 hinst 2024-08-24 17:44:42 UTC
> Would anyone know how to reproduce this issue?
This issue gets reproduced on my laptop. I got "Plasmashell crashed" dialog window popup every 10 minutes after I installed fresh KDE Neon OS. There appears to be no specific action that triggers the crash. The crash appears randomly when I use my system normally, like switch between Firefox, Konsole and Dolphin windows by clicking on the taskbar. Sometimes the crash popup appears precisely when I click on the taskbar. Sometimes the crash popup appears when I read a news article in Firefox and do nothing (just stare at my screen)
Comment 18 Luca76 2024-08-25 05:39:47 UTC
(In reply to hinst from comment #17)
> by clicking on the taskbar.

For me, 99% of all crashes of plasmashell is due to clicking on taskbar.
Comment 20 Luca76 2024-08-25 13:49:45 UTC
(In reply to Méven Car from comment #19)
> https://invent.kde.org/plasma/kpipewire/-/merge_requests/163

Thank you! Will this fix be backported to 6.1.4? Or we must wait for 6.1.5?
Comment 21 Jonathan Riddell 2024-08-25 16:48:43 UTC
Fix is now in
Comment 22 Nate Graham 2024-08-27 18:38:50 UTC
*** Bug 492135 has been marked as a duplicate of this bug. ***
Comment 23 Nate Graham 2024-08-27 18:39:12 UTC
*** Bug 492141 has been marked as a duplicate of this bug. ***
Comment 24 Nate Graham 2024-08-28 18:23:44 UTC
*** Bug 492312 has been marked as a duplicate of this bug. ***