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

Zed won't even start on Linux for me anymore. #18573

Open
1 task done
GlacierFox opened this issue Oct 1, 2024 · 10 comments
Open
1 task done

Zed won't even start on Linux for me anymore. #18573

GlacierFox opened this issue Oct 1, 2024 · 10 comments
Labels
bug [core label] linux panic / crash [core label]

Comments

@GlacierFox
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I've got a strange bug which presents me with absolutely no information on what's actually causing it. I've been using Zed on my Linux machine over the last couple of months but upon installing the latest build, it won't even load.

I've installed it using the sh script.

After successfully installing and running zed from the terminal I get absolutely nothing. No response at all apart from a hanging terminal process and two stuck processes zed and zed-editor. It doesn't seem like it even gets as far as generating any log information as I can't find any. The same thing happens when I install using Flatpak too.

I've tried completely clearing all data and reinstalling multiple times now to the same effect.

Environment

RHEL 9.4
Kernel: 5.14.0-427.37.1.el9_4.x86_64 (64-bit)
KDE Plasma 5.27.11
NVIDIA GeForce GTX 970
Driver Version: 550.107.02

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Doesn't actually exist in ~/.local/share/zed/logs/Zed.log

@GlacierFox GlacierFox added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Oct 1, 2024
@lenny991
Copy link

lenny991 commented Oct 1, 2024

Same happening to me. Happened after installing NVChad for whatever reason. Was working great earlier today.

Here's my log file for today,
zedlogtoday.txt

I also tried to download it through the Preview branch, didn't work. I tried to download it through pacman, didn't work.

for example, this bit looks worrying:
image
rust analyser doesn't exist? May be caused by NVChad, maybe? I don't know. It should exist because earlier today I could work with rust just fine. The buttonpress thing could be a problem with a new mouse I just got, as my earlier one was about to break. Though I can confirm zed still doesn't work even without the mouse plugged in.

image
Also just lots of permission denied.

(I'm on linux as well)

@lenny991
Copy link

lenny991 commented Oct 1, 2024

Hey, I've been messing about with trying to find the root cause because I just can't survive without my random rust projects. I even tried to use NVChad but that was too complex.

Anyways what I found is that this is probably a system issue, especially relating to drivers rather than a ZED issue. As when I run some vulkan commands, vulkan is shitting itself always, no matter if it relates to Zed or not.
image

I've been scrolling through threads and threads, this is all I've come up with. @GlacierFox could you tell me what OS you're on, and what GPU you have so we could try to maybe figure out what the actual cause of it is. I suspect GPU drivers, as I just did an automatic update of like 50 system packages today and maybe one broke, which was specific to my GPU or some way Manjaro handles GPUs, I dunno I'm no wizard :D

@GlacierFox
Copy link
Author

@lenny991 hey! If you look in my post above I've put my OS, GPU and driver versions in the Environment section.

@lenny991
Copy link

lenny991 commented Oct 1, 2024

😂My bad I'm a bit too ahead of myself. I didn't even know that RHEL is an OS. We have totally different configs, I have an integrated laptop amd gpu and you have an nvidia gpu. Probably some update as we both see the exact same issue at the exact same time, and I did run an updater just before this issue appeared. I guess if my hypothesis is correct I gotta download Sublime while we wait for the update to be reverted or for them to fix it. It's annoying that I updated like 20 different modules in my system all at once so I don't even know where to report it, but they'll probably find it out because Vulcan as a whole isn't working for me at least.

@GlacierFox
Copy link
Author

@lenny991 yeah I think I'm just gonna leave it if for a while there's not immediate solution. I actually use my GPU for rendering on this machine so I haven't actually had any noticeable problems with the GPU or drivers themselves but sometimes things tend to go wonky with Zed for me until they miraculously just... Fix themselves 😅

@lenny991
Copy link

lenny991 commented Oct 2, 2024

@GlacierFox It's absolutely a Vulkan-specific issue, I'm guessing you're using another rendering thing for your rendering businesses. It was probably broken by some automatic update. Hopefully this is a widely occurring issue so they fix it ASAP, and not specific to our PC configs somehow.
image
I get the same issue when running my bevy game, and the game runs EXTREMELY slowly.

Edit: I moved back to using my other installed OS: Linux Mint and now Zed works great again. I'm still leaning on this being an issue with some automatic update to graphics drivers, as this problem is now present in anythin Vulkan for me on Manjaro. I just gotta hope they don't update it here lol. I even downloaded Terraria (which was the only Vulkan game I have on Steam) for testing and it ran extremely slowly, probably because of the same issue.

@mitchsmith
Copy link

I have the identical symptom, but without anything that looks GPU related. I was loving zed and had it working well with the assistant using ollama running on lan local server until the latest update.

  • Pop! OS 20.04
  • only change to global settings is vi mode is enabled
  • empty project settings
  • pyprohect.toml:
[tool.pyright]
venvPath = "/mnt/513cb4af-eeab-49af-9299-e64b051ccdd1/venvs/"
venv = "py312-ai"
  • I have never configured copilot and don't especially care to:
flatpak run dev.zed.Zed --foreground
[2024-10-02T10:23:32-05:00 ERROR fs] No such file or directory (os error 2) about ["/home/john/.config/github-copilot"]
[2024-10-02T10:23:32-05:00 ERROR assistant] no worktrees when constructing LocalLspAdapterDelegate

Do I have to now?

Here's where it fails to connect to server according to ~/.var/app/dev.zed.Zed/data/zed/logs/Zed.log

2024-10-02T10:17:07.359517888-05:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-10-02T10:17:07.359555508-05:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-10-02T10:17:07.366127878-05:00 [INFO] Try connect ibus
2024-10-02T10:17:07.366633669-05:00 [INFO] perform;
2024-10-02T10:17:07.366652124-05:00 [INFO] authenticate;
2024-10-02T10:17:07.366688073-05:00 [INFO] read_command;
2024-10-02T10:17:07.366820436-05:00 [INFO] Opening main db
2024-10-02T10:17:07.367006087-05:00 [INFO] new;
2024-10-02T10:17:07.367054003-05:00 [INFO] socket reader;
2024-10-02T10:17:07.367718385-05:00 [INFO] keep_updated;
2024-10-02T10:17:07.376480423-05:00 [INFO] Opening main db
2024-10-02T10:17:07.386859893-05:00 [INFO] Using git binary path: None
2024-10-02T10:17:07.42043101-05:00 [ERROR] No such file or directory (os error 2) about ["/home/john/.config/github-copilot"]
2024-10-02T10:17:07.420534875-05:00 [INFO] initializing context server client
2024-10-02T10:17:07.420619106-05:00 [INFO] Registering built-in prompt template: content_prompt
2024-10-02T10:17:07.420926557-05:00 [INFO] Registering built-in prompt template: edit_workflow
2024-10-02T10:17:07.421153697-05:00 [INFO] Registering built-in prompt template: step_resolution
2024-10-02T10:17:07.421202861-05:00 [INFO] set environment variables from shell:/bin/bash, path:/home/john/.local/bin:/home/john/Projects/go/bin:/usr/local/go/bin:/home/john/.local/bin:/home/john/.local/bin:/home/john/Projects/go/bin:/usr/local/go/bin:/home/john/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/lib/cuda/bin:/usr/lib/cuda/bin
2024-10-02T10:17:07.421584928-05:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-10-02T10:17:07.42184796-05:00 [INFO] No prompt template overrides directory found at /home/john/.var/app/dev.zed.Zed/data/zed/prompt_overrides. Using built-in prompts.
2024-10-02T10:17:07.423510237-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.423540401-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.423555881-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.423570818-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.424019821-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.425302026-05:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-10-02T10:17:07.425383078-05:00 [INFO] Opening main db
2024-10-02T10:17:07.431881096-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.431960967-05:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-10-02T10:17:07.431988355-05:00 [INFO] Creating colormap 48234499
2024-10-02T10:17:07.432050594-05:00 [INFO] perform;
2024-10-02T10:17:07.432075216-05:00 [INFO] authenticate;
2024-10-02T10:17:07.432101195-05:00 [INFO] read_command;
2024-10-02T10:17:07.432115301-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.432144816-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.432161367-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.43220124-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.433298219-05:00 [INFO] socket reader;
2024-10-02T10:17:07.475731384-05:00 [INFO] Enabling Vulkan Portability
2024-10-02T10:17:07.475754599-05:00 [INFO] Enabling color space support
2024-10-02T10:17:07.528942058-05:00 [INFO] Adapter: "Intel(R) UHD Graphics (CML GT2)"
2024-10-02T10:17:07.529148819-05:00 [INFO] Testing presentation capability on Linux/Intel
2024-10-02T10:17:07.545372338-05:00 [INFO] No ray tracing extensions are supported
2024-10-02T10:17:07.548572829-05:00 [INFO] Using surface present mode MAILBOX
2024-10-02T10:17:07.548631853-05:00 [WARN] Unable to forbid exclusive full screen
2024-10-02T10:17:07.569235002-05:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-02T10:17:07.569278202-05:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-02T10:17:07.569307152-05:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-10-02T10:17:07.58638749-05:00 [INFO] Refreshing at 6944 micros
2024-10-02T10:17:07.587315917-05:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics (CML GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.0.3-1pop1~1711635559~22.04~7a9f319" }
2024-10-02T10:17:07.588088711-05:00 [INFO] XConnected server on 29360135, transport version: 0.0, TRANSPORT_MAX: 20
2024-10-02T10:17:07.596346052-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.596477487-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.597203504-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.597461186-05:00 [INFO] Opening main db
2024-10-02T10:17:07.599313705-05:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate
2024-10-02T10:17:07.623739053-05:00 [WARN] request completed with error: failed to connect to the server
2024-10-02T10:17:07.62478657-05:00 [INFO] rebuilt extension index in 758.423µs```

@mitchsmith
Copy link

mitchsmith commented Oct 2, 2024

Actually: On closer inspection, I'm not sure why it isn't detecting the GeForce RTX 2060 Mobile and is trying to use the intel embedded graphics card instead, so maybe GPU related after all?
Gnome/Xorg is using GeForce RTX 2060 Mobile

@judemvm
Copy link

judemvm commented Oct 2, 2024

Actually: On closer inspection, I'm not sure why it isn't detecting the GeForce RTX 2060 Mobile and is trying to use the intel embedded graphics card instead, so maybe GPU related after all? Gnome/Xorg is using GeForce RTX 2060 Mobile

Same problem #17776 (comment), #17776 (comment)

@JosephTLyons JosephTLyons added linux and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Oct 3, 2024
@KagemniKarimu
Copy link

Same issue. unable to start Zed after successful install. Process just hangs then aborts without producing a GUI.

System Info

uname -a produces the following:

Linux debian-vbox 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64 GNU/Linux

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

No branches or pull requests

6 participants