Closed Bug 1698285 Opened 3 years ago Closed 3 years ago

No sound in firefox using jack backend (jack ports not auto connecting)

Categories

(Core :: Audio/Video: cubeb, defect)

Firefox 86
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzilla.mozilla, Unassigned)

Details

This is regarding the cubeb/jack backend on a system running solely jack (no pulseaudio or similar).

When playing any video with sound or an audio file: no sound is output. The icon on the respective tab indicated audio is playing. Looking at the jack patch bay, Firefox does not connect to the default system audio sink anymore as was the case prior to FF84. Connecting the ports manually does output sound. As the jack client in recreated any time audio playback stops - the ports get disconnected again.

Expected behavior: Firefox should connect to the default system output ports to play back sound, similar to the way all other applications handle this (VLC, quodlibet, chromium, ...)

I am aware of https://github.com/mozilla/cubeb/pull/613 changing the default behavior, but this seems broken on many systems see https://bugs.archlinux.org/task/69014.

I start my jack server via jack_control and do NOT set a flag to disable auto connect.

Just to add the exact commands I run on my system to start jack (packages: jack2, jack2-dbus, jack_utils on Archlinux):

(In reply to Angelo from comment #1)

Just to add the exact commands I run on my system to start jack (packages: jack2, jack2-dbus, jack_utils on Archlinux):

jack_control start
jack_control ds alsa
jack_control dps device hw:PCH
jack_control dps rate 48000
jack_control dps nperiods 2
jack_control dps period 1024

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: cubeb' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Audio/Video: cubeb
Product: Firefox → Core

I just rebuilt from source (with --enable-jack) and it seems to be resolved (latest HG tree 638585:79dd36ae4a18 ~FF88).
So I installed and tested with the firefox-developer-edition (FF87) where sound works again as well.

Hence I am not sure what to do with this ticket as there is ESR and FF84-86 with jack enabled is essentially broken in those releases.

Thanks for the bug report. The JACK backend isn't enabled by default or actively supported by Mozilla, it's maintained only by outside contributions.

I suspect the bug you're seeing is due to this change: https://github.com/mozilla/cubeb/commit/c0adf049c22d995e4692bbbe573dfffbfbbdaf69 (merged in bug 1674825, Firefox 84)

Which was later repaired via: https://github.com/mozilla/cubeb/commit/8d53747d4adc3b0b03ebf79b05f1fff08c5ae8ef (merged in bug 1693186, Firefox 87)

That should mean ESR is unaffected, so if the JACK backend is also broken in ESR for you it may be due to some other issue.

Given this is fixed in the current version, I'll close this bug and mark it as fixed.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.