Bug 1915988

Summary: pa messages lost?
Product: [Fedora] Fedora Reporter: Mads Kiilerich <mads>
Component: pipewireAssignee: Wim Taymans <wtaymans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: brunovern.a, mads, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pipewire-0.3.20-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-24 01:26:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mads Kiilerich 2021-01-13 21:31:20 UTC
Description of problem:

It seems like some kind of control messages between PA, pipewire, and Jack sometimes are lost.

Version-Release number of selected component (if applicable):

pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-libs-0.3.19-2.fc33.x86_64
pipewire-0.3.19-2.fc33.x86_64
pipewire-jack-audio-connection-kit-0.3.19-2.fc33.x86_64
pipewire-alsa-0.3.19-2.fc33.x86_64
pipewire-gstreamer-0.3.19-2.fc33.x86_64
pipewire-pulseaudio-0.3.19-2.fc33.x86_64
pipewire-utils-0.3.19-2.fc33.x86_64
pipewire-doc-0.3.19-2.fc33.x86_64
qjackctl-0.6.3-2.fc33.x86_64

How reproducible:

Varies. Sometimes 1 in 5 attempts. Sometimes many attempts without "success".

Steps to Reproduce:

Firefox is running and playing youtube. QjackCtl Graph shows Firefox with output_FL and output_FR connected to playback_FL and playback_FR .

I see problems that I seem to be able to reproduce regularly by repeatedly alternating between running two commands:
pactl set-default-sink alsa_output.pci-0000:00:1b.0.analog-stereo
pactl set-default-sink alsa_output.usb-E-MU_Systems__Inc._E-MU_0404___USB_E-MU-5D-3F04-07D60C0E-004F9-STATION_2-00.analog-stereo

1. Usually, the firefox sound changes to be routed accordingly. But sometimes, the commands do nothing. It works when running the command again.
2. Sometimes, I end up with QjackCtl only showing L as connected (even though R also plays correctly). F5 doesn't fix it. Quitting and restarting QjackCtl shows it correctly.
3. Sometimes (rarely) I end up with QjackCtl only showing output_FL - there is no output_FR.

Because the pactl command sometimes is skipped, I guess there at least must be a problem with some messages being lost somewhere in pipewire land - it can't be blamed entirely on QjackCtl.

Comment 1 Wim Taymans 2021-01-14 14:33:59 UTC
It could be a manifestation of:

https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/392

Comment 2 Mads Kiilerich 2021-01-15 13:03:16 UTC
Thanks. I will test ... but I guess it only is feasible when the fix is available in an rpm, which I expect will be when 0.3.20 lands, probably in a couple of weeks.

Comment 3 Wim Taymans 2021-01-22 12:47:02 UTC
0.3.20 for testing:

https://bodhi.fedoraproject.org/updates/FEDORA-2021-f279349372

Comment 4 Fedora Update System 2021-01-22 12:50:18 UTC
FEDORA-2021-f279349372 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f279349372

Comment 5 Fedora Update System 2021-01-23 02:09:44 UTC
FEDORA-2021-f279349372 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f279349372`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f279349372

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Mads Kiilerich 2021-01-23 18:34:20 UTC
Using pipewire-0.3.20-1.fc33.x86_64 I again saw the thing with QjackCtl only showing one firefox output. I will try and see if I can figure out how to reproduce it.

What kind of info could help track this down? Some kind of message dump to figure out if PW is sending the right things out?

Comment 7 Fedora Update System 2021-01-24 01:26:03 UTC
FEDORA-2021-f279349372 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.