zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed Editor Window Invisible

Open BinaryNerd01 opened this issue 1 year ago • 6 comments

Check for existing issues

  • [x] Completed

Describe the bug / provide steps to reproduce it

I have a RHEL 9.4 Linux system and installed the Zed editor using the command from the official website: curl -f https://zed.dev/install.sh | sh.

The installation was successful, and the app appeared on my home screen. However, when I launch the Zed editor, it opens with an invisible screen. Please see the screenshot below:

image

I would like to know how to resolve this issue and start using the application. I didn't expect this behaviour. I waited a long time for it to be available on Linux, and now that I finally tried using it, it isn't working.

Environment

Virtualization: vmware Operating System: Red Hat Enterprise Linux 9.4 (Plow) Kernel: Linux 5.14.0-427.22.1.el9_4.x86_64 Architecture: x86-64 package: 1469(rpm) Shell: bash Resolution: 1920x1080 Desktop Environment and Window Manager: GNOME CPU: Intel(R) Xeon(R) Platinum 8362 CPU @ 2.80GHz

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

Zed.log

[INFO] ========== starting zed ==========
[INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
[INFO] x11: compositor present: true, gtk_frame_extents_supported: true
[INFO] Try connect ibus
[INFO] perform;
[INFO] read_command;
[INFO] read_command;
[INFO] Opening main db
[INFO] socket reader;
[INFO] new;
[INFO] Using git binary path: None
[INFO] extensions updated. loading 1, reloading 0, unloading 0
[INFO] activate is not implemented on Linux, ignoring the call
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[INFO] Opening main db
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[INFO] perform;
[INFO] read_command;
[INFO] read_command;
[INFO] socket reader;
[INFO] XConnected server on 8388614, transport version: 0.0, TRANSPORT_MAX: 20
[INFO] Using Visual { id: 77, colormap: 0, depth: 32 }
[INFO] Creating colormap 31457283
[INFO] Enabling Vulkan Portability
[INFO] Enabling color space support
[INFO] Adapter "llvmpipe (LLVM 17.0.6, 256 bits)"
[INFO] No ray tracing extensions are supported
[INFO] Using surface present mode MAILBOX
[INFO] set environment variables from shell:/bin/bash, path:/u01/home/BinaryNerd/.local/bin:/u01/home/BinaryNerd/bin:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/u01/home/BinaryNerd/.local/share/JetBrains/Toolbox/scripts:/u01/home/BinaryNerd/.local/share/JetBrains/Toolbox/scripts:/u01/home/BinaryNerd/.local/share/JetBrains/Toolbox/scripts:/u01/home/BinaryNerd/.local/share/JetBrains/Toolbox/scripts:/u01/home/BinaryNerd/.local/share/JetBrains/Toolbox/scripts
[WARN] Unable to forbid exclusive full screen
[INFO] Creating a descriptor pool for at most 16 sets
[INFO] Creating a descriptor pool for at most 16 sets
[INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
[INFO] Refreshing at 16666 micros
[INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 17.0.6, 256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 23.3.3 (LLVM 17.0.6)" }
[INFO] Using surface present mode MAILBOX
[WARN] Unable to forbid exclusive full screen
[WARN] request completed with error: failed to connect to the server
[WARN] request completed with error: failed to connect to the server
[INFO] Opening main db
[INFO] Initializing default prettier with plugins {}
[ERROR] no worktrees when constructing ProjectLspAdapterDelegate
[INFO] Node runtime install_if_needed
[WARN] request completed with error: failed to connect to the server
[INFO] keep_updated;
[INFO] Initializing default prettier with plugins {}
[WARN] request completed with error: failed to connect to the server
[INFO] Initializing default prettier with plugins {}
[INFO] starting language server. binary path: "/u01/home/BinaryNerd/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/", args: ["/u01/home/BinaryNerd/.local/share/zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
[WARN] request completed with error: failed to connect to the server
[INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-01T16:27:28.890Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-08-01T16:27:28.890Z]",
  "extra": [
    "Agent service starting"
  ]
}
[INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
[INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-01T16:27:28.914Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-08-01T16:27:28.914Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
[ERROR] DBus error Prompt was dismissed

BinaryNerd01 avatar Aug 02 '24 08:08 BinaryNerd01

Hey @BinaryNerd01, we've had a few other issues similar to this - do either of these feel like they cover what you are experiencing? If so, I'll close this one, in favor of one of those, to keep everything in one spot. Thanks!

  • https://github.com/zed-industries/zed/issues/14314
  • https://github.com/zed-industries/zed/issues/14204

JosephTLyons avatar Aug 02 '24 16:08 JosephTLyons

Linking this issue didn't solve my problem. No solutions were proposed for the mentioned issue.

BinaryNerd01 avatar Aug 02 '24 18:08 BinaryNerd01

Those haven't been solved yet, I'm just trying to consolidate potentially-identical issues.

JosephTLyons avatar Aug 02 '24 19:08 JosephTLyons

Any ETA on this?

BinaryNerd01 avatar Aug 03 '24 15:08 BinaryNerd01

hey, jumping in: not sure it's the same as either of those issues, but there is definitely something going on here. I'm on NixOS + Hyprland (also tried Sway) and nothing can seem to match the desktop file to the window when opened. so, if I use rofi in window mode to swap menus, it looks like this: image

Most other apps are readily matched to their desktop files, so they have an icon and reasonable name set. Not so with zed. My first thought is that it perhaps is not setting the right class in the desktop file? Which could prevent it from matching to the appropriate icon etc. Here's a selection from the out put of hyprctl clients:

Window c473680 -> settings.nix — nixcfg:
	mapped: 1
	hidden: 0
	at: 8,40
	size: 1424,852
	workspace: 2 (code)
	floating: 0
	pseudo: 0
	monitor: 0
	class: dev.zed.Zed
	title: settings.nix — nixcfg
	initialClass: dev.zed.Zed
	initialTitle: nixcfg
	pid: 1479692
	xwayland: 0
	pinned: 0
	fullscreen: 0
	fullscreenmode: 0
	fakefullscreen: 0
	grouped: 0
	tags: 
	swallowing: 0
	focusHistoryID: 1

That said, I can open and use zed no problem. It's just this that seems to be the issue--perhaps @BinaryNerd01 could clarify if the window is showing up on their Gnome workspace, even if the preview is missing? I am not sure these issues are related but it may be worth figuring out which is which.

alyraffauf avatar Aug 04 '24 22:08 alyraffauf

@BinaryNerd01 I'm not super familiar with the RHEL release cycle, could you provide some info about your setup? Specifically

  • kernel version
  • GPU(s) and associated driver packages?

@alyraffauf As the first person I've seen report this on NixOS, could you do the same?

notpeter avatar Aug 18 '24 16:08 notpeter

Hi folks,

I have the same thing on a vanilla Ubuntu install (kernel 6.8.0-40-generic) Ubuntu 22.04.4 LTS Vulkan v1.3.204 on a GeForce GTX 1050 Ti

Invisible window, shows up in activities, but only Quit works. "New Window" & "Open a new workspace" result in a "busy" mouse pointer.

stevenhaggerty avatar Aug 22 '24 16:08 stevenhaggerty

@stevenhaggerty Can you try the workaround listed in this comment to see if it helps?

notpeter avatar Aug 22 '24 17:08 notpeter

"sudo apt update && sudo apt upgrade" - Allows Zed to run.

Unfortunately it looks like my 1050Ti will no longer cut it, as it tells me it's unsupported and performance will be bad.

Thanks for your help.

Steve

stevenhaggerty avatar Aug 22 '24 18:08 stevenhaggerty

There is a vague hint in the docs that worked for me. If you are using Mesa lib, give it a try. Likely something to do with the auto-detection of the proper GPU maybe?

MESA_VK_DEVICE_SELECT=list zed --foreground
# output with GPU 0: xxxx/yyyy ... GPU 1: aaaa/bbbb, etc
MESA_VK_DEVICE_SELECT=xxxx/yyyy zed

agiangrant avatar Sep 25 '24 16:09 agiangrant

There is a vague hint in the docs that worked for me. If you are using Mesa lib, give it a try. Likely something to do with the auto-detection of the proper GPU maybe?

MESA_VK_DEVICE_SELECT=list zed --foreground
# output with GPU 0: xxxx/yyyy ... GPU 1: aaaa/bbbb, etc
MESA_VK_DEVICE_SELECT=xxxx/yyyy zed

This actually worked for me, I was getting the ghost window issue on PopOS with an rtx 4090 and ryzen 9 cpu

RickyWanga avatar Nov 02 '24 12:11 RickyWanga

There is a vague hint in the docs that worked for me. If you are using Mesa lib, give it a try. Likely something to do with the auto-detection of the proper GPU maybe?

MESA_VK_DEVICE_SELECT=list zed --foreground
# output with GPU 0: xxxx/yyyy ... GPU 1: aaaa/bbbb, etc
MESA_VK_DEVICE_SELECT=xxxx/yyyy zed

I have this problema with invisible window, and this solution work for me too. I use Gentoo 2.15 , kernel 6.11.6-gentoo-x86_64 and my GPU 0 is an NVIDIA QUADRO T1000

albertguedes avatar Nov 18 '24 14:11 albertguedes

I'm going to close in favor of this:

  • https://github.com/zed-industries/zed/issues/16428

notpeter avatar Nov 26 '24 18:11 notpeter

This is the same issue i have been facing on my Ubuntu 24.04.1 LTS the installation was all good but i am getting this error the window is invisible, like a month ago everything was fine i used zed after a month and found this error, even tried updating it to the current version is Zed 0.162.5 still the issue remains

hopefully it gets solved

image

POBOROJO avatar Nov 27 '24 14:11 POBOROJO

I had the same problem on Ubuntu. For those who might still be having similar issues, the solution that worked for me was manually switching to NVIDIA GPU, and then running Ubuntu on Wayland.

sudo prime-select nvidia

Also please try

vkcube --gpu_number 0 and vkcube --gpu_number 1

In case everything is configured properly, both the commands should open up a window with a rotating cube on the display. One of the command selects your integrated internal gpu, while the other one selects the external gpu.

CoderParth avatar Dec 28 '24 11:12 CoderParth

@POBOROJO Could you please share your panic/log file as well? A .panic file might have been created on the following directory: ~/.local/share/zed/logs

It would be easier to debug, if you could please share that file. Thanks.

CoderParth avatar Dec 28 '24 11:12 CoderParth

I my case, I had the wrong env variable VK_DRIVER_FILES= pointing to amd files, on an nvidia laptop. That was because of my synchronization of local ~/.config/environment.d/. So, set the correct VK_DRIVER_FILES=/usr/share/vulkan/icd.d/nvidia_icd.json` in my case for nvidia.

Bottom line: also check env VK_ICD_FILENAMES and VK_ICD_FILENAMES, as being unset or set to wrong values lead to the same problem of zed window not being displayed at all.

Also, started from cli with --foreground, this error is an idication of wrong VK_* env:

2025-08-14T16:23:14+03:00 INFO  [zed] ========== starting zed ==========
2025-08-14T16:23:14+03:00 ERROR [blade_graphics::hal::init] Instance extension "VK_KHR_get_physical_device_properties2" is not supported

cr1cr1 avatar Aug 14 '25 13:08 cr1cr1