-
-
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 no WebGL and no audio (both firefox-esr and firefox) #272269
Comments
Can you test I'm a bit worried about supporting WSL. It is not an environment I'm able to test. |
Of course, but I do not think this is a WSL issue. Installing firefox-bin does not solve either issue. Running normally and it works like a charm. |
Update: Installing nix not via apt-get (as done previously) but as single-user installation (as described on the homepage) resolves the audio problem. The lack of WebGL continues, though (both firefox and firefox-bin) Is this log message relevant? |
Yeah, it is likely unable to find the graphics drivers for OpenGL support. I'll expect |
$ vainfo
Trying display: wayland
libva info: VA-API version 1.20.0
Segmentation fault Do you think this is a WSL thing or a nix thing? |
Graphics acceleration for Nix built applications requires extra setup on both non-NixOS and WSL. You're using both, so you need twice as much extra setup, and I don't think this kind of thing is documented anywhere. Source: am NixOS-WSL maintainer. |
Ok. |
You need https://github.com/nix-community/nixGL for that. |
Can this be integrated by default? The used expects a working firefox browser after all |
There's basically no way to do this without issues. If we include our own graphics drivers, as nixGL currently does, it'll break on systems where the OS uses a different driver version (notably Nvidia). If we use the underlying OS' copy of the graphics drivers, that will cause weird linking errors and dependency mismatches. There's unfortunately no good solution here if you don't control the entire system. |
Well the problem here is that I use nix for reproducible development environments and builds. Part of my build scenario consists in launching a firefox browser and testing some stuff via selenium. So far, this has worked like a charm, and I really like the reproducibility. Not supporting WebGL is however a big deal, because some of the test scenarios need a WebGL-enabled browser. I try to circumvent the problem using nixGL, but fixing this issue would make things a lot easier. |
Well, if you have any specific ideas on how to fix it, please propose those. |
So this issue is generally #9415 and may be considered as a duplicate. If you don't have further problems, you can close this issue. |
Describe the bug
Firefox is neither able to play WebGL content nor play audio (nix installed on debian).
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
WebGL and audio should play correctly. Also, there seems to be a font issue, since firefox only displays question marks.
Notify maintainers
@mweinelt
@lovesegfault
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: