View previous topic :: View next topic |
Author |
Message |
Maf Guru
Joined: 15 May 2005 Posts: 309
|
Posted: Sat May 26, 2018 8:17 am Post subject: [SOLVED] Firefox 60.0 crashes when closing Youtube tabs |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat May 26, 2018 8:58 am Post subject: |
|
|
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 |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Sat May 26, 2018 10:23 am Post subject: Firefox 60.0 crashes when closing Youtube tabs |
|
|
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 |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3345 Location: Rasi, Finland
|
Posted: Sat May 26, 2018 1:37 pm Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs |
|
|
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 :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Maf Guru
Joined: 15 May 2005 Posts: 309
|
Posted: Mon May 28, 2018 12:53 pm Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs |
|
|
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 |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Mon May 28, 2018 2:15 pm Post subject: |
|
|
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 |
|
|
Maf Guru
Joined: 15 May 2005 Posts: 309
|
Posted: Mon May 28, 2018 4:27 pm Post subject: |
|
|
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 |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Sun Jun 10, 2018 10:51 am Post subject: |
|
|
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 |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Fri Jun 15, 2018 11:26 am Post subject: |
|
|
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 |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Fri Jun 22, 2018 9:28 pm Post subject: |
|
|
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 |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Wed Jun 27, 2018 12:51 pm Post subject: Re: Firefox 60.0 crashes when closing Youtube tabs |
|
|
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 |
|
|
saturnalia0 Tux's lil' helper
Joined: 13 Oct 2016 Posts: 136
|
Posted: Sat Jun 30, 2018 8:45 pm Post subject: |
|
|
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 |
|
|
Maf Guru
Joined: 15 May 2005 Posts: 309
|
Posted: Sun Jul 01, 2018 5:18 pm Post subject: |
|
|
Issue seems to be gone for me in firefox-61.0. |
|
Back to top |
|
|
tholin Apprentice
Joined: 04 Oct 2008 Posts: 203
|
Posted: Sun Sep 09, 2018 12:40 pm Post subject: |
|
|
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 |
|
|
tholin Apprentice
Joined: 04 Oct 2008 Posts: 203
|
Posted: Mon Sep 16, 2019 11:40 am Post subject: |
|
|
Another year another Firefox ESR release. This time firefox-68. I'm happy to report that ALSA still works with 68. The old crash bug that could be worked around by disabling multiprocess rendering is also fixed. I can't see any changes to the actual cubeb alsa code so I guess the fix is accidental due to some other code change. |
|
Back to top |
|
|
|