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
49.48k stars 3.02k forks source link

EndeavourOS (Arch based Distro) requires Zed to be run as Sudo #14141

Open Mondrethos opened 3 months ago

Mondrethos commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I talked to Cirwin on Discord who helped me troubleshoot the issue. Both the arch repo version and the official tarball version both require Zed to be run via sudo or it crashes with a Protocol error 0.

Environment

EndeavourOS GPU: 7900XT

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

No response

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

Zed.log


Daniel-Boll commented 3 months ago

I'm in EndeavourOS too and downloading through the CLI curl https://zed.dev/install.sh | sh doesn't require this. Haven't tried AUR repo yet.

mikayla-maki commented 3 months ago

Screenshot from this user in discord:

image

crnobog69 commented 3 months ago

I have the same problem on EndeavourOS. I installed Zed in every possible way but it crashes and only open with sudo.

apricotbucket28 commented 3 months ago

Screenshot from this user in discord:

image

@Mondrethos are you using AMDVLK? Could you try switching to RADV / Mesa drivers?

Mondrethos commented 3 months ago

I have the same problem on EndeavourOS. I installed Zed in every possible way but it crashes and only open with sudo.

I switched to the mesa drivbers and the issue is gone. It seems like during installing lutris or steam, I accidently pulled AMDGPU which takes over the vulkan-loader. do yay -R amdvlk lib32-amdvlk and reboot.

Make sure you have all the mesa/vulkan loader stuff installed as per the wiki. I can link it here if you need me to.

crnobog69 commented 3 months ago

I have the same problem on EndeavourOS. I installed Zed in every possible way but it crashes and only open with sudo.

I switched to the mesa drivbers and the issue is gone. It seems like during installing lutris or steam, I accidently pulled AMDGPU which takes over the vulkan-loader. do yay -R amdvlk lib32-amdvlk and reboot.

Make sure you have all the mesa/vulkan loader stuff installed as per the wiki. I can link it here if you need me to.

Thank you. Now it works.

Mondrethos commented 3 months ago

I have the same problem on EndeavourOS. I installed Zed in every possible way but it crashes and only open with sudo.

I switched to the mesa drivbers and the issue is gone. It seems like during installing lutris or steam, I accidently pulled AMDGPU which takes over the vulkan-loader. do yay -R amdvlk lib32-amdvlk and reboot. Make sure you have all the mesa/vulkan loader stuff installed as per the wiki. I can link it here if you need me to.

Thank you. Now it works.

No problem. I will still leave the report open beacuse a lot of people use the AMDGPU drivers.

143mailliw commented 3 months ago

As I mentioned in the Discord, this is an issue with the AMDGPU Vulkan driver, and not Zed. Apparently, it was supposed to be fixed by AMD, but evidently it isn't.

The issue (recently reopened) is here: https://github.com/GPUOpen-Drivers/AMDVLK/issues/351

Om-Thorat commented 3 months ago

I don't have amdvlk installed and yet face the same problem, with nvidia drivers. Zed runs only when using sudo.

143mailliw commented 3 months ago

I don't have amdvlk installed and yet face the same problem, with nvidia drivers. Zed runs only when using sudo.

Can you post the output of zeditor --foreground and vulkaninfo?

Om-Thorat commented 3 months ago

I don't have amdvlk installed and yet face the same problem, with nvidia drivers. Zed runs only when using sudo.

Can you post the output of zeditor --foreground and vulkaninfo?

❯ ~/.local/bin/zed --foreground .
error opening [PathLikeWithPosition { path_like: "/home/om/intern/landing", row: None, column: None }]: NoSupportedDeviceFound

Vulkaninfo output

https://pastebin.com/gceJeYaV

143mailliw commented 3 months ago

@Om-Thorat Could you put the vulkaninfo output in pastebin or a GitHub Gist and edit your post to link to that instead? Right now your comment is super long.

MaxThom commented 3 weeks ago

Switched to radv and issue fixed. Also using endearvour os. Thanks team.