zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.1k stars 2.71k forks source link

Zed Crashes on Startup with VulkanError: ERROR_INCOMPATIBLE_DRIVER on Arch Linux + NVIDIA GT210 #17309

Open hahagood opened 2 weeks ago

hahagood commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I'm experiencing an issue where the latest version of Zed fails to launch on my system running Arch Linux with an NVIDIA GT210 graphics card. The error message indicates a Vulkan-related problem, suggesting that the driver is incompatible. Here's a detailed description of the problem:

Environment

System Information:

Operating System: Arch Linux with i3wm Graphics Card: NVIDIA GT210 (rev a2) Vulkan Driver: Installed amdvlk, vulkan-icd-loader, and related packages Vulkan Support Status: The GPU (NVIDIA GT210) does not support Vulkan, confirmed by running vulkaninfo which fails with:

ERROR: [Loader Message] Code 0 : terminator_CreateInstance: Found no drivers!
Cannot create Vulkan instance.
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.269/vulkaninfo/./vulkaninfo.h:688:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

Steps to Reproduce:

Install the latest version of Zed on Arch Linux. Run zed from the terminal. The application fails to open and returns a VulkanError(ERROR_INCOMPATIBLE_DRIVER). Expected Behavior:

Zed should either:

Provide a clear error message indicating that the current GPU does not support Vulkan, or Offer a fallback rendering option that does not require Vulkan. Actual Behavior:

Zed fails to launch entirely, leaving the user with no clear path to resolve the issue aside from replacing the graphics card.

Additional Context:

The GT210 is an older GPU model that does not support Vulkan, and the error suggests that Zed does not handle this gracefully. While I understand that Vulkan support is needed for certain features, it would be helpful if Zed could detect this incompatibility earlier or provide a fallback rendering option for older hardware. Possible Solution:

Implement a GPU compatibility check on startup to detect if the GPU supports Vulkan and provide a more user-friendly error message. Consider adding support for alternative rendering backends (like OpenGL) for older GPUs that do not support Vulkan. Thank you for considering this issue!

If applicable, attach your Zed.log file to this issue.

Zed.log


ConradIrwin commented 2 weeks ago

Hmm, we should have sent you an inotify in that case linking to https://zed.dev/linux to help trouble-short. If you run zed does it give you a stack trace of where the error came from?

(This is probably not the best fix; as Zed currently requires Vulkan you may still be out of luck in terms of making it work - but there are a number of different configuration things you can try tweaking to make it work).