Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apulse crashes the application if the chosen device doesn't provide required functions (input/output) #43

Closed
birdie-github opened this issue Mar 7, 2017 · 5 comments
Labels

Comments

@birdie-github
Copy link

birdie-github commented Mar 7, 2017

Mozilla developers have lost their mind and made pulseaudio mandatory in Firefox 52. ALSA support was completely removed.

The test page: https://hpr.dogphilosophy.net/test/

$ apulse firefox
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
[apulse] [error] do_connect_pcm, snd_pcm_open, No such file or directory
[apulse] [error] do_connect_pcm, snd_pcm_open, No such file or directory
firefox: pcm.c:693: snd_pcm_close: Assertion `pcm' failed.
ExceptionHandler::GenerateDump cloned child 24092
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

I'm running the git master release (840792f).
Apulse and Firefox are native x86-64 binaries.
Firefox is from: https://ftp.mozilla.org/pub/firefox/releases/52.0/linux-x86_64-EME-free/en-US/firefox-52.0.tar.bz2
Distro: Fedora 25, 64.

@birdie-github
Copy link
Author

This bug is invalid. My Linux distro has all sound cards mixed up, so the default device (a USB mic) cannot actually output audio.

Still, it's a bug in apulse - please check whether the output device is available and die gracefully (or output to /dev/null).

@birdie-github birdie-github changed the title Firefox 52 for Linux crashes with apulse Apulse crashes the application if the chosen device doesn't provide required functions (input/output) Mar 7, 2017
@i-rinat
Copy link
Owner

i-rinat commented Mar 7, 2017

BTW, what is the value of security.sandbox.content.level on about:config? If it's 2 or greater, apulse won't work: sandbox code blocks file access, and that's why apulse cannot open an ALSA device.

@i-rinat
Copy link
Owner

i-rinat commented Mar 7, 2017

ALSA support was completely removed.

I believe, one can still can create own Firefox build with ALSA support enabled. It's just default builds have no such support anymore.

@birdie-github
Copy link
Author

I've already told you that it works just fine. It's just my output devices that were mixed up and apulse crashed while trying to output audio via my USB microphone.

Hopefully you'll create a workaround for that.

@i-rinat
Copy link
Owner

i-rinat commented Mar 7, 2017

I think, f09acc0 should prevent crashing. It's merged into master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants