You are not logged in.

#1 2024-10-07 19:29:09

Ketrel
Member
Registered: 2022-11-14
Posts: 34

[SOLVED]Microphone access causing Pipewire to go haywire causing crash

I have an issue, there's certain actions that cause it.  Two very consistent ones are any time I join a voice channel in discord, and when I launch new Wine processes, specifically World of Warcraft.  My audio devices appear to re-enumerate somehow.
It's not producing any sort of error that I can see, just more what looks like output about the aftermath.  Dmesg doesn't seem to show anything, but the user-level journalctl shows some output from kde's pulse components about "no object for name" for various audio devices as it re-enumerates.  The lack of output in dmesg makes me think the audio device I use (Razer Kraken V3 X) is not disconnecting. Sound during this time would blip, but does continue to work after.

Normally I wouldn't have mentioned anything at all other than passively trying to figure out what's happening, but Discord has decided when this happens, it's going to dump core, and frankly I don't blame it, the amount of times I see the little toast from KDE about the active audio device makes me think whatever it's doing it's doing a few times.

I'm using X11 and KDE/Plasma.
In this snippet, I opened Discord, opened Konsole, and then joined a voice channel.

Oct 07 15:21:09 ragnarok systemd[1037]: Started Konsole - Terminal.
Oct 07 15:21:29 ragnarok steam[2194305]: WARNING: discarding _NET_WM_PID 37 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Oct 07 15:21:31 ragnarok kernel: xhci_hcd 0000:00:14.0: WARN Event TRB for slot 18 ep 1 with no TDs queued?
Oct 07 15:21:31 ragnarok kded6[1729]: Registering ":1.7204/StatusNotifierItem" to system tray
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-output-0"
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-output-0"
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_input.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-input-0"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-output-0"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-output-0"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_input.usb-Razer_Razer_Kraken_V3_X_00000000-00.pro-input-0"
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:31 ragnarok discord[2280384]: Assertion 'pa_channels_valid(channels)' failed at ../pulseaudio/src/pulse/volume.c:74, function pa_cvolume_set(). Aborting.
Oct 07 15:21:31 ragnarok kded6[1729]: Service  ":1.7204" unregistered
Oct 07 15:21:31 ragnarok discord[2280266]: [1007/152131.901624:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Oct 07 15:21:31 ragnarok systemd-coredump[2280717]: Process 2280384 (Discord) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Oct 07 15:21:31 ragnarok systemd[1]: Started Process Core Dump (PID 2280717/UID 0).
Oct 07 15:21:31 ragnarok systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_input.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_input.usb-Razer_Razer_Kraken_V3_X_00000000-00.analog-stereo"
Oct 07 15:21:33 ragnarok plasmashell[1801]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:76: TypeError: Cannot read property 'pulseProperties' of undefined
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok kded6[1729]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok plasmashell[1801]: org.kde.pulseaudio: No object for name "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Headphones__sink.monitor"
Oct 07 15:21:33 ragnarok kernel: xhci_hcd 0000:00:14.0: WARN Event TRB for slot 18 ep 1 with no TDs queued?
Oct 07 15:21:33 ragnarok (sd-parse-elf)[2280720]: Could not parse number of program headers from core file: invalid `Elf' handle
Oct 07 15:21:33 ragnarok systemd-coredump[2280718]: [?] Process 2280384 (Discord) of user 1000 dumped core.

Here's discord's output when it occurs

Assertion 'pa_channels_valid(channels)' failed at ../pulseaudio/src/pulse/volume.c:74, function pa_cvolume_set(). Aborting.
[1007/154257.363636:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[WebContents] crashed (reason: crashed, exitCode: 134)... reloading
Optional module ./ElectronTestRpc was not included.
blackbox: 2024-10-07T19:42:59.405Z 11 ❌ render-process-gone { reason: 'crashed', exitCode: 134 }
blackbox: 2024-10-07T19:42:59.411Z 12 window.closed win2
blackbox: 2024-10-07T19:42:59.416Z 13 ✅ webContents.created web3 ""
blackbox: 2024-10-07T19:42:59.419Z 14 ✅ window.created win3 "Discord"
blackbox: 2024-10-07T19:42:59.422Z 15 webContents.destroyed web2
[37:1007/154259.451452:ERROR:interface_endpoint_client.cc(722)] Message 0 rejected by interface blink.mojom.WidgetHost
legacyModuleUpdater: installed-module discord_krisp 1 1 true
legacyModuleUpdater: installed-module discord_game_utils 1 1 true
INFO [discord_log] Setup new logger for module discord_zstd
Log is written to /home/master/.config/discord/logs/discord_zstd_rCURRENT.log
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
WEIGHT /home/master/.config/discord/0.0.70/modules/discord_krisp/c5.n.s.20949d.kw
WEIGHT /home/master/.config/discord/0.0.70/modules/discord_krisp/c5.s.w.c9ac8f.kw
WEIGHT /home/master/.config/discord/0.0.70/modules/discord_krisp/c6.f.s.ced125.kw
WEIGHT /home/master/.config/discord/0.0.70/modules/discord_krisp/VAD_model.kw
mainScreen.on(did-finish-load) false true
blackbox: 2024-10-07T19:43:00.362Z 16 ✅ webContents.did-finish-load web3
splashScreen.pageReady
splashScreen.destroySplash: splashWindow is null or destroyed.
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: CHECK_FOR_UPDATES UPDATE_NOT_AVAILABLE
2024-10-07T19:43:00.507Z [Modules] Checking for host updates.
legacyModuleUpdater: installed-module discord_rpc 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
[343:1007/154300.552719:ERROR:ffmpeg_common.cc(965)] Unsupported pixel format: -1
2024-10-07T19:43:00.588Z [Modules] Host is up to date.
2024-10-07T19:43:00.588Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2024-10-07T19:43:00.591Z [Modules] No module updates available.
legacyModuleUpdater: update-check-finished
Assertion 'pa_channels_valid(channels)' failed at ../pulseaudio/src/pulse/volume.c:74, function pa_cvolume_set(). Aborting.
[1007/154301.792320:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[WebContents] double crashed (reason: crashed, exitCode: 134)... RIP =(
notificationScreen.webContentsSend: win is invalid undefined.
blackbox: 2024-10-07T19:43:03.612Z 17 ❌ render-process-gone { reason: 'crashed', exitCode: 134 }
Warning: removing 1 bytes from stdin

Parent is shutting down, bye...

It struck me that it was happening when I joined a voice channel and when I open World of Warcraft via Wine (which has voice capability) to on a whim, I opened Audacity, and that too triggers it.

EDIT: an additional datapoint is Audacity -> Audio Setup -> Rescan Audio Devices also triggers it

TITLE EDIT: Due to finding it seems to be triggered by microphone access (joining a discord voice channel, launching WoW which does touch the microphone) and does not happen with the same physical headset on another Arch machine that uses Pulse, rather than Pipewire (which I have to use on this system), I've changed the title to more accurately reflect the issue as I've identified thus far.

Last edited by Ketrel (2024-10-08 23:51:22)

Offline

#2 2024-10-07 22:53:40

Ketrel
Member
Registered: 2022-11-14
Posts: 34

Re: [SOLVED]Microphone access causing Pipewire to go haywire causing crash

I've been going through forum topics looking for anything similar, the pipewire involvement, and the trigger (applications that can use microphone input) looks very familiar, though pipewire doesn't appear to be crashing in my case.

https://bbs.archlinux.org/viewtopic.php?id=299854

Offline

#3 2024-10-08 23:50:58

Ketrel
Member
Registered: 2022-11-14
Posts: 34

Re: [SOLVED]Microphone access causing Pipewire to go haywire causing crash

Searching around more, I also found this: https://bbs.archlinux.org/viewtopic.php?id=299332

Considering the timing, I gave removing ~/.local/state/wireplumber a try

This appears to have fixed it.

Offline

Board footer

Powered by FluxBB