Skip to content

xemu: Failed to initialize Vulkan renderer: SDL_CreateWindow failed: Failed loading libvulkan.so.1: libvulkan.so.1: cannot open shared object file: No such file or directory #478908

Closed

Description

@IdaCryze

Nixpkgs version

  • Unstable (26.05)

Describe the bug

On Linux, xemu v0.8.130 as of writing this (or the underlying SDL) reports not being able to find the Vulkan Loader library as it automatically falls back to the OpenGL rendering backend:
Failed to initialize Vulkan renderer: SDL_CreateWindow failed: Failed loading libvulkan.so.1: libvulkan.so.1: cannot open shared object file: No such file or directory
Might be related to xemu crashing after switching from OpenGL renderer to Vulkan and resetting the emulator.
Things that have been tried:
Pointing LD_PRELOAD and LD_LIBRARY_PATH to Vulkan Loader library to no avail.
Setting the SDL_VULKAN_LIBRARY environment variable to point to said loader fixes seems to solve the problem, but that is not what I would call expected behaviour.

Steps to reproduce

Set up your xemu install, if not already done.
Switch from the OpenGL renderer to Vulkan during runtime or add this to ${HOME}/.local/share/xemu/xemu/xemu.toml before starting the emulator if not present or set to something else:
[display]
renderer='VULKAN'

Expected behaviour

The Vulkan renderer should just work without setting environment variables.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.4, NixOS, 26.05 (Yarara), 26.05.20260108.3497aa5
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.2+2
  • channels(root): "nixos-23.05"
  • channels(admin): ""
  • nixpkgs: /nix/store/aqhcr0kv7d91rfm0ca77rbakjk5gkbq6-source

Notify maintainers

@marcin-serwin @matteo-pacini

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Jan 11, 2026
  2. IdaCryze commented on Jan 11, 2026

    @IdaCryze
    ContributorAuthor

    On a side note, regardless of this issue: DO NOT switch the rendering backend while the boot animation is still playing. xemu might end up softlocking or crashing as a result.

  3. added a commit that references this issue on Jan 11, 2026
  4. added a commit that references this issue on Jan 24, 2026
  5. added a commit that references this issue on Feb 10, 2026
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: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions