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 appears as a frozen window without contents on Ubuntu 24.04 X11 #21001

Open
1 task done
aflip opened this issue Nov 21, 2024 · 9 comments
Open
1 task done

Zed appears as a frozen window without contents on Ubuntu 24.04 X11 #21001

aflip opened this issue Nov 21, 2024 · 9 comments
Labels
bug [core label] linux needs info / awaiting response Issue that needs more information from the user panic / crash [core label]

Comments

@aflip
Copy link

aflip commented Nov 21, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I installed zed using both the flatpak and the curl method on the website, but the editor does not launch when running with --foreground it reads [2024-11-21T22:49:21+05:30 ERROR zed] missing field name at line 17 column 1
Screenshot from 2024-11-21 22-23-37

Environment

Hardware Information:

  • Hardware Model: Lenovo Legion 5 15ITH6
  • Memory: 32.0 GiB
  • Processor: 11th Gen Intel® Core™ i7-11800H × 16
  • Graphics: NVIDIA GeForce RTX™ 3050 Laptop GPU
  • Graphics 1: NVIDIA GeForce RTX™ 3050 Laptop GPU
  • Disk Capacity: 1.5 TB

Software Information:

  • Firmware Version: H1CN33WW
  • OS Name: Ubuntu 24.04.1 LTS
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: X11
  • Kernel Version: Linux 6.8.0-49-generic

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

Zed.log
2024-11-21T20:55:24.085575577+05:30 [INFO] ========== starting zed ==========
2024-11-21T20:55:24.103234591+05:30 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-11-21T20:55:24.103275055+05:30 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-11-21T20:55:24.107673686+05:30 [INFO] Try connect ibus
2024-11-21T20:55:24.108154265+05:30 [INFO] perform;
2024-11-21T20:55:24.108171393+05:30 [INFO] authenticate;
2024-11-21T20:55:24.108200639+05:30 [INFO] read_command;
2024-11-21T20:55:24.108348441+05:30 [INFO] Opening main db
2024-11-21T20:55:24.108790891+05:30 [INFO] new;
2024-11-21T20:55:24.108807252+05:30 [INFO] socket reader;
2024-11-21T20:55:24.109267008+05:30 [INFO] keep_updated;
2024-11-21T20:55:24.142976965+05:30 [INFO] Opening main db
2024-11-21T20:55:24.172688043+05:30 [INFO] Using git binary path: None
2024-11-21T20:55:24.210895837+05:30 [ERROR] No such file or directory (os error 2) about ["/home/XXXX/.config/github-copilot"]
2024-11-21T20:55:24.211689308+05:30 [INFO] No prompt template overrides directory found at /home/XXXX/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-11-21T20:55:24.213540067+05:30 [INFO] activate is not implemented on Linux, ignoring the call
2024-11-21T20:55:24.214834227+05:30 [INFO] Opening main db
2024-11-21T20:55:24.214974238+05:30 [INFO] perform;
2024-11-21T20:55:24.214988901+05:30 [INFO] authenticate;
2024-11-21T20:55:24.215006469+05:30 [INFO] read_command;
2024-11-21T20:55:24.215659373+05:30 [INFO] socket reader;
2024-11-21T20:55:24.221417549+05:30 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-11-21T20:55:24.22144112+05:30 [INFO] Creating colormap 111149059
2024-11-21T20:55:24.245148556+05:30 [INFO] Enabling Vulkan Portability
2024-11-21T20:55:24.245173026+05:30 [INFO] Enabling color space support
2024-11-21T20:55:24.255982949+05:30 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-21T20:55:24.256174792+05:30 [INFO] Testing presentation capability on Linux/Intel
2024-11-21T20:55:24.262033961+05:30 [INFO] No ray tracing extensions are supported
2024-11-21T20:55:24.264050891+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T20:55:24.264090091+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T20:55:24.267569392+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T20:55:24.267593974+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T20:55:24.267614949+05:30 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-11-21T20:55:24.278339025+05:30 [INFO] set environment variables from shell:/bin/bash, path:/home/XXXX/.local/bin:/home/XXXX/miniforge3/condabin:/home/XXXX/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2024-11-21T20:55:24.64433492+05:30 [INFO] Refreshing at 16666 micros
2024-11-21T20:55:24.645549441+05:30 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics (TGL GT1)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.0.9-0ubuntu0.2" }
2024-11-21T20:55:24.665753418+05:30 [INFO] XConnected server on 27262983, transport version: 0.0, TRANSPORT_MAX: 20
2024-11-21T20:55:24.666986104+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T20:55:24.667022079+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T20:55:24.687425487+05:30 [INFO] rebuilt extension index in 507.98µs
2024-11-21T20:55:24.687693644+05:30 [ERROR] missing field `name` at line 17 column 1
2024-11-21T20:55:24.687965239+05:30 [ERROR] Is a directory (os error 21)
2024-11-21T20:55:24.688426043+05:30 [INFO] Opening main db
2024-11-21T21:05:32.536298698+05:30 [ERROR] {
  "thread": "main",
  "payload": "Aquire image error ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 1102
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "blade_graphics::hal::init::<impl blade_graphics::hal::Context>::acquire_frame",
    "gpui::platform::blade::blade_renderer::BladeRenderer::draw",
    "<gpui::platform::linux::x11::window::X11Window as gpui::platform::PlatformWindow>::draw",
    "gpui::window::Window::new::{{closure}}::{{closure}}",
    "gpui::window::Window::new::{{closure}}",
    "<core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher<Data>>::process_events",
    "<gpui::platform::linux::x11::client::X11Client as gpui::platform::linux::platform::LinuxClient>::run",
    "gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::run",
    "gpui::app::App::run",
    "zed::main",
    "std::sys::backtrace::__rust_begin_short_backtrace",
    "std::rt::lang_start::{{closure}}",
    "std::rt::lang_start_internal",
    "main",
    "__libc_start_call_main",
    "__libc_start_main_impl",
    "_start"
  ],
  "app_version": "0.162.3",
  "release_channel": "Zed",
  "os_name": "Linux X11",
  "os_version": "ubuntu 24.04",
  "architecture": "x86_64",
  "panicked_on": 1732203332536,
  "system_id": "44063262-c04b-4d0d-891a-128bda0b6874",
  "installation_id": "7eaf9d63-dd8e-4839-84f2-cb8af873a6f4",
  "session_id": "27b708d0-dbe9-47e8-87e3-8f262a048ff9"
}
2024-11-21T21:53:25.792568569+05:30 [INFO] ========== starting zed ==========
2024-11-21T21:53:25.804542999+05:30 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-11-21T21:53:25.804585261+05:30 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-11-21T21:53:25.821833722+05:30 [INFO] Try connect ibus
2024-11-21T21:53:25.822446122+05:30 [INFO] perform;
2024-11-21T21:53:25.822471864+05:30 [INFO] authenticate;
2024-11-21T21:53:25.822509894+05:30 [INFO] read_command;
2024-11-21T21:53:25.822588761+05:30 [INFO] Opening main db
2024-11-21T21:53:25.823263277+05:30 [INFO] new;
2024-11-21T21:53:25.823330834+05:30 [INFO] socket reader;
2024-11-21T21:53:25.82337164+05:30 [INFO] Opening main db
2024-11-21T21:53:25.823982427+05:30 [INFO] keep_updated;
2024-11-21T21:53:25.824158651+05:30 [INFO] Using git binary path: None
2024-11-21T21:53:25.850887963+05:30 [ERROR] No such file or directory (os error 2) about ["/home/XXXX/.config/github-copilot"]
2024-11-21T21:53:25.851805761+05:30 [INFO] No prompt template overrides directory found at /home/XXXX/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-11-21T21:53:25.853591413+05:30 [INFO] activate is not implemented on Linux, ignoring the call
2024-11-21T21:53:25.854593665+05:30 [INFO] Opening main db
2024-11-21T21:53:25.854796825+05:30 [INFO] perform;
2024-11-21T21:53:25.854821104+05:30 [INFO] authenticate;
2024-11-21T21:53:25.854849192+05:30 [INFO] read_command;
2024-11-21T21:53:25.855263374+05:30 [INFO] socket reader;
2024-11-21T21:53:25.857891933+05:30 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-11-21T21:53:25.857925962+05:30 [INFO] Creating colormap 60817411
2024-11-21T21:53:25.883362692+05:30 [INFO] Enabling Vulkan Portability
2024-11-21T21:53:25.883391588+05:30 [INFO] Enabling color space support
2024-11-21T21:53:25.895884402+05:30 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-21T21:53:25.896157471+05:30 [INFO] Testing presentation capability on Linux/Intel
2024-11-21T21:53:25.900958+05:30 [INFO] No ray tracing extensions are supported
2024-11-21T21:53:25.902987888+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T21:53:25.903050507+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T21:53:25.906652816+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T21:53:25.906699584+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T21:53:25.906730232+05:30 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-11-21T21:53:25.92216266+05:30 [INFO] set environment variables from shell:/bin/bash, path:/home/XXXX/.local/bin:/home/XXXX/miniforge3/condabin:/home/XXXX/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2024-11-21T21:53:26.212859169+05:30 [INFO] Refreshing at 16666 micros
2024-11-21T21:53:26.213932313+05:30 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics (TGL GT1)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.0.9-0ubuntu0.2" }
2024-11-21T21:53:26.225425006+05:30 [INFO] XConnected server on 29360135, transport version: 0.0, TRANSPORT_MAX: 20
2024-11-21T21:53:26.227517991+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T21:53:26.227551693+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T21:53:26.237607042+05:30 [INFO] rebuilt extension index in 440.418µs
2024-11-21T21:53:26.237732401+05:30 [ERROR] missing field `name` at line 17 column 1
2024-11-21T21:53:26.238829956+05:30 [INFO] Opening main db
2024-11-21T21:53:26.242034646+05:30 [INFO] Opening main db
2024-11-21T22:22:54.422293523+05:30 [INFO] ========== starting zed ==========
2024-11-21T22:22:54.447181438+05:30 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-11-21T22:22:54.447222427+05:30 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-11-21T22:22:54.451096857+05:30 [INFO] Try connect ibus
2024-11-21T22:22:54.451775993+05:30 [INFO] perform;
2024-11-21T22:22:54.451803285+05:30 [INFO] authenticate;
2024-11-21T22:22:54.451823572+05:30 [INFO] Opening main db
2024-11-21T22:22:54.451860711+05:30 [INFO] read_command;
2024-11-21T22:22:54.452305456+05:30 [INFO] new;
2024-11-21T22:22:54.452335803+05:30 [INFO] socket reader;
2024-11-21T22:22:54.452679273+05:30 [INFO] Opening main db
2024-11-21T22:22:54.452789804+05:30 [INFO] keep_updated;
2024-11-21T22:22:54.453689512+05:30 [INFO] Using git binary path: None
2024-11-21T22:22:54.481550822+05:30 [INFO] No prompt template overrides directory found at /home/XXXX/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-11-21T22:22:54.483277688+05:30 [INFO] activate is not implemented on Linux, ignoring the call
2024-11-21T22:22:54.484314815+05:30 [INFO] Opening main db
2024-11-21T22:22:54.484477964+05:30 [INFO] perform;
2024-11-21T22:22:54.484501038+05:30 [INFO] authenticate;
2024-11-21T22:22:54.484528603+05:30 [INFO] read_command;
2024-11-21T22:22:54.484938062+05:30 [INFO] socket reader;
2024-11-21T22:22:54.486940872+05:30 [INFO] installing extension html latest version
2024-11-21T22:22:54.487251025+05:30 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-11-21T22:22:54.487286772+05:30 [INFO] Creating colormap 58720259
2024-11-21T22:22:54.51062296+05:30 [INFO] Enabling Vulkan Portability
2024-11-21T22:22:54.510652815+05:30 [INFO] Enabling color space support
2024-11-21T22:22:54.536994164+05:30 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-21T22:22:54.53719155+05:30 [INFO] Testing presentation capability on Linux/Intel
2024-11-21T22:22:54.541755895+05:30 [INFO] No ray tracing extensions are supported
2024-11-21T22:22:54.543543878+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T22:22:54.543591314+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T22:22:54.547134344+05:30 [INFO] set environment variables from shell:/bin/bash, path:/home/XXXX/.local/bin:/home/XXXX/miniforge3/condabin:/home/XXXX/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2024-11-21T22:22:54.55919018+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T22:22:54.55922895+05:30 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-21T22:22:54.559269077+05:30 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-11-21T22:22:54.746069858+05:30 [INFO] Refreshing at 16666 micros
2024-11-21T22:22:54.746972965+05:30 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics (TGL GT1)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.0.9-0ubuntu0.2" }
2024-11-21T22:22:54.756909349+05:30 [INFO] Using surface present mode MAILBOX
2024-11-21T22:22:54.756949154+05:30 [WARN] Unable to forbid exclusive full screen
2024-11-21T22:22:54.764569083+05:30 [INFO] XConnected server on 27262985, transport version: 0.0, TRANSPORT_MAX: 20
2024-11-21T22:22:54.766761835+05:30 [ERROR] missing field `name` at line 17 column 1
2024-11-21T22:22:54.767876919+05:30 [INFO] Opening main db
2024-11-21T22:22:54.771066809+05:30 [INFO] Opening main db
@aflip aflip added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Nov 21, 2024
@DavidBM
Copy link

DavidBM commented Nov 23, 2024

Same happening to me.
Adding DRI_PRIME=1 fixes it. But it worked before without that

@czlucius
Copy link

Seems like problems with NVIDIA drivers?

@pnicorelli
Copy link

Same here

Hardware Information:
Hardware Model: HP HP Pavilion Laptop 15-eg0xxx
Memory: 15Gi
Processor: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz × 8
Graphics: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01) /3D controller: NVIDIA Corporation TU117M [GeForce MX450] (rev a1)
Disk Capacity: 16415,9 TB

Software Information:
Firmware Version: F.11
OS Name: Ubuntu 22.04.5 LTS
OS Type: x86_64
GNOME Version: GNOME Shell 42.9
Windowing System: x11
Kernel Version: Linux 6.8.0-49-generic

Zed.log

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

Hey @aflip, some of this description matches what we are tracking here:

Can you confirm or let us know if you think this fits what you are experiencing? Just trying to consolidate issues. Thanks.

@JosephTLyons JosephTLyons added the needs info / awaiting response Issue that needs more information from the user label Dec 3, 2024
@pnicorelli
Copy link

I am experiencing the same issue. Using the workaround mentioned in #16428 didn't solve the frozen windows problem, but setting DRI_PRIME=1 fixed it.

@aflip
Copy link
Author

aflip commented Dec 3, 2024

Can you confirm or let us know if you think this fits what you are experiencing? Just trying to consolidate issues. Thanks.
@JosephTLyons

My issues with Ubuntu 24.04 and its graphics drivers escalated and I ended up dropping back down to 22.04LTS and I installed zed today, tried it out and it works just fine. I have libvulcan1 installed but did not need to do anything else.

@frainfreeze
Copy link

same on latest debian, nvidia gpu, latest stable zed. DRI_PRIME doesn't fix it.

@machin3io
Copy link

machin3io commented Dec 27, 2024

I've been working with Zed for the past month or so, no issues at all - except zed not surviving sleep/suspends, but not a major issue.

I work on a laptop with only the external screen enabled - ultra wide so a higher resolution than the laptop's native display.

Over xmas I took my laptop to family and could not get zed to launch, not on the native laptop screen, nor on a smaller external screen with the same resolution as the laptop.

I renamed my .config/zed and .local/share/zed folders to set zed back into factory state, thinking that maybe my saved config conflicts with the new hardware situation. I could see in the taskbar that instead of my previous project, an empty project or pane is open now, but the zed UI still didn't come up - just an empty screen - "empty" as in "I can see the wallpaper", while the window manager reserves space for zed.

zed --foreground showed

2024-12-27T20:20:13+01:00 ERROR zed] missing field `name` at line 163 column 1
2024-12-27T20:20:13+01:00 ERROR home] node at /usr/bin/node is too old. want: 18.0.0, got: 16.20.2

The only thing that did work was DRI_PRIME=1 zed

Today I'm back home, and zed started working as before again - so without DRI_PRIME=1, as soon as I plugged my bigger external screen in.

zed --foreground still shows the same 2 errors, and probably always had, so I think it's unrelated.

I'm ok for now, while I'm not working "on the road", and just posting this so it may help shed some light on things.

Pop!_OS 22.04 LTS with awesomewm
12th Gen Intel® Core™ i7-12700H × 20
NVIDIA GeForce RTX 3080 Ti Laptop

@prateeksaini01
Copy link

Facing the same issue running the Flatpak on X11. I can switch to Wayland session from the login (KDE Plasma 6) and it works just fine.
Running flatpak run --env=DRI_PRIME=1 --env=WAYLAND_DISPLAY='' dev.zed.Zed or any combination of the two environment variables does not change anything.
There seems to be no difference in the logs when launching from X11 or Wayland

Using KDE Neon based on Ubuntu 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] linux needs info / awaiting response Issue that needs more information from the user panic / crash [core label]
Projects
None yet
Development

No branches or pull requests

8 participants