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

PulseAudio sound does not work in Electron apps #158474

Closed
alyaeanyx opened this issue Feb 7, 2022 · 7 comments
Closed

PulseAudio sound does not work in Electron apps #158474

alyaeanyx opened this issue Feb 7, 2022 · 7 comments
Labels
0.kind: bug Something is broken

Comments

@alyaeanyx
Copy link
Member

Describe the bug

Sound does not seem to work in Electron apps (for instance Element and FreeTube) with PulseAudio. The rest of the application works fine, but when they should normally play sound, the application stays mute and also doesn't show up in pavucontrol.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install a NixOS system with FreeTube and sound.enable = true and hardware.pulseaudio.enable = true;
  2. Open FreeTube and try to play a video with sound

Expected behavior

There should be sound

Logs

This is the stdout of FreeTube when I try to play a video with sound:

ALSA lib pcm.c:2576:(snd_pcm_open_conf) Unknown field libs
[1137736:0207/144459.635623:ERROR:alsa_util.cc(204)] PcmOpen: default,Invalid argument
ALSA lib pcm.c:2576:(snd_pcm_open_conf) Unknown field libs
[1137736:0207/144459.635699:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,Invalid argument

Additional context

The problem occurs on nixos-unstable. I've tried to git bisect the bug, but I got stuck because nixos-rebuild had to build too many packages from scratch. So far, I've narrowed it down to bb141a8 (last known good commit) to a458189 (first known bad commit).

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

alexandra@thermidor ~> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.16.4, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.6.0`
 - channels(root): `"nixos"`
 - channels(alexandra): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@alyaeanyx alyaeanyx added the 0.kind: bug Something is broken label Feb 7, 2022
@MarekPasnikowski
Copy link

I can confirm this. I also lost sound in LBRY 2 or 3 days ago.

Also, I am using Pipewire with Pulse compatibility.

@ppom0
Copy link
Contributor

ppom0 commented Feb 7, 2022

On nixos unstable, I'm getting the same issue just running amixer, which is an ALSA tool:

$ amixer
ALSA lib control.c:1464:(snd_ctl_open_conf) Unknown field libs
amixer: Mixer attach default error: Invalid argument

ping @fps @L-as @AndersonTorres as you maintain some ALSA parts

@L-as
Copy link
Member

L-as commented Feb 8, 2022 via email

@L-as
Copy link
Member

L-as commented Feb 8, 2022 via email

@alyaeanyx
Copy link
Member Author

Yep, thanks!

@MarekPasnikowski
Copy link

Did sound return to your applications, @alyaeanyx ?

LBRY still does not output sound on master branch.

@L-as
Copy link
Member

L-as commented Feb 10, 2022

That's because it's in staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants