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.08k stars 2.71k forks source link

[bug]: VulkanError(ERROR_INITIALIZATION_FAILED). See https://zed.dev/docs/linux for troubleshooting steps. #17626

Open Thecode764 opened 1 week ago

Thecode764 commented 1 week ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hi

i checked for existing issues but i can't find how to fix?

okay i use parch linux (an arch-based linux distribution created by iranians) okay my error is

VulkanError(ERROR_INITIALIZATION_FAILED). See https://zed.dev/docs/linux for troubleshooting steps.

Environment

OS: Parch Linux x86_64 Laptop: Asus tuf gaming Kernel: 6.10.1-arch1-1 CPU: 11th Gen Intel i5-11400H (12) @ 4.500GHz GPU: Intel TigerLake-H GT1 [UHD Graphics] GPU: NVIDIA GeForce RTX 3050 Mobile

If applicable, add mockups / screenshots to help explain present your vision of the feature

i dont have any screenshot

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

...

Thecode764 commented 1 week ago

Notice: i installed vulkan-tools

jansol commented 1 week ago

Make sure you have the vulkan-icd-loader, nvidia and vulkan-intel packages installed. (Having only one of nvidia and vulkan-intel should be fine if you know you never want to use the other GPU, but the ICD loader is important to have in any case)

Thecode764 commented 1 week ago

@jansol my new error: VulkanLoadingError(LibraryLoadFailure(DlOpen { desc: "/usr/lib/libvulkan.so.1: file too short" })). See https://zed.dev/docs/linux for troubleshooting steps.

jansol commented 1 week ago

Sounds like the vulkan-icd-loader package is broken or something went wrong during the installation.

Thecode764 commented 1 week ago

@jansol how to fix?

paru -S vulkan-icd-loader?

jansol commented 1 week ago

No idea, I'm not familiar with that distro. Try reinstalling (and make sure it actually reinstalls) the relevant packages and report a bug to the distro if it's still broken.