Bug 451513

Summary: plasma sometimes crashes on user switch with pipewire
Product: [Plasma] plasmashell Reporter: Christoph Haag <haagch.christoph>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Severity: crash CC: kde, nicolas.fella
Priority: NOR Keywords: drkonqi
Version: 5.24.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christoph Haag 2022-03-15 00:15:07 UTC
Application: plasmashell (5.24.3)

Qt Version: 5.15.3
Frameworks Version: 5.92.0
Operating System: Linux 5.17.0-rc8-1-mainline x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.24.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

Since Iswitched from pulseaudio to pipewire a few months ago, plasma sometimes crashes when switching users (both users run plasma on X11). Users are *not* in the audio group.

Hypothesis is that it's crashing because unlike pulseaudio, pipewire does more aggressive device adding/removing on user switch.

There are a few other long fixed plasma crashes regarding device adding/removing but this one still happens on up to date plasma.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: {_M_t = {<std::__uniq_ptr_impl<char, std::default_delete<char []> >> = {_M_t = std::tuple containing = {[1] = 0x0, [2] = {<No data fields>}}}, <No data fields>}}
[KCrash Handler]
#6  0x00007ff82fec2351 in QPulseAudio::Server::update(pa_server_info const*) (info=<optimized out>, this=<optimized out>) at /usr/src/debug/plasma-pa-5.24.3/src/server.cpp:63
#7  QPulseAudio::Context::serverCallback(pa_server_info const*) (info=<optimized out>, this=<optimized out>) at /usr/src/debug/plasma-pa-5.24.3/src/context.cpp:508
#8  QPulseAudio::server_cb(pa_context*, pa_server_info const*, void*) (context=0x557bc32ff410, info=0x0, data=0x7ff8e8005fe0) at /usr/src/debug/plasma-pa-5.24.3/src/context.cpp:152
#9  0x00007ff82fe00119 in  () at /usr/lib/libpulse.so.0
#10 0x00007ff82fb80114 in  () at /usr/lib/pulseaudio/libpulsecommon-15.0.so
#11 0x00007ff85404d642 in  () at /usr/lib/libpulse-mainloop-glib.so.0
#12 0x00007ff8fb5d9ee3 in g_main_dispatch (context=0x7ff8f0005010) at ../glib/glib/gmain.c:3381
#13 g_main_context_dispatch (context=0x7ff8f0005010) at ../glib/glib/gmain.c:4099
#14 0x00007ff8fb6300f9 in g_main_context_iterate.constprop.0 (context=context@entry=0x7ff8f0005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4175
#15 0x00007ff8fb5d7455 in g_main_context_iteration (context=0x7ff8f0005010, may_block=1) at ../glib/glib/gmain.c:4240
#16 0x00007ff8fd22857a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x557bc286bd50, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#17 0x00007ff8fd1d488b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fff2b878f30, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#18 0x00007ff8fd1dffd7 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#19 0x00007ff8fd5ac432 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#20 0x00007ff8fde2f54a in QApplication::exec() () at kernel/qapplication.cpp:2829
#21 0x0000557bc18ebf81 in main(int, char**) (argc=<optimized out>, argv=0x7fff2b8790d0) at /usr/src/debug/plasma-workspace-5.24.3/shell/main.cpp:238
[Inferior 1 (process 14711) detached]

Possible duplicates by query: bug 382770, bug 382416, bug 372617, bug 371215.

Reported using DrKonqi
Comment 1 Nicolas Fella 2022-03-15 13:01:57 UTC

*** This bug has been marked as a duplicate of bug 437272 ***