Repository navigation
feat: handle logging wayland errors better - #78
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.