Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627426 - www-client/firefox: upgrade from 52.2.0 to 52.3.0 breaks audio on youtube
Summary: www-client/firefox: upgrade from 52.2.0 to 52.3.0 breaks audio on youtube
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-09 20:33 UTC by tt_1
Modified: 2017-09-14 22:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Disable sandbox support in esr eclass (revert-sandbox-change.patch,539 bytes, patch)
2017-09-07 13:04 UTC, Jory A. Pratt
Details | Diff
output of emerge --info (emerge.info.amd64,5.53 KB, text/plain)
2017-09-09 15:57 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2017-08-09 20:33:49 UTC
I wanted to test the new firefox and later downgraded back to the 52.3.0-esr version. Now audio in youtube is broken. Also my saved tabs from the last session were lost at some point, but this I cannot reproduce. 


lines from xsession-errors

###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


###!!! [Child][MessageChannel] Error: (msgtype=0x9A0025,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv


(/usr/lib64/firefox/plugin-container:23041): dconf-CRITICAL **: unable to create file '/var/run/user/1000/dconf/user': Keine Berechtigung.  dconf will not work properly.

(/usr/lib64/firefox/plugin-container:23041): dconf-CRITICAL **: unable to create file '/var/run/user/1000/dconf/user': Keine Berechtigung.  dconf will not work properly.

(/usr/lib64/firefox/plugin-container:23041): dconf-CRITICAL **: unable to create file '/var/run/user/1000/dconf/user': Keine Berechtigung.  dconf will not work properly.
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2017-08-09 20:48:38 UTC
Unfortunately I don't think it has ever been "safe" to downgrade firefox versions on a profile (although it has worked on quite a number of occasions).  Please try starting a clean profile and see if the issue persists with firefox-52.3.
Comment 2 tt_1 2017-08-09 20:56:10 UTC
Yeah, I used another user, tried a blank profile or used my three months old backup instead, for all of them the audio worked for html5 streams. Do you see any chance to rescue the current profile?
Comment 3 Jonas Stein gentoo-dev 2017-08-10 09:58:15 UTC
I have seen profile rescue tools. But on a mozilla forum/chat you will get better support. I close here, as it is an upstream bug, we can do nothing from the gentoo perspective.
Comment 4 tt_1 2017-08-10 10:35:53 UTC
Ok, but can you please privode people with a proper warning? Because in the meantime I learned that Mozilla now explicitly denies backwards compability of profiles from 55.0 on, but sometimes there are bugs making the browser unusable as in #617690 where fonts are rendered unreadable for some users.
Comment 5 tt_1 2017-08-10 15:14:06 UTC
I'm reopening because I could reproduce this on a clean profile. Can't nail it down yet, but I found out that firefox-bin-52.3.0 does *not* have this problem while firefox-52.3.0 is affected. 

Is there anything about the patchset that could be responsible?
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2017-08-10 15:21:04 UTC
OK, so if the issue is youtube and some other sites not working with 52.3 and nothing related to the downgrade, are you ok if we adjust the subject to match?

(I vaguely recall there being something mentioned about this before but I recall neither the specifics nor the solution at the moment)
Comment 7 tt_1 2017-08-10 15:42:42 UTC
So I made it, hopefully. 

There are preferences to enable or disable Electrolysis (multithreading) in firefox. It used to be activated for the upstream binaries, but deactivated in the binaries build from sources by anyone not from the upstream team. 

It can be disabled or enabled via

browser.tabs.remote.autostart
browser.tabs.remote.autostart2

where a value of true enables it, a value of false disables it. Per default for the gentoo www-client/firefox it seems to be that first one is disabled (value=false) and the autostart2 is enabled (value=true). If this is the correct preset I'd opt to turn both values to false by default via gentoo-default-prefs.js-1 as long as Electrolysis is not considered to be stable. 

I had the same problem on another maschine, where I upgraded from 51.2.1 to 52.3.0, so not sure about anything right now.
Comment 8 Andrzej Rybczak 2017-08-13 13:18:24 UTC
I can confirm that is seems to be the problem related to Electrolysis and NOT downgrade - I have the same problem (no sound on youtube) after upgrading 52.2.0 to 52.3.0.

Setting browser.tabs.remote.autostart to false seems to fix the issue.
Comment 9 tt_1 2017-09-01 19:04:15 UTC
Has this been fixed in firefox-52.2-patches-03.tar.xz @Ian? There is a commit in the overlay: https://cgit.gentoo.org/proj/mozilla.git/commit/?id=890bd40a38a79e76463e1c60d7d018b484af598e
Comment 10 Jory A. Pratt gentoo-dev 2017-09-01 19:32:11 UTC
I see no emerge --info on this bug. Without it noone can answer your questions.
Comment 11 tt_1 2017-09-01 19:56:16 UTC
The commit in the mozilla overlay is written and commited by you, why don't you reply in a more cooperative way? In the meantime I found out that you added 2003_fix_sandbox_prlimit64.patch into the tarball, and therefore it is not very likely that this solved the sound issues.
Comment 12 Robert Gill 2017-09-05 03:07:09 UTC
Audio has stopped working after the recent update to Firefox for me as well. I noticed that there's a zombie dbus process that doesn't appear until after Firefox is launched if that's any help.

ps -A | grep dbus
 2877 ?        00:00:00 dbus-daemon
 3442 ?        00:00:00 dbus-launch
 3443 ?        00:00:00 dbus-daemon
 3450 ?        00:00:00 dbus-daemon
 3457 ?        00:00:00 dbus-launch
 3458 ?        00:00:00 dbus-daemon
 3625 ?        00:00:00 dbus-daemon <defunct>

emerge --info:
Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r4, 4.12.5-gentoo x86_64)
=================================================================
System uname: Linux-4.12.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    32911848 total,  31675456 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 04 Sep 2017 19:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl alsa amd64 amr anacron ao apng audiofile audit avx awt berkdb bidi branding bzip2 cairo cdda cddb cdio cdparanoia cdr cjk clang cli cracklib crypt cscope css cups cvs cxx dbus dga dia doc docbook dot dri dv dvd encode examples exif extra faac faad ffmpeg fftw flac fontconfig fortran frei0r gcj gd gdbm geoip gif git glamor gnumeric gnutls go graphite graphviz gstreamer gtk gtk3 guile hdf5 highlight iconv icu id3tag imagemagick ipv6 jadetex java jbig jit jpeg jpeg2k kate ladspa lame lapack latex libass libcaca libsamplerate lua luajit lzma lzo mad maildir mbox midi mmx mmxext mng mod modplug modules mp3 mpeg mudflap multilib musicbrainz ncurses netbeans nls nptl nsplugin objc objc++ objc-gc offensive ogg openal opengl openmp openssl pam pcre pdf perl png policykit popcnt postscript python rcs readline rle rtc rtf ruby sdl seccomp session smp sndfile speex spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 subversion svg syslog tcl tcpd tga theora threads tiff timidity tk truetype twolame udev unicode vamp vdpau vim vim-pager vim-syntax vorbis vpx webkit x264 xcb xetex xft xml xpm xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en en-US ja" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Rune 2017-09-05 20:05:25 UTC
I too can confirm that an upgrade from 52.2.0 to 52.3.0 broke sound on youtube, and setting browser.tabs.remote.autostart.2 to false fixed the problem.
Comment 14 Evert 2017-09-05 20:53:05 UTC
Confirmed: no audio. Note:
- I use alsa
- I do NOT use pulseaudio in any way

Could this be related to https://bugzilla.mozilla.org/show_bug.cgi?id=1345661 ?
Comment 15 Evert 2017-09-05 21:00:34 UTC
browser.tabs.remote.autostart.2 = false also fixed it for me. However, I needed to restart firefox first.
Comment 16 Jory A. Pratt gentoo-dev 2017-09-06 00:46:15 UTC
(In reply to Evert from comment #14)
> Confirmed: no audio. Note:
> - I use alsa
> - I do NOT use pulseaudio in any way
> 
> Could this be related to
> https://bugzilla.mozilla.org/show_bug.cgi?id=1345661 ?

This could very well be we flip'd sandboxing on in 52.3 bump. If someone wants to revert the change in the eclass and test, we can determine for sure if it is sandboxing issue.
Comment 17 Jory A. Pratt gentoo-dev 2017-09-06 00:49:10 UTC
(In reply to tt_1 from comment #11)
> The commit in the mozilla overlay is written and commited by you, why don't
> you reply in a more cooperative way? In the meantime I found out that you
> added 2003_fix_sandbox_prlimit64.patch into the tarball, and therefore it is
> not very likely that this solved the sound issues.

We have standards for bug filling for a reason. It is not our job to guess are your setup to try and duplicate the issue. If you are not comfortable providing the basic info then please seek help elsewhere.
Comment 18 Jory A. Pratt gentoo-dev 2017-09-07 13:04:24 UTC
Created attachment 492934 [details, diff]
Disable sandbox support in esr eclass

Soon as someone can confirm if the eclass change being reverted fixes the problem I will push to tree.
Comment 19 Stef 2017-09-09 10:26:11 UTC
(In reply to Jory A. Pratt from comment #18)
> Created attachment 492934 [details, diff] [details, diff]
> Disable sandbox support in esr eclass
> 
> Soon as someone can confirm if the eclass change being reverted fixes the
> problem I will push to tree.

Finally finished the rebuild with the eclass change reverted, and it fixes the missing sound for me when using electrolysis / multi-process.

The sound always worked if I disable electrolysis by setting both of the mentioned autostart configs to false (which is the default, I think?), regardless of the eclass change.

(firefox-52.3.0 on amd64 4.11.12-ck, built with "dbus gmp-autoupdate jemalloc pgo", using the alsa backend and not pulseaudio, which is the only reason I don't use firefox-bin in the first place.)
Comment 20 tt_1 2017-09-09 15:57:55 UTC
Created attachment 493524 [details]
output of emerge --info

I'm using these flags for firefox 

[ebuild   R    ] www-client/firefox-52.3.0::gentoo  USE="custom-cflags custom-optimization dbus hwaccel system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite -bindist -debug -gmp-autoupdate -gtk2 -hardened -jack -jemalloc (-neon) -pgo -pulseaudio -rust (-selinux) -startup-notification (-system-cairo) {-test} -wifi" L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 0 KiB

USE="-pulseaudio" means that I use the alsa backend, kernel is 4.9.48 

I can't test at the moment because my headphones are sent in for a maintenance, but if the revert of the sandbox option in the eclass leads to working electrolysis / multithreading, and working sound with youtube, I'm all in. 

Just wonder for which reason it got activated?
Comment 21 Jory A. Pratt gentoo-dev 2017-09-10 14:39:15 UTC
Sandbox is disabled on esr builds, change made via eclass so no revision bumps
Comment 22 frostblue 2017-09-14 22:15:21 UTC
As asked, quick comment from my case. I had the same symptoms, the proposed fix did solve my issue, and after rebuilding firefox from a freshly synced portage tree, same version, I do not reproduce the bug anymore either, while reverting back to the default settings which are

browser.tabs.remote.autostart false
browser.tabs.remote.autostart2 true

with the following config for firefox itself

[ebuild   R    ] www-client/firefox-52.3.0::gentoo  USE="bindist gmp-autoupdate jemalloc -custom-cflags -custom-optimization -dbus -debug -gtk2 -hardened -hwaccel -jack (-neon) -pgo -pulseaudio (-rust) (-selinux) -startup-notification (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite
{-test} -wifi" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"

pulseaudio is globally disabled on my system and I do not have it installed.