Skip to content

Need more specific error message if vulkan is not installed #198

Description

@lez

experienced behaviour:

The x86_64 linux binary release crashes with the following output. I didn't have vulkan drivers installed.

2025-10-29T12:54:27.493393Z  INFO gpui::platform::linux::x11::client: x11: compositor present: true, gtk_frame_extents_supported: true
2025-10-29T12:54:27.496991Z ERROR blade_graphics::hal::init: Instance extension "VK_KHR_get_physical_device_properties2" is not supported

thread 'main' panicked at /home/runner/.cargo/git/checkouts/zed-a70e2ad075855582/1659fb8/crates/gpui/src/platform.rs:116:18:
called `Result::unwrap()` on an `Err` value: Failed to initialize X11 client.

Caused by:
    0: Unable to init GPU context
    1: NoSupportedDeviceFound
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    9464 IOT instruction (core dumped)  bin/coop 

expected behaviour:

The error message should clearly state that I need to install vulkan drivers for my graphics card and make sure vulkaninfo returns sane results.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions