Skip to content

Lutris fails to find Vulkan or OpenGL libraries #69037

Closed

Description

@rvolosatovs

Describe the bug
Lutris fails to find Vulkan and OpenGL libraries and generally does not work (for me)

To Reproduce
Steps to reproduce the behavior:

  1. nix run nixpkgs.lutris -c lutris
    Observe:
/usr/bin/ldconfig: Can't open cache file /nix/store/6yaj6n8l925xxfbcd65gzqx3dz7idrnn-glibc-2.27/etc/ld.so.cache
: No such file or directory
2019-09-18 19:14:57,708: Failed to get libraries from ldconfig: Command '['/usr/bin/ldconfig', '-p']' returned non-zero exit status 1.
2019-09-18 19:14:58,497: Running Lutris 0.5.3
2019-09-18 19:14:58,498: Using Intel Open Source Technology Center
2019-09-18 19:14:58,498: Running Mesa driver 18.3.4 on Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)  (0x1916)
2019-09-18 19:14:58,498: GPU: 8086:1916 17AA:504A using i915 drivers
2019-09-18 19:14:58,498: i386 libGL.so.1 missing (needed by opengl)
2019-09-18 19:14:58,499: x86_64 libGL.so.1 missing (needed by opengl)
2019-09-18 19:14:58,499: i386 libvulkan.so.1 missing (needed by vulkan)
2019-09-18 19:14:58,499: x86_64 libvulkan.so.1 missing (needed by vulkan)
2019-09-18 19:15:00,675: Vulkan is supported
2019-09-18 19:15:01,649: Updating DXVK version

Expected behavior
Smooth execution

Screenshots
2019-09-18-19:17:17-screenshot

Additional context
I'm on 19.03. Lutris and latest vulkan packages are added via overlay from nixos-unstable channel

Metadata

  • system: "x86_64-linux"
  • host os: Linux 4.14.143, NixOS, 19.03pre-git (Koi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2.2
  • nixpkgs: /home/rvolosatovs/src/github.com/rvolosatovs/infrastructure/vendor/nixpkgs/nixos

cc @Chiiruno

Activity

  1. added
    0.kind: bug
    on Sep 18, 2019
  2. rvolosatovs commented on Sep 18, 2019

    @rvolosatovs
    MemberAuthor

    I see exact same error e.g. here in the original PR: #61742 (comment)

  3. TheSirC commented on Oct 6, 2019

    @TheSirC

    I can reproduce the bug too if that is useful.

    Output of nix run nixpkgs.lutris -c lutris

    2019-10-06 14:41:54,247: Running Lutris 0.5.3
    2019-10-06 14:41:54,247: Using X.Org
    2019-10-06 14:41:54,247: Running Mesa driver 18.3.4 on AMD Radeon(TM) HD 8800 Series (PITCAIRN, DRM 3.32.0, 5.2.17, LLVM 7.0.1) (0x6810)
    2019-10-06 14:41:54,247: GPU: 1002:6810 174B:E271 using amdgpu drivers
    2019-10-06 14:41:54,248: GPU: 8086:0412 1043:8534 using i915 drivers
    2019-10-06 14:41:54,248: i386 libGL.so.1 missing (needed by opengl)
    2019-10-06 14:41:54,248: x86_64 libGL.so.1 missing (needed by opengl)
    2019-10-06 14:41:54,248: i386 libvulkan.so.1 missing (needed by vulkan)
    2019-10-06 14:41:54,248: x86_64 libvulkan.so.1 missing (needed by vulkan)
    
    

    Metadata

    • system: "x86_64-linux"
    • host os: Linux 5.2.17, NixOS, 19.03 (Koi)
    • multi-user?: no
    • sandbox: no
    • version: nix-env (Nix) 2.2.2
  4. peti commented on Oct 30, 2019

    @peti
    Member

    That error message is just a cosmetic problem. Lutris tries to find the system's Vulcan drivers (and can't). The game runners it uses to start games -- like WINE --, however, do find those drivers and work okay in my experience.

  5. nixos-discourse commented on Apr 27, 2020

    @nixos-discourse

    This issue has been mentioned on NixOS Discourse. There might be relevant details there:

    https://discourse.nixos.org/t/lutris-cannot-find-vulkan/6911/2

  6. asbachb commented on Jul 11, 2020

    @asbachb
    Contributor

    What's about that broken icons? Any ideas how to fix it?

  7. cakexensen commented on Sep 19, 2020

    @cakexensen

    Checking in as I'm getting this error but it's not merely cosmetic for me; Lutris fails to run after choking on the missing vulkan libs. Running NixOS 20.03 with nvidia drivers. Here's my nix run output:

    /usr/bin/ldconfig: Can't open cache file /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/etc/ld.so.cache
    : No such file or directory
    2020-09-19 12:23:07,335: Failed to get libraries from ldconfig: Command '['/usr/bin/ldconfig', '-p']' returned non-zero exit status 1.
    Traceback (most recent call last):
      File "/nix/store/1k3qgrkpakvdv8px8x68av0q5968w51g-lutris-original-0.5.3/bin/..lutris-wrapped-wrapped", line 33, in <module>
        sys.exit(app.run(sys.argv))
      File "/nix/store/96ff6g3d82pqcc4m34qzdbqv94njjlxn-python3.7-pygobject-3.34.0/lib/python3.7/site-packages/gi/overrides/Gio.py", line 44, in run
        return Gio.Application.run(self, *args, **kwargs)
      File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/contextlib.py", line 119, in __exit__
        next(self.gen)
      File "/nix/store/96ff6g3d82pqcc4m34qzdbqv94njjlxn-python3.7-pygobject-3.34.0/lib/python3.7/site-packages/gi/_ossighelper.py", line 251, in register_sigint_fallback
        signal.default_int_handler(signal.SIGINT, None)
    KeyboardInterrupt
    
  8. stale commented on Mar 19, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  9. added
    2.status: stale
    on Mar 19, 2021
  10. danielmain commented on Jun 24, 2022

    @danielmain
    Contributor

    Any updates on this? I can't use lutris on my NixOS :(

  11. jonringer commented on Nov 3, 2022

    @jonringer
    Contributor

    This is likely solved on 21.05 and onward, starting lutris on master results in:

    2022-11-03 11:47:24,481: Starting Lutris 0.5.11
    2022-11-03 11:47:24,619: Using NVIDIA drivers 515.76 for x86_64
    2022-11-03 11:47:24,619: GPU: NVIDIA GeForce GTX 1070
    2022-11-03 11:47:24,620: GPU: 10DE:1B81 10DE:119D (nvidia drivers)
    2022-11-03 11:47:27,999: Startup complete
    

    And preferences -> Hardware Information shows:

    [Graphics]
    Vendor:          NVIDIA Corporation
    OpenGL Renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
    OpenGL Version:  4.6.0 NVIDIA 515.76
    OpenGL Core:     4.6.0 NVIDIA 515.76
    OpenGL ES:       OpenGL ES 3.2 NVIDIA 515.76
    Vulkan:          Supported
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug2.status: stale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions