-
-
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
electron_bin variants still have issues finding lib*GL #272912
Comments
This appears to be triggered by the libANGLE library: Specifically I believe the file ❯ readelf -p .rodata /nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libGLESv2.so | grep "\.so"
[ 12117] libvulkan.so
[ 12124] libpci.so
[ 37781] libpci.so.3
[ 3849a] libvulkan.so.1
[ 384a9] libGL.so.1
[ 384b4] libEGL.so.1
[ 4cd9d] Could not dlopen libGL.so.1: One thing I noticed is that that We can fix this by either ensuring all the libraries included are properly patched, or perhaps replacing them with symlinks to nix-specific loaders like |
Confirmed behavior with [pid 2901300] electron->dlopen("libpci.so.3", 1) = 0x1c4c00064000
[pid 2901300] electron->dlopen("/nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libGLESv2.so", 1) = 0x1c4c00020c00
[pid 2901300] electron->dlopen("/nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libEGL.so", 1) = 0x1c4c00021200
[pid 2901300] libEGL.so->dlopen("/nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libGLESv2.so", 2) = 0x1c4c00020c00
[pid 2901300] electron->dlopen("/nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libvulkan.so", 2) = nil
[pid 2901300] electron->dlopen("/nix/store/a1fi8rf3n8mkccnn38cw6nfq9xjj6jx1-electron-27.0.0/libexec/electron/libvulkan.so.1", 2) = 0x1c4c00021800
[pid 2901300] electron->dlopen("libX11.so.6", 1) = 0x7fb74982b060
[pid 2901300] electron->dlopen("libX11-xcb.so.1", 1) = 0x1c4c00064500
[pid 2901300] libGLESv2.so->dlopen("libGL.so.1", 2) = nil |
Note what @lilyinstarlight wrote on the issues/PRs linked above:
|
Seems to only occur on some GPUs, e.g. some Intel GPUs. See also bitwarden/clients#6560. Cannot go back to electron 25 easily due to NixOS#272912. Since upstream has a commit to do this, backport it (it does not apply cleanly, though, so vendor).
Seems to only occur on some GPUs, e.g. some Intel GPUs. See also bitwarden/clients#6560. Cannot go back to electron 25 easily due to #272912. Since upstream has a commit to do this, backport it (it does not apply cleanly, though, so vendor). (cherry picked from commit 333dadb)
Describe the bug
#269104 / #269345 is still present in the electron*-bin variants
Would need a fix similar to vscode/spotify/... #272028
This only really affects users of EOL electron versions, since everything recent is using the source-built electron derivation by default on Linux (and I have no idea if/how Mac OS is affected by this issue, probably not).
Steps To Reproduce
Steps to reproduce the behavior:
ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
CC the electron-bin maintainers @travisbhartwell @manveru @prusnak
The text was updated successfully, but these errors were encountered: