Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Apr 2023 07:31:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 270436] www/firefox  no sound after upgrade
Message-ID:  <bug-270436-21738-i3cGrcguB5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270436-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270436-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270436

--- 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) tu=
rned
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] =3D %p", __FILE__, __LINE__, i, default_init[i=
]);

Then I started firerox with the following options

firefox -P exp-release --no-remote "--MOZ_LOG=3Dcubeb: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
=E3=80=80=E3=80=80=EF=B8=99
[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)
=E3=80=80=E3=80=80=EF=B8=99
[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)
=E3=80=80=E3=80=80=EF=B8=99
[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
=E3=80=80=E3=80=80=EF=B8=99
[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
=E3=80=80=E3=80=80=EF=B8=99
[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
=E3=80=80=E3=80=80=EF=B8=99
[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
=E3=80=80=E3=80=80=EF=B8=99
[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/cu=
beb.c
276: default_init[0] =3D 0x0
[Child 44427: MediaSupervisor #3]: E/cubeb
cubeb.c:276:/usr/ports/www/firefox/work/firefox-112.0/media/libcubeb/src/cu=
beb.c
276: default_init[1] =3D 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 overr=
ide
is not working. (default_init[0] =3D 0x0)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270436-21738-i3cGrcguB5>