Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
Mondrethos opened this issue Jul 11, 2024 · 12 comments
Open
1 task done

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

Mondrethos opened this issue Jul 11, 2024 · 12 comments
Labels
defect [core label] linux

Comments

@Mondrethos
Copy link

Check for existing issues

  • Completed

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
@Mondrethos Mondrethos added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Jul 11, 2024
@notpeter notpeter added linux and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jul 11, 2024
@Daniel-Boll
Copy link

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
Copy link
Contributor

mikayla-maki commented Jul 11, 2024

Screenshot from this user in discord:

image

@crnobog69
Copy link

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

@apricotbucket28
Copy link
Contributor

apricotbucket28 commented Jul 11, 2024

Screenshot from this user in discord:

image

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

@Mondrethos
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link

143mailliw commented Jul 12, 2024

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: GPUOpen-Drivers/AMDVLK#351

@Om-Thorat
Copy link

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

@143mailliw
Copy link

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
Copy link

Om-Thorat commented Aug 1, 2024

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] linux
Projects
None yet
Development

No branches or pull requests

8 participants