Skip to content

feat: handle logging wayland errors better - #78

Merged
IAmJSD merged 2 commits into
mainfrom
fix/vulkan-driver-preflight
Aug 30, 2026
Merged

IAmJSD merged 2 commits into
mainfrom
fix/vulkan-driver-preflight

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Aug 30, 2026

Copy link
Copy Markdown
Member

No description provided.

IAmJSD and others added 2 commits August 30, 2026 02:12
An install with no Vulkan driver got a panic out of GPUI's Wayland
backend -- "Unable to init GPU context: NoSupportedDeviceFound" and a
line number in somebody else's cargo checkout. The GPU is rarely the
problem. Arch splits the drivers out of mesa and Debian ships them apart
from libvulkan1, so the loader arrives as a dependency of half the
desktop while the driver is a package a minimal install or a VM simply
has not got. With none registered the loader does not even offer
VK_KHR_surface, and Blade stops there.

So look before GPUI does, and name the package. The probe is Linux-only
and aborts on hopeless answers alone -- no loader, no driver, no device
-- which are the ones Blade fails on moments later anyway; a driver that
merely lacks something we want stays Blade's call.
SCHIST_SKIP_VULKAN_CHECK=1 skips it.

The AUR package now depends on vulkan-driver, the virtual package every
ICD provides, so pacman asks for one at install time rather than letting
the loader satisfy the dependency on its own. The README listed the
loader among the build dependencies and never said a driver was needed
to run.

Reproduced and verified on an Arch ARM VM with no ICD installed: the
same panic before, a window after extracting lavapipe and pointing
VK_DRIVER_FILES at it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AQFXWwQzTVcv1wiTSv8H2s
The Omarchy ARM install sets, in its Hyprland environment,

    env = VK_ICD_FILENAMES,/usr/share/vulkan/icd.d/lvp_icd.aarch64.json

and Arch Linux ARM ships that manifest as plain lvp_icd.json -- the
.aarch64 suffix is how mesa names it on x86_64. Setting the variable
*replaces* the loader's search rather than adding to it, so one wrong
path leaves every Vulkan program in the session with no driver at all,
with the driver package installed and sitting in /usr/share/vulkan/icd.d
untouched. Installing another one changes nothing, which is exactly what
the advice added a commit ago would have had someone do.

So look at VK_DRIVER_FILES and VK_ICD_FILENAMES when the driver list
comes back empty, and when they name files that are not there, report
that instead: the paths, the variable, and that a session which sets it
from a config file has to be told there.

Verified on the machine that had it -- the bad path now prints the
override, and with it unset the same binary starts on llvmpipe.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AQFXWwQzTVcv1wiTSv8H2s
@IAmJSD
IAmJSD merged commit aad2d52 into main Aug 30, 2026
3 checks passed
@IAmJSD
IAmJSD deleted the fix/vulkan-driver-preflight branch August 30, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant