Open Bug 1708651 Opened 4 years ago Updated 11 months ago

failed to init cubeb

Categories

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

Firefox 88
defect

Tracking

()

UNCONFIRMED

People

(Reporter: grgoffe, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

Just running FF nightly "normally"... NOT viewing video content.

Actual results:

[Child 13789, MediaDecoderStateMachine #1] WARNING: 7f1da2f153c0 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:323
[Child 13789, MediaDecoderStateMachine #1] WARNING: Decoder=7f1dadae6800 [OnMediaSinkAudioError]: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3904
[Child 13789, MediaDecoderStateMachine #1] WARNING: 7f1d8d063820 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:323
[Child 13789, MediaDecoderStateMachine #1] WARNING: Decoder=7f1dadae6800 [OnMediaSinkAudioError]: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3904
[Child 13789, MediaDecoderStateMachine #1] WARNING: 7f1d8d063820 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:323
[Child 13789, MediaDecoderStateMachine #1] WARNING: Decoder=7f1dadae6800 [OnMediaSinkAudioError]: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3904

Expected results:

These messages come out of Firefox Nightly (latest) randomly and have been for some time.

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

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Seems similar with bug1693151, but happened on non-testing environment.

Component: Audio/Video: Playback → Audio/Video: cubeb
Severity: -- → S4
Priority: -- → P3

hi I am also getting the same error and i upgraded all the codes and installed and enabled the codeready repositories and installed ffmpeg codec

[Child 12602, MediaDecoderStateMachine #1] WARNING: 7fc49759a700 OpenCubeb() failed to init cubeb: file /builddir/build/BUILD/firefox-102.10.0/dom/media/AudioStream.cpp:281
[Child 12602, MediaDecoderStateMachine #1] WARNING: Decoder=7fc49a23ed00 [OnMediaSinkAudioError]: file /builddir/build/BUILD/firefox-102.10.0/dom/media/MediaDecoderStateMachine.cpp:3979

(In reply to Divakaran Varadharajalu from comment #3)

hi I am also getting the same error and i upgraded all the codes and installed and enabled the codeready repositories and installed ffmpeg codec

[Child 12602, MediaDecoderStateMachine #1] WARNING: 7fc49759a700 OpenCubeb() failed to init cubeb: file /builddir/build/BUILD/firefox-102.10.0/dom/media/AudioStream.cpp:281
[Child 12602, MediaDecoderStateMachine #1] WARNING: Decoder=7fc49a23ed00 [OnMediaSinkAudioError]: file /builddir/build/BUILD/firefox-102.10.0/dom/media/MediaDecoderStateMachine.cpp:3979

Can you please reproduce with logs enabled, like shown in this video? https://paul.cx/public/about-logging-presentation.webm

The cause is probably that pulseaudio or pipewire aren't running however.

Flags: needinfo?(diva.varadam)

One of my users is suffering from these same symptoms suddenly (FreeBSD-13/amd64). Her firefox-109.0 was fine a months ago, but stopped making sound now. Rebuilding to the to the (currently latest) firefox-116.0.3 didn't help:

[Child 47590, MediaDecoderStateMachine #2] WARNING: 187e78e200c0 OpenCubeb() failed to init cubeb: file /spare/usr/ports/www/firefox/work/firefox-116.0.3/dom/media/AudioStream.cpp:281
[Child 47590, MediaDecoderStateMachine #2] WARNING: Decoder=187e96b51600 [OnMediaSinkAudioError]: file /spare/usr/ports/www/firefox/work/firefox-116.0.3/dom/media/MediaDecoderStateMachine.cpp:4567

Thunderbird in the same session plays videos from e-mail attachments with sound laud and clear, so it is not a hardware issue, is it?

Can you please reproduce with logs enabled, like shown in this video?

This user is not computer-savvy enough to follow these instructions. If there were something, I could turn on/off remotely on her machine, we'd do it...

I'll rebuild it again now -- without ALSA-support this time -- and report.

I'll rebuild it again now -- without ALSA-support this time -- and report.

Nope, rebuilding without ALSA didn't help... Rebooting the system -- out of desperation -- didn't help either. Any attempt to play a YouTube video emits the following two lines, after which the video plays without sound:

[Child 2038, MediaDecoderStateMachine #1] WARNING: 3d1804e8c140 OpenCubeb() failed to init cubeb: file /spare/usr/ports/www/firefox/work/firefox-116.0.3/dom/media/AudioStream.cpp:281
[Child 2038, MediaDecoderStateMachine #1] WARNING: Decoder=3d187b8b2b00 [OnMediaSinkAudioError]: file /spare/usr/ports/www/firefox/work/firefox-116.0.3/dom/media/MediaDecoderStateMachine.cpp:4567

Mikhail, is the machine usually using PulseAudio as its audio backend? You can get more details in any case by setting an env var:

MOZ_LOG=cubeb:5 ./firefox

there are other ways to enable logging to understand what's going on, like changing user preferences that you can do remotely by editing the profile (it seems like you can access the machine remotely but not physically).

However, if it worked with Fx 109 a month ago, and doesn't work now without changing anything, I'm not sure if it's something on our end. This doesn't mean we can't figure it out, however.

Flags: needinfo?(mi+mozilla)

Sorry, but after one more restart it just started to work again :( I'll keep the logging-enabling trick in mind 'till the next time.

Meanwhile, maybe, the "cubeb" code could be modified to do a better job reporting all possible details about the error -- when THERE IS an error, instead of merely advising -- and only on stderr -- that something happened?

Flags: needinfo?(mi+mozilla)

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit BugBot documentation.

Flags: needinfo?(diva.varadam)
You need to log in before you can comment on or make changes to this bug.