Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Firefox 60.0 crashes when closing Youtube tabs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Maf
Apprentice
Apprentice


Joined: 15 May 2005
Posts: 288

PostPosted: Sat May 26, 2018 8:17 am    Post subject: [SOLVED] Firefox 60.0 crashes when closing Youtube tabs Reply with quote

Hi guys, not all the time, but very often, Firefox 60.0 crashes when I close a tab with a youtube video:
Code:
firefox: /var/tmp/portage/www-client/firefox-60.0/work/firefox-60.0/media/libcubeb/src/cubeb_alsa.c:1045: alsa_stream_destroy: Assertion `stm && (stm->state == INACTIVE || stm->state == ERROR || stm->state == DRAINING)' failed.
Aborted

Anyone else experiences this issue?


Last edited by Maf on Sun Jul 01, 2018 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat May 26, 2018 8:58 am    Post subject: Reply with quote

Maf ...

hmmm, I though firefox nolonger uses/supports ALSA, only pulseaudio ... not much to go on but that might point you in the right direction.

best ... khay
Back to top
View user's profile Send private message
soundrolf
n00b
n00b


Joined: 08 Sep 2016
Posts: 19

PostPosted: Sat May 26, 2018 10:23 am    Post subject: Firefox 60.0 crashes when closing Youtube tabs Reply with quote

For me, this works.

Install media-sound/apulse and dev-util/patchelf

Then do as root: patchelf --set-rpath /usr/lib/apulse /opt/firefox/libxul.so

Apulse will give Firefox the Illusion to have Pulseaudio.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1463
Location: KUUSANKOSKI, Finland

PostPosted: Sat May 26, 2018 1:37 pm    Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs Reply with quote

soundrolf wrote:
Then do as root: patchelf --set-rpath /usr/lib/apulse /opt/firefox/libxul.so

Apulse will give Firefox the Illusion to have Pulseaudio.
This feature should be incorporated into the firefox ebuild via USE-flag. I think "pulseaudio" USE-flag would fit there just fine. If it was unset then depend on apulse and then patch libxul.so.

Anyone to raise a bug as a feature request for this?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Maf
Apprentice
Apprentice


Joined: 15 May 2005
Posts: 288

PostPosted: Mon May 28, 2018 12:53 pm    Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs Reply with quote

soundrolf wrote:
For me, this works.

Install media-sound/apulse and dev-util/patchelf

Then do as root: patchelf --set-rpath /usr/lib/apulse /opt/firefox/libxul.so

Apulse will give Firefox the Illusion to have Pulseaudio.


I gave this a try:
Code:
patchelf --set-rpath /usr/lib/apulse /usr/lib64/firefox/libxul.so

but it didn't help (it still crashes).
Back to top
View user's profile Send private message
gorg86
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2011
Posts: 123

PostPosted: Mon May 28, 2018 2:15 pm    Post subject: Reply with quote

This might be totally unrelated...
Firefox 60.0 crashed too on my machine when closing YT tabs, but I didn't look up what exactly caused it. After I updated to v60.0.1 the problem disappeared.
Back to top
View user's profile Send private message
Maf
Apprentice
Apprentice


Joined: 15 May 2005
Posts: 288

PostPosted: Mon May 28, 2018 4:27 pm    Post subject: Reply with quote

gorg86 wrote:
This might be totally unrelated...
Firefox 60.0 crashed too on my machine when closing YT tabs, but I didn't look up what exactly caused it. After I updated to v60.0.1 the problem disappeared.

I'm running 60.0.1 as well but it didn't help.
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Sun Jun 10, 2018 10:51 am    Post subject: Reply with quote

I had the same issue. Upgraded to 61.0_beta11 (from mozilla overlay) as a test and it seems like the issue is gone, so it might also work for you.
_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Fri Jun 15, 2018 11:26 am    Post subject: Reply with quote

gorg86 wrote:
This might be totally unrelated...
Firefox 60.0 crashed too on my machine when closing YT tabs, but I didn't look up what exactly caused it. After I updated to v60.0.1 the problem disappeared.


Issue seemed disappeared to me upgraded to 60.0.1 but it's only less common.

Trying with USE="pulseaudio"
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Fri Jun 22, 2018 9:28 pm    Post subject: Reply with quote

bandreabis wrote:
gorg86 wrote:
This might be totally unrelated...
Firefox 60.0 crashed too on my machine when closing YT tabs, but I didn't look up what exactly caused it. After I updated to v60.0.1 the problem disappeared.


Issue seemed disappeared to me upgraded to 60.0.1 but it's only less common.

Trying with USE="pulseaudio"

Tried pulseaudio and KDE got mute
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Wed Jun 27, 2018 12:51 pm    Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs Reply with quote

Maf wrote:
soundrolf wrote:
For me, this works.

Install media-sound/apulse and dev-util/patchelf

Then do as root: patchelf --set-rpath /usr/lib/apulse /opt/firefox/libxul.so

Apulse will give Firefox the Illusion to have Pulseaudio.


I gave this a try:
Code:
patchelf --set-rpath /usr/lib/apulse /usr/lib64/firefox/libxul.so

but it didn't help (it still crashes).


Thanks to this workaround I'm supposed to have solved.
But was not enough. I had to deleted and recreate .mozilla directory.
With Sync all was fast.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 94

PostPosted: Sat Jun 30, 2018 8:45 pm    Post subject: Reply with quote

I haven't experienced this issue in particular, but as I wrote in another thread, in order for apulse to work I had to clone it from their github page, compile it, move the shared objects to /usr/lib64/apulse (overwriting the ones Protage installed there). See also the various firefox/apulse threads on this forum.
Back to top
View user's profile Send private message
Maf
Apprentice
Apprentice


Joined: 15 May 2005
Posts: 288

PostPosted: Sun Jul 01, 2018 5:18 pm    Post subject: Reply with quote

Issue seems to be gone for me in firefox-61.0.
Back to top
View user's profile Send private message
tholin
Apprentice
Apprentice


Joined: 04 Oct 2008
Posts: 165

PostPosted: Sun Sep 09, 2018 12:40 pm    Post subject: Reply with quote

The old firefox-52-ESR is now out of support so I was forced to upgrade to the new firefox-60-ESR. Surprisingly I got sound even with USE=-pulseaudio. I've heard the claims that ALSA is gone and it's pulseaudio or nothing but it turns out that is not entirely true. Firefox use libcubeb for cross platform audio and it still supports ALSA. It's still possible to build firefox-60 with --enable-alsa but the code is deprecated, unsupported and untested.

Perhaps ALSA still works despite being unsupported? No.... As you've noticed, it does not. Sometimes alsa_stream_destroy() gets called with stm->state == RUNNING and an assertion fails resulting in SIGABRT of the audio process. The problem looks similar to this race condition that was fixed long ago https://bugzilla.mozilla.org/show_bug.cgi?id=1037423

I don't know what cause this new problem but I know that it can be worked around by disabling electrolysis (multiprocess rendering) by setting browser.tabs.remote.autostart=false in about:config. That way it is possible to keep using firefox for at least another year with ALSA as long as you accept the downsides to disabling multiprocess rendering.

I also tested apulse but that didn't work well. Videos were basically unwatchable because to this problem https://github.com/i-rinat/apulse/issues/58
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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