[Bug 270436] www/firefox no sound after upgrade

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 6 08:31:52 BST 2023


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270436

--- Comment #19 from Tatsuki Makino <tatsuki_makino at hotmail.com> ---
Further additions.

firefox-112.0,2:
If it is built with all AUDIO options (ALSA, JACK, PULSEAUDIO and SNDIO) turned
off, it will fall down to OSS and this will get sound fine.

I embedded some lines in the source code similar to the following ones and
built it.

MOZ_LOG(gCubebLog, LogLevel::Error, ("%s %d %s: %s", __FILE__, __LINE__,
__func__, "..."));
LOG("%s %d: default_init[%d] = %p", __FILE__, __LINE__, i, default_init[i]);

Then I started firerox with the following options

firefox -P exp-release --no-remote "--MOZ_LOG=cubeb:5" --private-window

This profile has media.cubeb.backend set to oss in about:config.

The following logs were obtained thereby. Just the important parts,

[Parent 44314: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Parent 44314: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 216
GetPrefAndSetString: value.IsEmpty
  ︙
[Child 44354: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 44354: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 222
GetPrefAndSetString: aStorage(oss)
  ︙
[Child 44391: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 44391: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 222
GetPrefAndSetString: aStorage(oss)
  ︙
[Child 44427: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 44427: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 216
GetPrefAndSetString: value.IsEmpty
  ︙
[Child 44428: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 44428: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 216
GetPrefAndSetString: value.IsEmpty
  ︙
[Child 44429: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 44429: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 216
GetPrefAndSetString: value.IsEmpty
  ︙
[Child 47086: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 213
GetPrefAndSetString: Preferences::GetCString(media.cubeb.backend)
[Child 47086: Main Thread]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 216
GetPrefAndSetString: value.IsEmpty
  ︙
[Child 44427: MediaSupervisor #3]: E/cubeb
/usr/ports/www/firefox/work/firefox-112.0/dom/media/CubebUtils.cpp 598
GetCubebContextUnlocked: cubeb_init((null))
[Child 44427: MediaSupervisor #3]: E/cubeb
cubeb.c:276:/usr/ports/www/firefox/work/firefox-112.0/media/libcubeb/src/cubeb.c
276: default_init[0] = 0x0
[Child 44427: MediaSupervisor #3]: E/cubeb
cubeb.c:276:/usr/ports/www/firefox/work/firefox-112.0/media/libcubeb/src/cubeb.c
276: default_init[1] = 0x809770b50

For some reason, sometimes the preference reads correctly for this, and
sometimes it is empty.
When I played YouTube, the preference is not readable, so the backend override
is not working. (default_init[0] = 0x0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list