Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] WirePlumber suddenly just dies (~amd64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ruby_R53
n00b
n00b


Joined: 09 Nov 2024
Posts: 15
Location: State of São Paulo, Brazil

PostPosted: Mon Dec 09, 2024 2:43 pm    Post subject: [SOLVED] WirePlumber suddenly just dies (~amd64) Reply with quote

About a week ago, I got an update for media-video/pipewire and media-video/wireplumber.

Audio still worked normally right after I emerged those packages, but then on the next day my audio just stopped working several minutes after I booted my PC.

I then tried different versions of media-video/pipewire — the live ebuild and the normal amd64 one. Still, no difference. Audio was working normally for just a day.

That was because I initially thought it was PipeWire's fault, but then I noticed that when that happens, I see PipeWire still running in htop.

Then, yesterday I tried a different build of media-video/wireplumber — the normal amd64 ebuild. Well, today I ran into the same issue, no luck.

And that's because I realized that WirePlumber is the one that disappears from the process list. Since it started happening after I got that update, I just assumed it could be fixed by downgrading it to a previously-working one. Seems like that's not the case, so I have no idea.

The issue seems to happen only while I'm playing something, be it a video on my web browser, a game, any app at all, and I really can't tell what exactly from that triggers it.

Code:
media-video/pipewire-1.2.7::gentoo was built with the following:
USE="dbus elogind pipewire-alsa sound-server -X -bluetooth -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -readline -roc (-selinux) -ssl (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="(64) -32 (-x32)"

media-video/wireplumber-0.5.6-r1::gentoo was built with the following:
USE="elogind (-system-service) -systemd -test" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-4 -lua5-3"


Last edited by ruby_R53 on Sat Dec 14, 2024 11:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5310
Location: Bavaria

PostPosted: Mon Dec 09, 2024 3:10 pm    Post subject: Reply with quote

You are using pipewire with the Use-flag "sound-server" enabled ... so please make sure you dont have two sound servers. Please read more here:
https://wiki.gentoo.org/wiki/PipeWire#USE_flags

If you need more help please provide the output of:

- emerge --info
- grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
ruby_R53
n00b
n00b


Joined: 09 Nov 2024
Posts: 15
Location: State of São Paulo, Brazil

PostPosted: Mon Dec 09, 2024 3:25 pm    Post subject: Reply with quote

Quote:
so please make sure you dont have two sound servers.


i don't, pipewire is the only one i have


Quote:
emerge --info

http://0x0.st/XhjD.bin

Quote:
grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage

http://0x0.st/Xhjd.txt
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5310
Location: Bavaria

PostPosted: Mon Dec 09, 2024 3:58 pm    Post subject: Reply with quote

I see you already have a lot of experience with configuring Gentoo using customized use-flags. I would never recommend a beginner to globally enable the use-flag “minimal”; similarly, “udev” and “nls” should never be globally disabled. After reviewing your configuration, I will have to pass this problem on to experts, as your configuration is beyond my knowledge.

Some of the lines I looked at:
Code:
/etc/portage/package.use:x11-base/xorg-server -minimal udev

/etc/portage/package.use:media-video/vlc -alsa -dts -dvbpsi -encode fontconfig -gcrypt -jpeg -libsamplerate -mp3 -mpeg -png pulseaudio -ssl -svg vpx -x264

/etc/portage/package.use:media-libs/libsdl2 -alsa haptic joystick -pulseaudio

/etc/portage/package.use:media-video/pipewire -X pipewire-alsa -readline sound-server -ssl

/etc/portage/package.use:media-libs/libsdl -alsa joystick

/etc/portage/package.use:media-sound/mpg123 -alsa pulseaudio -sdl
/etc/portage/package.use:media-plugins/mpg123-output-plugins -alsa -ipv6 pulseaudio -sdl
/etc/portage/package.use:media-sound/mpg123-base -alsa pulseaudio

/etc/portage/make.conf:ACCEPT_KEYWORDS="~amd64"

/etc/portage/package.accept_keywords:media-video/wireplumber -~amd64

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
ruby_R53
n00b
n00b


Joined: 09 Nov 2024
Posts: 15
Location: State of São Paulo, Brazil

PostPosted: Mon Dec 09, 2024 4:17 pm    Post subject: Reply with quote

hmm i see
Back to top
View user's profile Send private message
ruby_R53
n00b
n00b


Joined: 09 Nov 2024
Posts: 15
Location: State of São Paulo, Brazil

PostPosted: Sat Dec 14, 2024 11:38 pm    Post subject: Reply with quote

UPDATE: it turns out, the issue was··· my kernel configuration?

around the time i got that update for those packages, i also decided to try the new real-time preemption model on the new kernel version i've got, and that's where the issue began···

just a few days after the last response on this thread, i randomly decided to go back to the previous setting i had (Low-latency desktop) and compare it to the real-time kernel

turns out, the issue was happening on the real-time kernel and not on the low-latency one

i kept using the functional one for a few days just to make sure that was the case, and it really was

so oops x)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5310
Location: Bavaria

PostPosted: Sun Dec 15, 2024 11:35 am    Post subject: Reply with quote

ruby_R53,

thank you very much for your feedback! :D

When you use your real-time kernel are there any error messages in "dmesg" when the problem with your sound occurs?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
ruby_R53
n00b
n00b


Joined: 09 Nov 2024
Posts: 15
Location: State of São Paulo, Brazil

PostPosted: Sun Dec 15, 2024 2:05 pm    Post subject: Reply with quote

nothing, but that could be because i made my kernel less verbose

by the way, to be more specific i was using Zen kernel version 6.12.4 back when this was happening, not sure if the same happens on the vanilla kernel with the same settings
Back to top
View user's profile Send private message
FranciscoJaimes
n00b
n00b


Joined: 15 Jan 2025
Posts: 24
Location: Mexico

PostPosted: Wed Jan 15, 2025 10:16 pm    Post subject: Reply with quote

It sounds like the issue is with WirePlumber crashing or being terminated unexpectedly, which causes audio to stop. Since PipeWire is still running, but WirePlumber isn't, it suggests a problem specifically with the session manager (WirePlumber) rather than PipeWire itself.

You could try:

Checking WirePlumber logs (journalctl -xe | grep wireplumber) for any error messages.
Ensuring you have the latest stable version of WirePlumber and PipeWire, as the issue might have been fixed in a newer release.
Experimenting with switching to another session manager like pipewire-media-session, which might provide more stability.
If downgrading WirePlumber or switching session managers doesn't resolve the issue, there may be a deeper configuration or hardware-related conflict that needs further investigation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum