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
42.82k stars 2.29k forks source link

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

Open Mondrethos opened 2 weeks ago

Mondrethos commented 2 weeks 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 2 weeks 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 2 weeks ago

Screenshot from this user in discord:

image

crnobog69 commented 2 weeks 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 2 weeks ago

Screenshot from this user in discord:

image

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

Mondrethos commented 2 weeks 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 2 weeks 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 2 weeks 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 2 weeks 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 5 hours ago

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

143mailliw commented 31 minutes 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?