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
50.74k stars 3.14k forks source link

Previously uninstalled zed zed incorrectly, but cannot run after reinstalling #19659

Open WangZhongDian opened 1 month ago

WangZhongDian commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

log

$ flatpak run -v dev.zed.Zed 
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/wangko/.local/share/flatpak
F: Opening user flatpak installation at path /home/wangko/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Skipping parental controls check for app/dev.zed.Zed/x86_64/stable since parental controls are disabled globally
F: Opening user flatpak installation at path /home/wangko/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/24.08/03a266a73ab3a37dd6876760e9b251351ec09fca1fdcf5c2852a9c2dd11fc7ce/files/lib32 does not exist
F: Cleaning up unused container id 3840583523
F: Cleaning up per-app-ID state for dev.zed.Zed
F: Allocated instance id 3600247421
F: Add defaults in dir /dev/zed/Zed/
F: Add locks in dir /dev/zed/Zed/
F: Allowing dri access
F: Allowing homedir access
F: Allowing wayland access
F: Allowing pulseaudio access
F: Pulseaudio user configuration file '/home/wangko/.config/pulse/client.conf': 打开文件 /home/wangko/.config/pulse/client.conf 时出错:没有那个文件或目录
F: Running 'bwrap --args 40 -- xdg-dbus-proxy --args=42'
F: Running 'bwrap --args 40 -- zed-wrapper'

Environment

flatpak

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.

2024-09-13T08:34:00.823715444+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.099369693+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.100641421+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.266080311+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.269316584+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.55094161+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.555218682+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.599324865+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.60046679+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.766014081+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:01.769051644+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.02303793+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.026753123+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.09931256+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.101879831+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.127052546+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.127867982+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.265829142+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.267556848+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.453397794+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.457816408+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.467200682+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.470034798+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.509052118+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.512865745+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.543600931+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.546159156+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.634177484+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.635427723+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.766081674+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.768820003+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.835426894+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:02.839884846+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:03.141031841+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:03.144670171+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:03.265928201+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:03.268371283+08:00 [ERROR] Client(Error { kind: Timeout, context: None, source: Some(Error { description: "Timeout was reached", code: 28, extra: None }), source_type: Some("curl::error::Error"), local_addr: None, remote_addr: None })
2024-09-13T08:34:03.285840005+08:00 [ERROR] window not found
2024-09-13T08:34:03.285904867+08:00 [ERROR] window not found
2024-09-13T08:34:16.406840286+08:00 [INFO] ========== starting zed ==========
2024-09-13T08:34:16.428424843+08:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-09-13T08:34:16.428506003+08:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-09-13T08:34:16.433637997+08:00 [INFO] Try connect ibus
2024-09-13T08:34:16.434213736+08:00 [INFO] perform;
2024-09-13T08:34:16.434243254+08:00 [INFO] authenticate;
2024-09-13T08:34:16.434286692+08:00 [INFO] read_command;
2024-09-13T08:34:16.434479776+08:00 [INFO] Opening main db
2024-09-13T08:34:16.435025291+08:00 [INFO] new;
2024-09-13T08:34:16.435063007+08:00 [INFO] socket reader;
2024-09-13T08:34:16.435692625+08:00 [INFO] keep_updated;
2024-09-13T08:34:16.436468225+08:00 [INFO] Using git binary path: None
2024-09-13T08:34:16.460622855+08:00 [ERROR] No such file or directory (os error 2) about ["/home/wangko/.config/github-copilot"]
2024-09-13T08:34:16.460772557+08:00 [INFO] initializing context server client
2024-09-13T08:34:16.460848157+08:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-13T08:34:16.461104127+08:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-13T08:34:16.461261308+08:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-13T08:34:16.461573844+08:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-13T08:34:16.461732024+08:00 [INFO] No prompt template overrides directory found at /home/wangko/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-09-13T08:34:16.464525216+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-09-13T08:34:16.489071411+08:00 [INFO] Opening main db
2024-09-13T08:34:16.489308893+08:00 [INFO] perform;
2024-09-13T08:34:16.489340577+08:00 [INFO] authenticate;
2024-09-13T08:34:16.489385554+08:00 [INFO] read_command;
2024-09-13T08:34:16.490072611+08:00 [INFO] socket reader;
2024-09-13T08:34:16.490834638+08:00 [INFO] Using Visual { id: 553, colormap: 0, depth: 32 }
2024-09-13T08:34:16.490870932+08:00 [INFO] Creating colormap 46137347
2024-09-13T08:34:16.491297574+08:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-09-13T08:34:16.494883794+08:00 [INFO] new;
2024-09-13T08:34:16.495508172+08:00 [INFO] keep_updated;
2024-09-13T08:34:16.525202327+08:00 [INFO] Enabling Vulkan Portability
2024-09-13T08:34:16.525229535+08:00 [INFO] Enabling color space support
2024-09-13T08:34:16.543010918+08:00 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-09-13T08:34:16.543340728+08:00 [INFO] Testing presentation capability on Linux/Intel
2024-09-13T08:34:16.550450343+08:00 [INFO] No ray tracing extensions are supported
2024-09-13T08:34:16.554799352+08:00 [INFO] Using surface present mode MAILBOX
2024-09-13T08:34:16.554861186+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-13T08:34:16.555608963+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-13T08:34:16.555654267+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-13T08:34:16.555689278+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-09-13T08:34:16.6205325+08:00 [INFO] Refreshing at 6944 micros
2024-09-13T08:34:16.622496205+08:00 [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.1" }
2024-09-13T08:34:16.646391801+08:00 [INFO] XConnected server on 31457295, transport version: 0.0, TRANSPORT_MAX: 20
2024-09-13T08:34:16.654389914+08:00 [INFO] set status on client 0: Authenticating
2024-09-13T08:34:16.654708963+08:00 [INFO] perform;
2024-09-13T08:34:16.654727859+08:00 [INFO] authenticate;
2024-09-13T08:34:16.654748767+08:00 [INFO] read_command;
2024-09-13T08:34:16.655787296+08:00 [INFO] socket reader;
2024-09-13T08:34:16.65701027+08:00 [INFO] Opening main db
2024-09-13T08:34:16.660129783+08:00 [INFO] Opening main db
2024-09-13T08:34:16.660420677+08:00 [INFO] new;
2024-09-13T08:34:16.661043913+08:00 [INFO] keep_updated;
2024-09-13T08:34:16.66414897+08:00 [INFO] Using surface present mode MAILBOX
2024-09-13T08:34:16.664216116+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-13T08:34:16.669639818+08:00 [INFO] set environment variables from shell:/bin/bash, path:/home/wangko/.local/bin:/home/wangko/.local/bin:/home/wangko/.local/bin:/home/wangko/.g/bin:/home/wangko/.g/go/bin:/bin:/home/wangko/.nvm/versions/node/v22.7.0/bin:/home/wangko/.bun/bin:/home/wangko/.local/bin:/home/wangko/.cargo/bin:/home/wangko/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
2024-09-13T08:34:16.671913003+08:00 [INFO] set status on client 234132: Connecting
2024-09-13T08:34:16.689901721+08:00 [INFO] rebuilt extension index in 684.124µs
2024-09-13T08:34:16.715180002+08:00 [INFO] starting language servers for Python: pyright
2024-09-13T08:34:16.715216045+08:00 [INFO] starting language server "pyright", path: "/home/wangko/project/python/team-task", id: 1
2024-09-13T08:34:16.715359642+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-13T08:34:16.715373982+08:00 [INFO] starting language servers for Python: pyright
2024-09-13T08:34:16.715824868+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-13T08:34:16.733198798+08:00 [INFO] fetching latest version of language server "pyright"
2024-09-13T08:34:16.733281529+08:00 [INFO] Node runtime install_if_needed
2024-09-13T08:34:16.830183153+08:00 [INFO] Node runtime install_if_needed
2024-09-13T08:34:17.567361423+08:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-09-13T08:34:18.379140691+08:00 [INFO] add connection to peer
2024-09-13T08:34:18.379198846+08:00 [INFO] add_connection;
2024-09-13T08:34:18.379219908+08:00 [INFO] waiting for server hello
2024-09-13T08:34:18.390714276+08:00 [INFO] got server hello
2024-09-13T08:34:18.390743948+08:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 5478454 })
2024-09-13T08:34:18.390764584+08:00 [INFO] set status on client 234132: Connected { peer_id: PeerId { owner_id: 540, id: 5478454 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-09-13T08:34:18.560906438+08:00 [ERROR] window not found
2024-09-13T08:34:18.560950132+08:00 [ERROR] window not found
micahasowata commented 1 month ago

At the moment, you did not provide enough information for anybody to help resolve your issue. You might want to update your request with the following information:

  1. What do you mean by uninstalled Zed incorrectly?
  2. How did you install it the first time?
  3. Did it work the first time?
  4. What OS are you using?
  5. Why did you uninstall it?
  6. How did you install it this time?
micahasowata commented 1 month ago

If you are on Linux, which I am assuming because of flatpak, have you tried:

curl -f https://zed.dev/install.sh | sh

then ran

./local/bin/zed

to open the app from the terminal ?

WangZhongDian commented 1 month ago

目前,您没有提供足够的信息来帮助任何人解决问题。您可能需要使用以下信息更新您的请求:

  1. 您所说的错误地删除是什么意思? 第
  2. 一次是怎么安装的? 第
  3. 一次成功了吗? 你
  4. 用的是什么操作系统? 你
  5. 为什么要卸载它? 你
  6. 这次是怎么安装的?

The first time I used it, I installed it with flatpak and it was available. However, due to some system reasons, it crashed. After reinstalling the system, all flatpak applications disappeared, and there may still be some residual files in the home directory. After the second installation with flatpak, it was not available

WangZhongDian commented 1 month ago

Unable to open

image

如果你在Linux上,我假设是因为flatpak,你有没有尝试过:

curl -f https://zed.dev/install.sh | sh 

然后运行

./local/bin/zed 

从终端打开应用程序?

WangZhongDian commented 1 month ago

system

WangZhongDian commented 2 weeks ago

@micahasowata This is the latest version of the log, which may be helpful to you

2024-11-12T17:25:08.028699085+08:00 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-12T17:25:08.028749296+08:00 [INFO] Testing presentation capability on Linux/Intel
2024-11-12T17:25:08.030798905+08:00 [INFO] No ray tracing extensions are supported
2024-11-12T17:25:08.081967021+08:00 [ERROR] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 930
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "core::result::unwrap_failed",
    "blade_graphics::hal::init::<impl blade_graphics::hal::Context>::resize",
    "gpui::platform::blade::blade_renderer::BladeRenderer::new",
    "gpui::platform::linux::wayland::window::WaylandWindow::new",
    "<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::open_window",
    "gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::open_window",
    "gpui::window::Window::new",
    "gpui::app::async_context::AsyncAppContext::open_window",
    "workspace::Workspace::new_local::{{closure}}::{{closure}}",
    "async_task::raw::RawTask<F,T,S,M>::run",
    "<gpui::platform::linux::wayland::client::WaylandClient 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.160.7",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "ubuntu 24.10",
  "architecture": "x86_64",
  "panicked_on": 1731403508081,
  "system_id": "8bc52119-3bf3-4155-be57-e75cdf58a269",
  "installation_id": "a24fce5b-a41c-442c-adff-8ffacd44638d",
  "session_id": "2f5e04a8-1353-4c7d-ba3a-1b6a6e104b9d"
}
micahasowata commented 2 weeks ago

What command were you trying to execute before you got this log output?

system

  • ubuntu24.10
  • x86 64
  • wayland

This is exactly the same system I run on.

micahasowata commented 2 weeks ago

Does opening it from the Applications view, work? (i.e clicking the icon)

@micahasowata This is the latest version of the log, which may be helpful to you

2024-11-12T17:25:08.028699085+08:00 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-12T17:25:08.028749296+08:00 [INFO] Testing presentation capability on Linux/Intel
2024-11-12T17:25:08.030798905+08:00 [INFO] No ray tracing extensions are supported
2024-11-12T17:25:08.081967021+08:00 [ERROR] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 930
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "core::result::unwrap_failed",
    "blade_graphics::hal::init::<impl blade_graphics::hal::Context>::resize",
    "gpui::platform::blade::blade_renderer::BladeRenderer::new",
    "gpui::platform::linux::wayland::window::WaylandWindow::new",
    "<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::open_window",
    "gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::open_window",
    "gpui::window::Window::new",
    "gpui::app::async_context::AsyncAppContext::open_window",
    "workspace::Workspace::new_local::{{closure}}::{{closure}}",
    "async_task::raw::RawTask<F,T,S,M>::run",
    "<gpui::platform::linux::wayland::client::WaylandClient 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.160.7",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "ubuntu 24.10",
  "architecture": "x86_64",
  "panicked_on": 1731403508081,
  "system_id": "8bc52119-3bf3-4155-be57-e75cdf58a269",
  "installation_id": "a24fce5b-a41c-442c-adff-8ffacd44638d",
  "session_id": "2f5e04a8-1353-4c7d-ba3a-1b6a6e104b9d"
}

I can't find the file referenced in the logs.

@SomeoneToIgnore @JosephTLyons, I need help locating the file referenced in that log.

WangZhongDian commented 2 weeks ago

Does opening it from the Applications view, work? (i.e clicking the icon)

@micahasowata This is the latest version of the log, which may be helpful to you

2024-11-12T17:25:08.028699085+08:00 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-12T17:25:08.028749296+08:00 [INFO] Testing presentation capability on Linux/Intel
2024-11-12T17:25:08.030798905+08:00 [INFO] No ray tracing extensions are supported
2024-11-12T17:25:08.081967021+08:00 [ERROR] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 930
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "core::result::unwrap_failed",
    "blade_graphics::hal::init::<impl blade_graphics::hal::Context>::resize",
    "gpui::platform::blade::blade_renderer::BladeRenderer::new",
    "gpui::platform::linux::wayland::window::WaylandWindow::new",
    "<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::open_window",
    "gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::open_window",
    "gpui::window::Window::new",
    "gpui::app::async_context::AsyncAppContext::open_window",
    "workspace::Workspace::new_local::{{closure}}::{{closure}}",
    "async_task::raw::RawTask<F,T,S,M>::run",
    "<gpui::platform::linux::wayland::client::WaylandClient 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.160.7",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "ubuntu 24.10",
  "architecture": "x86_64",
  "panicked_on": 1731403508081,
  "system_id": "8bc52119-3bf3-4155-be57-e75cdf58a269",
  "installation_id": "a24fce5b-a41c-442c-adff-8ffacd44638d",
  "session_id": "2f5e04a8-1353-4c7d-ba3a-1b6a6e104b9d"
}

I can't find the file referenced in the logs.

@SomeoneToIgnore @JosephTLyons, I need help locating the file referenced in that log.

This is the log obtained by clicking on the icon. Opening from the command line will result in the same log. The phenomenon remains unresponsive

micahasowata commented 2 weeks ago

It has something to do with a GPU adapter. This is not exactly a Zed issue.

From what I understand, Zed needs to find some ray tracing extensions for your GPU which it did not find and that is stopping it from displaying the UI

The installation is fine. Zed is probably fine.

We just need to figure out the proper ray tracing extension to install to get it to work

WangZhongDian commented 2 weeks ago

Do I need to provide anything else for you? I'm happy to do that

WangZhongDian commented 2 weeks ago

Can this issue be resolved in the near future. I am currently unable to open it

micahasowata commented 2 weeks ago

I don't know if this goes against the rules of the Zed community.

It might or might not work 100% but this might be a solution

This is installation instruction for Mesa which is the ray tracing extension for Vulkan

micahasowata commented 2 weeks ago

Can this issue be resolved in the near future. I am currently unable to open it

try the installation, let me know teh result

WangZhongDian commented 2 weeks ago

image

It's still the same mistake

WangZhongDian commented 2 weeks ago

Complete the complete log. From opening to error ending

2024-11-12T20:48:40.046836127+08:00 [INFO] ========== starting zed ==========
2024-11-12T20:48:40.167128608+08:00 [INFO] perform;
2024-11-12T20:48:40.167191972+08:00 [INFO] authenticate;
2024-11-12T20:48:40.167875049+08:00 [INFO] read_command;
2024-11-12T20:48:40.170827069+08:00 [INFO] socket reader;
2024-11-12T20:48:40.171086456+08:00 [INFO] new;
2024-11-12T20:48:40.172258153+08:00 [INFO] keep_updated;
2024-11-12T20:48:40.176431429+08:00 [INFO] Opening main db
2024-11-12T20:48:40.182995506+08:00 [INFO] Opening main db
2024-11-12T20:48:40.191421622+08:00 [INFO] Using git binary path: None
2024-11-12T20:48:40.21064234+08:00 [INFO] no tokio runtime found, creating one for Reqwest...
2024-11-12T20:48:40.261114782+08:00 [ERROR] No such file or directory (os error 2) about ["/home/wangko/.config/github-copilot"]
2024-11-12T20:48:40.270520705+08:00 [INFO] initializing context server client
2024-11-12T20:48:40.271536516+08:00 [INFO] Registering built-in prompt template: content_prompt
2024-11-12T20:48:40.272615842+08:00 [INFO] Registering built-in prompt template: edit_workflow
2024-11-12T20:48:40.272768166+08:00 [INFO] Registering built-in prompt template: project_slash_command
2024-11-12T20:48:40.272815544+08:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-11-12T20:48:40.272987189+08:00 [INFO] No prompt template overrides directory found at /home/wangko/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-11-12T20:48:40.300206575+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-11-12T20:48:40.303706878+08:00 [INFO] Opening main db
2024-11-12T20:48:40.304787112+08:00 [INFO] perform;
2024-11-12T20:48:40.304826464+08:00 [INFO] authenticate;
2024-11-12T20:48:40.304865299+08:00 [INFO] read_command;
2024-11-12T20:48:40.305356061+08:00 [INFO] socket reader;
2024-11-12T20:48:40.308813836+08:00 [INFO] installing extension html latest version
2024-11-12T20:48:40.309921+08:00 [INFO] new;
2024-11-12T20:48:40.310443528+08:00 [INFO] keep_updated;
2024-11-12T20:48:40.315298958+08:00 [INFO] set status on client 0: Authenticating
2024-11-12T20:48:40.315549513+08:00 [INFO] perform;
2024-11-12T20:48:40.315590672+08:00 [INFO] authenticate;
2024-11-12T20:48:40.315635959+08:00 [INFO] read_command;
2024-11-12T20:48:40.316048361+08:00 [INFO] socket reader;
2024-11-12T20:48:40.320472205+08:00 [INFO] new;
2024-11-12T20:48:40.320993675+08:00 [INFO] keep_updated;
2024-11-12T20:48:40.369346726+08:00 [INFO] Enabling Vulkan Portability
2024-11-12T20:48:40.369392356+08:00 [INFO] Enabling color space support
2024-11-12T20:48:40.397899406+08:00 [INFO] set environment variables from shell:/bin/bash, path:/home/wangko/.local/bin:/home/wangko/.local/bin:/home/wangko/.local/bin:/home/wangko/.g/bin:/home/wangko/.g/go/bin:/bin:/home/wangko/.nvm/versions/node/v22.7.0/bin:/home/wangko/.bun/bin:/home/wangko/.local/bin:/home/wangko/.cargo/bin:/home/wangko/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
2024-11-12T20:48:40.406273555+08:00 [INFO] Adapter: "Intel(R) UHD Graphics (TGL GT1)"
2024-11-12T20:48:40.406337556+08:00 [INFO] Testing presentation capability on Linux/Intel
2024-11-12T20:48:40.411601343+08:00 [INFO] No ray tracing extensions are supported
2024-11-12T20:48:40.480444152+08:00 [ERROR] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 930
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "core::result::unwrap_failed",
    "blade_graphics::hal::init::<impl blade_graphics::hal::Context>::resize",
    "gpui::platform::blade::blade_renderer::BladeRenderer::new",
    "gpui::platform::linux::wayland::window::WaylandWindow::new",
    "<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::open_window",
    "gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::open_window",
    "gpui::window::Window::new",
    "gpui::app::async_context::AsyncAppContext::open_window",
    "workspace::Workspace::new_local::{{closure}}::{{closure}}",
    "async_task::raw::RawTask<F,T,S,M>::run",
    "<gpui::platform::linux::wayland::client::WaylandClient 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.160.7",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "ubuntu 24.10",
  "architecture": "x86_64",
  "panicked_on": 1731415720480,
  "system_id": "8bc52119-3bf3-4155-be57-e75cdf58a269",
  "installation_id": "a24fce5b-a41c-442c-adff-8ffacd44638d",
  "session_id": "3d995d50-e5c6-46fb-98d3-2e1085b6b3d1"
}
micahasowata commented 2 weeks ago

What is the content of this file

/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs

Line 930
WangZhongDian commented 2 weeks ago

image There is no such user at all, let alone a file in this path

这个文件的内容是什么

/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs Line 930 
micahasowata commented 2 weeks ago

What is the result of running this command

vulkaninfo --summary
micahasowata commented 2 weeks ago

image There is no such user at all, let alone a file in this path

这个文件的内容是什么

/home/ubuntu/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs Line 930 

Okay.

WangZhongDian commented 2 weeks ago

What is the result of running this command

vulkaninfo --summary
wangko@wangko-ubuntu:~$ vulkaninfo --summary
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -3 from call to vkCreateInstance in ICD /usr/lib/x86_64-linux-gnu/libvulkan_virtio.so. Skipping this driver.
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
'-avx512er' is not a recognized feature for this target (ignoring feature)
'-avx512pf' is not a recognized feature for this target (ignoring feature)
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.290

Instance Extensions: count = 24
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_EXT_headless_surface                : extension revision 1
VK_EXT_surface_maintenance1            : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 4
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 4
--------------------------
VK_LAYER_INTEL_nullhw       INTEL NULL HW                1.1.73   version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.3.211  version 1
VK_LAYER_MESA_overlay       Mesa Overlay layer           1.3.211  version 1
VK_LAYER_NV_optimus         NVIDIA Optimus layer         1.3.280  version 1

Devices:
========
GPU0:
    apiVersion         = 1.3.289
    driverVersion      = 24.2.3
    vendorID           = 0x8086
    deviceID           = 0x9a60
    deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
    deviceName         = Intel(R) UHD Graphics (TGL GT1)
    driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
    driverName         = Intel open-source Mesa driver
    driverInfo         = Mesa 24.2.3-1ubuntu1
    conformanceVersion = 1.3.6.0
    deviceUUID         = 8680609a-0100-0000-0002-000000000000
    driverUUID         = f3fa975d-d6ee-e61a-ea0e-f4a10e350156
GPU1:
    apiVersion         = 1.3.280
    driverVersion      = 560.35.3.0
    vendorID           = 0x10de
    deviceID           = 0x25a0
    deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
    deviceName         = NVIDIA GeForce RTX 3050 Ti Laptop GPU
    driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
    driverName         = NVIDIA
    driverInfo         = 560.35.03
    conformanceVersion = 1.3.8.2
    deviceUUID         = dc5d4e1a-b321-db0a-c27e-1886ed1a3ac7
    driverUUID         = c3ca0510-c7e6-5f1c-86a1-dc0ed4ea4e21
GPU2:
    apiVersion         = 1.3.289
    driverVersion      = 0.0.1
    vendorID           = 0x10005
    deviceID           = 0x0000
    deviceType         = PHYSICAL_DEVICE_TYPE_CPU
    deviceName         = llvmpipe (LLVM 19.1.0, 256 bits)
    driverID           = DRIVER_ID_MESA_LLVMPIPE
    driverName         = llvmpipe
    driverInfo         = Mesa 24.2.3-1ubuntu1 (LLVM 19.1.0)
    conformanceVersion = 1.3.1.1
    deviceUUID         = 6d657361-3234-2e32-2e33-2d3175627500
    driverUUID         = 6c6c766d-7069-7065-5555-494400000000
micahasowata commented 2 weeks ago

From the logs and from searches, the issue seems to be that Intel UHD, which is your adapter, lacks support for ray tracing and Zed needs an adapter that supports ray tracing.

Since it can't find one on your PC it crashes

micahasowata commented 2 weeks ago

The obvious solution to the issue is figuring out how to run Zed on adapters that don't support ray tracing.

I don't know anything about that.

WangZhongDian commented 2 weeks ago

But it could have worked normally a long time ago

micahasowata commented 2 weeks ago

Did it ever work?

When did it stop working?

WangZhongDian commented 2 weeks ago

long ago. I can't remember the exact time either. I was able to work about a month or two ago.

My Ubuntu crashed due to other reasons. After reinstalling Ubuntu and then reinstalling Zed, it no longer works

micahasowata commented 2 weeks ago

Okay.

So if we figure out the version of Zed that worked and tweak the installer you might be able to get up and running with Zed.

No guarantees.

Do you want that?

WangZhongDian commented 2 weeks ago

How to do it?

micahasowata commented 2 weeks ago

Give me a few minutes to figure it out

micahasowata commented 2 weeks ago

It seems like issue #14225 relates to your problem

check it out?

especially this https://github.com/zed-industries/zed/issues/14225#issuecomment-2343435105

this is also relevant https://zed.dev/docs/linux#zed-is-very-slow

micahasowata commented 2 weeks ago

try the suggestions and let me know if the issue was resolved

WangZhongDian commented 2 weeks ago

export DRI_PRIME=1 Zed can start normally now。But is this the optimal solution?

@micahasowata

micahasowata commented 2 weeks ago

I don't think there's an optimal solution at the moment.

The referenced issue hasn't been closed yet.

For now, whatever works is best.