Closed Bug 1904090 Opened 1 year ago Closed 1 year ago

MediaDecoderStateMachine crashing

Categories

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

Firefox 127
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ksthiele, Unassigned)

Details

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

Steps to reproduce:

(I'm using Firefox Flatpak on Fedora Silverblue 40 Gnome)

  1. Open a Running Twitch Stream with Audio
  2. Switch Audio Source (Digital to Analog (and vice versa) in my case)

Actual results:

The browser started hanging and then crash with

flatpak run org.mozilla.firefox
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
[Child 341, MediaDecoderStateMachine #1] WARNING: 7f970e7e5160 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:280
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
[Child 341, MediaDecoderStateMachine #1] WARNING: 7f970977d4c0 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:280
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

Expected results:

it should have safely switch audio source

Summary: MediaDecoderStateMachine OpenCubeb() → MediaDecoderStateMachine crashing

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

Component: Untriaged → Audio/Video: cubeb
Product: Firefox → Core
Flags: needinfo?(kinetik)

Thanks for reporting this. Is a crash report visible in about:crashes for the crash? If so, a link to the crash report would be appreciated. Also can you please attach a copy of the data from about:support?

Running Firefox with audio logging enabled may also help narrow down the cause of this, so if you can run:

MOZ_LOG=cubeb:5 MOZ_LOG_FILE=firefox.log path/to/firefox

and attach any firefox.log* files produced that'd be very helpful. Thanks!

Flags: needinfo?(kinetik) → needinfo?(ksthiele)

Looks like there is no crash report generated

MOZ_LOG=cubeb:5 MOZ_LOG_FILE=firefox.log flatpak run org.mozilla.firefox
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_19
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
libva info: va_openDriver() returns 0
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
Failed to create /var/home/kay/.var/app/org.mozilla.firefox/cache for shader cache (Permission denied)---disabling.
[Child 523, MediaDecoderStateMachine #1] WARNING: 7f1cecde8820 OpenCubeb() failed to init cubeb: file /builds/worker/checkouts/gecko/dom/media/AudioStream.cpp:285

Flags: needinfo?(ksthiele)

ok, after digging some more using above logs, turns out its a Pipewire USB DAC issue https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2192

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