[Bug 270436] www/firefox no sound after upgrade
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 270436] www/firefox no sound after upgrade"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Apr 2023 07:31:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270436 --- Comment #19 from Tatsuki Makino <tatsuki_makino@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 the assignee for the bug.