-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
firefox 58: does not produce any sound #34822
Comments
I have the same issue. In contrast, Firefox 57.0.4 works fine.
|
I found a work-around: use PulseAudio.
The above will also set up an ALSA plugin which routes all audio to PulseAudio. Then of course PulseAudio needs to be configured to use the ALSA device you want. |
`hardware.pulseaudio.enable = true;`
Instead you can also try to run `firefox` under `apulse`.
|
It seems there is a patch upstream here: https://bugzilla.mozilla.org/show_bug.cgi?id=1430274 |
Which Firefox package did you install? I think Mozilla disabled ALSA in their builds so |
I used the |
i used |
|
So no, it's another issue. I can't build firefox right now, you could try the patch with something like this { pkgs ? import <nixpkgs> { } }:
let
patched = pkgs.firefox-unwrapped.overrideDerivation (base: {
patches = base.patches ++ [
(pkgs.fetchpatch {
url = "https://hg.mozilla.org/mozilla-central/raw-diff/b2a41379cc75/security/sandbox/linux/moz.build";
sha256 = "1kdhkx3xaaw3vh5dfl42y0f7gmbis1aqfv0xyqpcq2j8pjmx7afz";
})
];
});
in
pkgs.wrapFirefox patched { } |
sorry, still a noob with nix. where am i supposed to put that code? |
Put it in a random .nix file and call |
I've tried the patch but it wouldn't apply. It failed on the first hunk.On Feb 15, 2018 6:33 PM, Michele Guerini Rocco <notifications@github.com> wrote:Put it in a random .nix file and call nix-build on it.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
the hash you put was not the one nix received. after fixing that, I got the same error as emmanuelrosa:
|
It doesn't apply to our revision. I'm downloading the source to see what's different. |
It was the wrong url apparently, the one in attachment works. { pkgs ? import <nixpkgs> { } }:
let
patched = pkgs.firefox-unwrapped.overrideDerivation (base: {
patches = base.patches ++ [
(pkgs.fetchpatch {
url = "https://bug1430274.bmoattachments.org/attachment.cgi?id=8943426";
sha256 = "12yfss3k61yilrb337dh2rffy5hh83d2f16gqrf5i56r9c33f7hf";
})
];
});
in
pkgs.wrapFirefox patched { } |
I added that patch to nixpkgs expression, will PR if it compiles and works.
|
how long does a firefox build take? it's already 2 hours at it and now i realised it's only using 1 of my 2 cores. would it be faster, if I restart it with 2 cores? |
For me It usually takes about 2.5 hours with 4 cores. I wouldn't interrupt it if I were you. |
Should be fixed by #35047. The music from the OP and youtube plays fine and with sound. |
my build with the patch worked, but /nix/store/d875x2p6axiws57is2bbzn148agf9h86-firefox-58.0.2 (downloaded substitute) gives me:
that somehow has no sound again. |
What's your |
17.09.3023.c882c4dd55e |
so, from the commit dates, it means i have a nix that is to old? nix-channel --update gives me c882c4d. is that normal? |
It looks like the nixos-unstable channel has not caught up with the nixos-unstable branch. The commit you're looking for is in the nixos-unstable branch, but for some reason the archive nix-channel looks for is not there yet. Note: I just noticed you reported the issue on Hummingbird, which is the stable branch. The commit was merged to the master branch, so you won't see it on Hummingbird; It'll be on Impala. |
Issue description
Edit: firefox doesn't produce any sound anymore.
With a clean firefox profile, I am unable to play this stream.The error is
Error loading media: File could not be played
When I click on play, the lines starting from Sandbox get printed.
videos on youtube play, but without sound. terminal output:
Steps to reproduce
install firefox 58.0.1 (or 58.0.2):
nix-env -iA nixos.firefox
launch from the console:
$ firefox #-profilemanager #optionally create a new profile
try to play mentioned stream
Technical details
"x86_64-linux"
Linux 4.9.78, NixOS, 17.09.2987.59890bb1351 (Hummingbird)
yes
no
nix-env (Nix) 1.11.16
""
"nixos-17.09.2987.59890bb1351"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The text was updated successfully, but these errors were encountered: