-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
vscode-fhs and vscodium-fhs crash on execution for non-NixOS #168431
Comments
Wow. Thanks for the detailed report. It's quite telling that we have In this case, for nearly all non-NixOS Linux distros, one should use |
@turion Thank you for your quick response! Understood that this is probably not a common use case. Just to give some background of why I might want to do this, I run another immutable OS on most of my systems (Fedora Silverblue/Kinoite), so using Nix to install apps tends to be one easy avenue to not pollute the host OS. Since vscode tends to need lots of dev sdks (i.e. python, ruby, dotnet, etc), it is helpful to install them with vscode/codium to use them natively. As for why I didn't just use |
This is most likely related to the opengl driver problem Nix packages have when running on non-NixOS systems. See #9415. @ramesh45345 can you try running codium with the flag |
@berbiche Thanks for the tip. I admit I had wondered if GL drivers were a culprit when I experienced this issue on a machine with the nvidia driver. Unfortunately the
Same sort of output, no real change (program doesn't load). I also tried using nixGL (a non-NixOS wrapper for GL drivers) in a previous attempt, to no avail. I may later on try some of the workarounds mentioned in the linked report, but I'm unsure if this actually is a GL issue, or some other issue, since I get GL errors with normal code and codium, and those will still launch inside a VM environment. |
Describe the bug
Both the
vscode-fhs
andvscodium-fhs
packages crash on execution when run on a non-NixOS operating system. Behavior was observed on Arch Linux (libvirt/qemu VM), Fedora Kinoite 35 (VM, and host with nVidia driver), and Ubuntu 21.10 (VM), all x86_64-linux.On all machines, home-manager with a stock config (none or one additional packages installed), along with an up-to-date nix (2.7.0). Nix was installed using single user mode.
Both of these packages do execute correctly when tested on NixOS, the problem is only observed when using Nix on a non-NixOS platform.
The following log is observed for
vscodium-fhs
(which does not show useful information):The following log is observed for
vscode-fhs
(not very interesting either):Steps To Reproduce
nix-shell -p vscodium-fhs --command "codium --verbose --log=trace"
nix-shell -p vscodium --command "codium --verbose --log=trace"
Expected behavior
It is expected that the program loads successfully.
Additional context
As stated above,
vscode-fhs
andvscodium-fhs
work properly on NixOS, but not on other Linux OSes.Is it normal for fhs packages to not work in non-NixOS? Is it possible I have a configuration issue?
Notify maintainers
@Synthetica9 @turion @bobby285271 @eadwu @maxeaubrey
Metadata
The text was updated successfully, but these errors were encountered: