Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox playing media after exiting program [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Thu Jul 06, 2017 9:37 pm    Post subject: Firefox playing media after exiting program [SOLVED] Reply with quote

I've been having trouble with Firefox continuing to play media after exiting the program. Properly speaking, the process is still running, but the GUI has closed. Anyway, it can run for a minute or two after closing, but doesn't consistently do so. Generally, it happens for a longer period of time if media has been running for a longer period of time. This happens with sites like YouTube and NPR and I do not have Flash installed. As to when this started happening, I'm not entirely sure, but I think it happened sometime when portage upgraded from the 40ish branches to the 50ish branches. Also, in case it's related, Firefox tends not to close properly either. I have it set to clear the cache after closing, but it stopped doing so around the same time I started to encounter the media continuing to play problem. In any case, does anyone know why this is happening? Does anyone know how to fix it.

In case it helps:

Code:
$ emerge --info
Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.23-r4, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-4910MQ_CPU_@_2.90GHz-with-gentoo-2.3
KiB Mem:    16326012 total,  14479820 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 25 Jun 2017 19:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.4 [disabled]
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/ccache:          3.2.4::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.26.3::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
sys-devel/gcc:            4.9.4::gentoo, 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: /home/josyoun/usr/portage
    masters: gentoo

octave
    location: /var/lib/layman/octave
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
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="a52 aac acl acpi alsa amd64 apm bash-completion berkdb bzip2 cdda cddb cli cracklib crypt css cxx dbus djvu dri dvd dvdr ffmpeg flac fortran gcj gdbm gif gnuplot gnutls hdf5 iconv ipv6 jpeg jpeg2k mmx modules mono mozilla mp3 mp4 mpeg mpi mplayer multilib ncurses nls nptl ocaml ocamlopt offensive ogg opengl openmp pcre pdf png readline seccomp session sse sse2 ssl svg tcpd theora threads tiff truetype unicode usb vim-syntax vorbis x264 xattr xv zlib" 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" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev synaptics" KERNEL="linux" L10N="en no nb" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en no nb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel nvidia modesetting" XFCE_PLUGINS="brightness clock" 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, USE_PYTHON


and

Code:

$ emerge -pv firefox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] www-client/firefox-52.2.0::gentoo  USE="dbus gmp-autoupdate jemalloc -bindist -custom-cflags -custom-optimization -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="nb -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 -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

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


Last edited by hfk22 on Sun Aug 20, 2017 5:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 193

PostPosted: Fri Jul 07, 2017 3:25 am    Post subject: Reply with quote

Please expand on the method of use for exiting the program. Is it through your DE or through the application menu, File > Exit


and, when exiting do you have some taskbar view or system tray to be restoring the instance of Firefox GUI, perhaps?
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Fri Jul 07, 2017 3:37 am    Post subject: Reply with quote

Generally, I exit with ctrl-q. However, the same behavior happens when I go the hamburger menu and click the quit button. I don't think that Firefox is going into the system tray, or at least I don't see it. I just quit the browser with three tabs open and no media. The Firefox process continued for about a minute or so before finally disappearing. In the past, I recall the Firefox process ending almost immediately.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 193

PostPosted: Fri Jul 07, 2017 4:04 am    Post subject: (edited) Reply with quote

IDK - But the better solution, I think could either involve an older version of firefox (I run Firefox version 48.0 it seems to do everything very well). Also, I'm not sure if portage has different slots for the program, but have you tried to unmerge and emerge (reinstall)?

That is my suggestion, and hope it helps. Application troubleshooting can be a big mess, hence the need to try older versions and reinstalls. Let the forum know what else you have tried and if there is a work around for the particular program you are using, or the ebuild, it will usually exist in here.

As for the browser's own tools, it probably is not worth checking -- so disregard the comment on (that I edited out here regarding that.)

Otherwise, file a bug?
:P
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Sun Aug 06, 2017 3:04 am    Post subject: Reply with quote

This is not a great solution, but an acceptable one for now. On Firefox 54.0.1, the behavior persists. However, if I close all tabs and clear all cash before closing, the program exits cleanly and immediately. This can be done manually or using an extension like Click&Clean. To be clear, I already had Firefox set to clear all cache on exit, but that didn't matter. Anyway, I wish Firefox did this itself, but at least there's a path forward for now in case anyone else is having trouble.
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Sun Aug 20, 2017 5:13 pm    Post subject: Reply with quote

As a minor update, the problem appears to disappear on www-client/firefox-55.0.1.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 193

PostPosted: Mon Aug 21, 2017 6:55 am    Post subject: Reply with quote

Good, did the fix happen concurrent with a fix of the other problem mentioned about settings to clear all cache? I believe you would have the choice to eliminate use of the cache completely as well. But not sure 100%.
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Wed Aug 23, 2017 4:09 am    Post subject: Reply with quote

It doesn't look like I have to blow out the cache for the browser to exit properly and mostly immediately. I say mostly immediately since technically there's a slight delay, but it's less than a second and I do expect Firefox to clean up a bit. So, to be clear: Before, Firefox would continue to play videos after closing and not kill the process for upwards of over a minute. Either eliminating cache through private browsing or deleting cache by hand would fix this. Now, Firefox closes immediately with cache in the state and without using private browsing. That said, thanks for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum