Connections can't fail as stream creation errors are not being caught or streams waited for, creating zombie connections slowing audio, eventually killing it
pwvucontrol does not suffer from this - https://github.com/saivert/pwvucontrol
pavucontrol-qt has the same issue - https://github.com/lxqt/pavucontrol-qt/issues/289
Repro steps:
- Download (seems to reproduce with anything, tried this MP3 and a random AAC): https://pixabay.com/sound-effects/happy-pop-2-185287/ and save as TEST.mp3
Unnecessary repro step
- Create
bug.py
in the same folder:
#!/usr/bin/env python
from playsound import playsound
while True:
playsound("./TEST.mp3")
- Run
pw-top
in one window - Run
pavucontrol
Older repro step
5. Run `chmod +x bug.py; ./bug.py` in anothergst-launch-1.0 -v playbin uri=file:///home/user/TEST.mp3
Step 4:
Step 5:
This very quickly starts breaking pipewire, causing pipewire/pipewire#3532 (comment 2369336)
Also each run causes this in the logs:
Sep 20 19:48:34 Luxuria wireplumber[2532623]: wp-event-dispatcher: <WpAsyncEventHook:0x5564ab9d9300> failed: <WpSiStandardLink:0x5564abcba400> link failed: some node was destroyed before the link was created
Edited by Martin Rys