-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Vulkan disabled in chromium: Couldn't open libvulkan.so.1 #150398
Comments
Hey @robert-elles, I think you meant to ping the chromium maintainers: @primeos @thefloweringash @squalus. |
@tnias yes thank you! |
Not sure if this is actionable, AFAIK Chromium's Vulkan support is still pretty experimental (depending on the platform). Did it even ever work before? Also: X11 or Wayland, which flags are you using for Chromium, and could you provide the full output?
But since Dawn (https://dawn.googlesource.com/dawn) is Google's WebGPU implementation this shouldn't even be relevant (yet). Anyway, I'm afraid you're on your own here as I don't have enough time to give it a proper look. (Potentially) also interesting/relevant:
PS: I also finally submitted #150417 but that should only be relevant when using SwiftShader. |
This issue affects also google-chrome. |
This might be required for experimental Vulkan support, see: NixOS#150398 Note: Google Chrome distributes it as well.
@davidak we already install |
@primeos great thanks for looking into it! will definitely try to test it over the weekend |
@primeos unfortunately it does not seem to fix the problem. I still get the same warning that libvulkan.so.1 could not be load |
This might be required for experimental Vulkan support, see: NixOS#150398 Note: Google Chrome distributes it as well. (cherry picked from commit 075338b) Reason: fixes nixos/jibri bug since upgrade to chromium 96 on Nov 15: https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.jibri.x86_64-linux
Confirming this is also an issue on google-chrome-beta: (Excuse the unrelated dbus things)
I'm not experienced at debugging this kind of thing but happy to give it a shot if there are any hints for where to get started. :) Edit: I did confirm that |
If you have time it would be nice if you or someone else could use strace (or similar tools) to figure out where Chrome/Chromium is looking for |
Below is the strace output if it's any help. Pretty sure just the first ~2 lines are relevant. The first line happens when the browser opens, second line onwards happens after opening
(This is with stable, same thing happens with beta too).
|
Temporary solution: or, on flakes, |
BTW, same problem with the |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/modify-chromium-command-provide-path-to-dynamic-library/19906/2 |
libvulkan is dlopen'd but is missing from the linker search path. We probably should be using the libvulkan (and libGLESv2) provided by chromium, but using vulkan-loader's libvulkan.so.1 is a tried-and-true workaround. Fixes NixOS#150398.
Unfortunately this is still broken for me |
This is still broken |
Oh, seems like part of the issue is Vulkan is not supported on wayland yet |
It's an upstream issue at this point, due to there being no Vulkan support on Wayland/Ozone: https://bugs.chromium.org/p/chromium/issues/detail?id=848385 https://bugs.chromium.org/p/chromium/issues/detail?id=1134001 |
Describe the bug
Even when vulkan is installed and working, opening chromium and going to chrome://gpu shows vulkan is disabled. Also chromium logs the following warning:
Warning: Couldn't open libvulkan.so.1 Info: Couldn't load Vulkan at LoadVulkan (../../third_party/dawn/src/dawn_native/vulkan/BackendVk.cpp:135) at Initialize (../../third_party/dawn/src/dawn_native/vulkan/BackendVk.cpp:139)
Running
vulkaninfo
confirms that vulkan is installed properly and working.Steps To Reproduce
vulkaninfo
Expected behavior
vulakn is enabled in chrome://gpu
Notify maintainers
@ncfavier
@tnias
@davidak
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 5.10.81, NixOS, 21.11 (Porcupine)
yes
yes
nix-env (Nix) 2.3.16
""
"nixos-21.11.334139.1bd4bbd49be"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: