-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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: fails to find libGLESv2.so.2, which causes gpu acceleration to be disabled #243372
Comments
Whats the exact log? vscode vendors that library and it is located in our package at lib/vscode/libGLESv2.so. |
Relevant lines from |
|
Same error happens on VSCodium where running with
If Edit: Adding
|
I would guess that's because the drivers to not abi match. I would recommend to rm the vendored shared object and symlink libglvnd to the correct location. Also we should investigate if we can remove/replace the other vendored libraries. |
Adding pkgs.vscodium.overrideAttrs(old: {
libPath = lib.makeLibraryPath [pkgs.libglvnd];
}) |
I can't get it to work with vscode sadly.
|
How soon will the changes get into nixos-unstable? |
2 days max ?
…On Sat, Jul 29, 2023, 10:05 Danil Danevich ***@***.***> wrote:
How soon will the changes get into nixos-unstable?
—
Reply to this email directly, view it on GitHub
<#243372 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5RCTKX6ZZXNND2Y4ZYYLXSS725ANCNFSM6AAAAAA2JWLDXM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
You can follow the PR here: https://nixpk.gs/pr-tracker.html?pr=245705 |
This is still broken for me:
In fact, that file is missing. I can confirm that the wrapper script contains:
So what gives? How did this work for others but not me? |
I'm guessing the last PR fixed it for wayland/ Edit: I can confirm that I have gpu acceleration when I pin vscode nixpkgs to e8d56b9 which is the parent commit of #245705. I also tried the following, linking libglvnd's libGLESv2 into vscode directory. The error changed and terminal rendering completely broke with a black screen:
|
please open a bug @anilanar ! |
Describe the bug
I've been trying to see why vscode had rather laggy scrolling and high cpu usage when scrolling on wayland with
NIXOS_OZONE_WL
set to 1, and upon discoveringcode --verbose
andcode --status
, I saw that the libGLESv2.so.2 library isn't found by it, causing the app to fall back to software rendering. Disabling the env variable and starting vscode like that shows that on xwayland it does start up with gpu acceleration.Doing the same thing described here, VScode does start with GPU acceleration working. and no longer complains about the libGLESv2.so.2 library
Steps To Reproduce
Steps to reproduce the behavior:
NIXOS_OZONE_WL=1
set and with the--verbose
flag, so it starts with wayland support and outputs details about the startup and other stuffcode --status
to see check that it's indeed using software rendering.Expected behavior
The library is found, there are no complaints, and GPU acceleration is enabled.
Additional context
I am on an Intel laptop.
Notify maintainers
@eadwu @Synthetica9 @maxeaubrey @bobby285271 @Enzime
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: