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
47.63k stars 2.79k forks source link

Cant open zed after update #17071

Open curiouslad opened 1 month ago

curiouslad commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Zed wont start

Environment

zed-2024_08_29 10_14_41.panic
{"thread":"main","payload":"called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR","location_data":{"file":"/home/actions-runner/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/ac25c77/blade-graphics/src/vulkan/init.rs","line":822},"backtrace":["core::panicking::panic_fmt","core::result::unwrap_failed","blade_graphics::hal::init::::resize","gpui::platform::linux::wayland::window::WaylandWindowStatePtr::set_size_and_scale",">::event","wayland_client::event_queue::queue_callback","> as calloop::sources::EventDispatcher>::process_events","::run","gpui::platform::linux::platform::::run","gpui::app::App::run","zed::main","std::sys_common::backtrace::__rust_begin_short_backtrace","std::rt::lang_start::{{closure}}","std::rt::lang_start_internal","main","__libc_start_call_main","__libc_start_main_alias_1","_start"],"app_version":"0.150.4","release_channel":"Zed","os_name":"Linux Wayland","os_version":"fedora 40","architecture":"x86_64","panicked_on":1724926481822,"installation_id":"c269c7a9-2283-446d-97c6-049b3ccd76c4","session_id":"a02d016e-35ed-49f7-8c3c-2b1cf18db841"}
Module libVkLayer_MESA_device_select.so from rpm mesa-24.1.6-1.fc40.x86_64
Module libvulkan_intel.so from rpm mesa-24.1.6-1.fc40.x86_64
Module libtinfo.so.6 from rpm ncurses-6.4-12.20240127.fc40.x86_64
Module libedit.so.0 from rpm libedit-3.1-53.20240808cvs.fc40.x86_64
Module libvulkan_lvp.so from rpm mesa-24.1.6-1.fc40.x86_64
Module liblzma.so.5 from rpm xz-5.4.6-3.fc40.x86_64
Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.x86_64
Module libsystemd.so.0 from rpm systemd-255.10-3.fc40.x86_64
Module libXext.so.6 from rpm libXext-1.3.6-1.fc40.x86_64
Module libX11.so.6 from rpm libX11-1.8.10-1.fc40.x86_64
Module libexpat.so.1 from rpm expat-2.6.2-1.fc40.x86_64
Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-3.fc40.x86_64
Module libxcb-shm.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-randr.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-sync.so.1 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-xfixes.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-present.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-dri3.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libX11-xcb.so.1 from rpm libX11-1.8.10-1.fc40.x86_64
Module libdrm.so.2 from rpm libdrm-2.4.122-1.fc40.x86_64
Module libvulkan.so.1 from rpm vulkan-loader-1.3.290.0-1.fc40.x86_64
Module libcap.so.2 from rpm libcap-2.69-8.fc40.x86_64
Module libnss_resolve.so.2 from rpm systemd-255.10-3.fc40.x86_64
Module libnss_mdns4_minimal.so.2 from rpm nss-mdns-0.15.1-11.fc40.x86_64
Module libffi.so.8 from rpm libffi-3.4.4-7.fc40.x86_64
Module libwayland-client.so.0 from rpm wayland-1.23.0-2.fc40.x86_64
Stack trace of thread 16688:
#0  0x00007f2a1837a664 __pthread_kill_implementation (libc.so.6 + 0x99664)
#1  0x00007f2a18321c4e raise (libc.so.6 + 0x40c4e)
#2  0x00007f2a18309902 abort (libc.so.6 + 0x28902)
#3  0x00005555eeebd72a n/a (/home/mladen/.local/zed.app/libexec/zed-editor + 0x428972a)
#4  0x00005555eb31ff9a n/a (/home/mladen/.local/zed.app/libexec/zed-editor + 0x6ebf9a)
#5  0x00005555f01dbc87 n/a (/home/mladen/.local/zed.app/libexec/zed-editor + 0x55a7c87)
ELF object binary architecture: AMD x86-64
Zed.log
2024-08-29T12:13:57.803607386+02:00 [INFO] ========== starting zed ==========
2024-08-29T12:13:57.900886833+02:00 [INFO] perform;
2024-08-29T12:13:57.900927477+02:00 [INFO] authenticate;
2024-08-29T12:13:57.900975831+02:00 [INFO] read_command;
2024-08-29T12:13:57.901223062+02:00 [INFO] Opening main db
2024-08-29T12:13:57.901740045+02:00 [INFO] new;
2024-08-29T12:13:57.901777759+02:00 [INFO] socket reader;
2024-08-29T12:13:57.902515628+02:00 [INFO] keep_updated;
2024-08-29T12:13:57.912208503+02:00 [INFO] Using git binary path: None
2024-08-29T12:13:57.953587542+02:00 [INFO] initializing context server client
2024-08-29T12:13:57.953675217+02:00 [INFO] Registering built-in prompt template: content_prompt
2024-08-29T12:13:57.953928265+02:00 [INFO] Registering built-in prompt template: edit_workflow
2024-08-29T12:13:57.954234102+02:00 [INFO] Registering built-in prompt template: step_resolution
2024-08-29T12:13:57.954706818+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-08-29T12:13:57.954944218+02:00 [INFO] No prompt template overrides directory found at /home/mladen/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-08-29T12:13:57.957518702+02:00 [INFO] performance metrics display disabled
2024-08-29T12:13:57.957582692+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-08-29T12:13:57.958904809+02:00 [INFO] Opening main db
2024-08-29T12:13:57.959514456+02:00 [INFO] perform;
2024-08-29T12:13:57.95955749+02:00 [INFO] authenticate;
2024-08-29T12:13:57.959603423+02:00 [INFO] read_command;
2024-08-29T12:13:57.959742081+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.959794037+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.9598364+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.959881583+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.96011708+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.960166711+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.960205372+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.960242857+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.960282524+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.960422661+02:00 [INFO] socket reader;
2024-08-29T12:13:57.966165575+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:57.968598239+02:00 [INFO] new;
2024-08-29T12:13:57.969526191+02:00 [INFO] keep_updated;
2024-08-29T12:13:58.09311595+02:00 [INFO] Enabling Vulkan Portability
2024-08-29T12:13:58.093152524+02:00 [INFO] Enabling color space support
2024-08-29T12:13:58.145436145+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/mladen/.nvm/versions/node/v20.15.0/bin:/home/mladen/.local/bin:/home/mladen/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/mladen/Android/Sdk/emulator:/home/mladen/Android/Sdk/tools:/home/mladen/Android/Sdk/tools/bin:/home/mladen/Android/Sdk/platform-tools:/home/mladen/Android/Sdk/emulator:/home/mladen/Android/Sdk/tools:/home/mladen/Android/Sdk/tools/bin:/home/mladen/Android/Sdk/platform-tools
2024-08-29T12:13:58.151341269+02:00 [INFO] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)"
2024-08-29T12:13:58.151392863+02:00 [INFO] No ray tracing extensions are supported
2024-08-29T12:13:58.15456044+02:00 [INFO] Using surface present mode MAILBOX
2024-08-29T12:13:58.154937512+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-29T12:13:58.155333033+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-29T12:13:58.155382999+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-29T12:13:58.155423983+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-08-29T12:13:58.162115487+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.1.6" }
2024-08-29T12:13:58.162709748+02:00 [INFO] set status on client 0: Authenticating
2024-08-29T12:13:58.163092756+02:00 [INFO] perform;
2024-08-29T12:13:58.163148311+02:00 [INFO] authenticate;
2024-08-29T12:13:58.163203459+02:00 [INFO] read_command;
2024-08-29T12:13:58.163770978+02:00 [INFO] socket reader;
2024-08-29T12:13:58.164772957+02:00 [ERROR] Is a directory (os error 21)
2024-08-29T12:13:58.164973701+02:00 [INFO] rebuilt extension index in 316.784µs
2024-08-29T12:13:58.165123526+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:58.165244738+02:00 [INFO] Opening main db
2024-08-29T12:13:58.165287793+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:58.165363298+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:13:58.167767456+02:00 [ERROR] IoError(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
2024-08-29T12:13:58.170724712+02:00 [INFO] new;
2024-08-29T12:13:58.17144219+02:00 [INFO] keep_updated;
2024-08-29T12:13:58.175144829+02:00 [WARN] request completed with error: unknown error
2024-08-29T12:14:41.548884993+02:00 [INFO] ========== starting zed ==========
2024-08-29T12:14:41.588541913+02:00 [INFO] perform;
2024-08-29T12:14:41.588592448+02:00 [INFO] authenticate;
2024-08-29T12:14:41.588631221+02:00 [INFO] Opening main db
2024-08-29T12:14:41.588720641+02:00 [INFO] read_command;
2024-08-29T12:14:41.58910193+02:00 [INFO] new;
2024-08-29T12:14:41.589179362+02:00 [INFO] socket reader;
2024-08-29T12:14:41.58988809+02:00 [INFO] keep_updated;
2024-08-29T12:14:41.590154179+02:00 [INFO] Using git binary path: None
2024-08-29T12:14:41.633273601+02:00 [INFO] initializing context server client
2024-08-29T12:14:41.633372445+02:00 [INFO] Registering built-in prompt template: content_prompt
2024-08-29T12:14:41.633643883+02:00 [INFO] Registering built-in prompt template: edit_workflow
2024-08-29T12:14:41.633956052+02:00 [INFO] Registering built-in prompt template: step_resolution
2024-08-29T12:14:41.634448273+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-08-29T12:14:41.634697978+02:00 [INFO] No prompt template overrides directory found at /home/mladen/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-08-29T12:14:41.636643095+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.636694887+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.636844579+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.63688421+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.63694269+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.638131287+02:00 [INFO] performance metrics display disabled
2024-08-29T12:14:41.638213581+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-08-29T12:14:41.639225041+02:00 [INFO] Opening main db
2024-08-29T12:14:41.639301089+02:00 [INFO] perform;
2024-08-29T12:14:41.639358983+02:00 [INFO] authenticate;
2024-08-29T12:14:41.639421573+02:00 [INFO] read_command;
2024-08-29T12:14:41.639714782+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.639782124+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.639839594+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.639896347+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.639975016+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.640151256+02:00 [INFO] socket reader;
2024-08-29T12:14:41.648700809+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-29T12:14:41.649161986+02:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-29T12:14:41.650735873+02:00 [INFO] new;
2024-08-29T12:14:41.65194365+02:00 [INFO] keep_updated;
2024-08-29T12:14:41.752482819+02:00 [INFO] Enabling Vulkan Portability
2024-08-29T12:14:41.752518384+02:00 [INFO] Enabling color space support
2024-08-29T12:14:41.780719396+02:00 [INFO] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)"
2024-08-29T12:14:41.780759697+02:00 [INFO] No ray tracing extensions are supported
2024-08-29T12:14:41.803521955+02:00 [INFO] Using surface present mode MAILBOX
2024-08-29T12:14:41.804006755+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-29T12:14:41.804553182+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-29T12:14:41.804598576+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-29T12:14:41.8046395+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-08-29T12:14:41.81206372+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 24.1.6" }
2024-08-29T12:14:41.820577983+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/mladen/.nvm/versions/node/v20.15.0/bin:/home/mladen/.local/bin:/home/mladen/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/mladen/Android/Sdk/emulator:/home/mladen/Android/Sdk/tools:/home/mladen/Android/Sdk/tools/bin:/home/mladen/Android/Sdk/platform-tools:/home/mladen/Android/Sdk/emulator:/home/mladen/Android/Sdk/tools:/home/mladen/Android/Sdk/tools/bin:/home/mladen/Android/Sdk/platform-tools
2024-08-29T12:14:41.8224653+02:00 [ERROR] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/actions-runner/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/ac25c77/blade-graphics/src/vulkan/init.rs",
    "line": 822
  },
  "backtrace": [
    "core::panicking::panic_fmt",
    "core::result::unwrap_failed",
    "blade_graphics::hal::init::::resize",
    "gpui::platform::linux::wayland::window::WaylandWindowStatePtr::set_size_and_scale",
    ">::event",
    "wayland_client::event_queue::queue_callback",
    "> as calloop::sources::EventDispatcher>::process_events",
    "::run",
    "gpui::platform::linux::platform::::run",
    "gpui::app::App::run",
    "zed::main",
    "std::sys_common::backtrace::__rust_begin_short_backtrace",
    "std::rt::lang_start::{{closure}}",
    "std::rt::lang_start_internal",
    "main",
    "__libc_start_call_main",
    "__libc_start_main_alias_1",
    "_start"
  ],
  "app_version": "0.150.4",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "fedora 40",
  "architecture": "x86_64",
  "panicked_on": 1724926481822,
  "installation_id": "c269c7a9-2283-446d-97c6-049b3ccd76c4",
  "session_id": "a02d016e-35ed-49f7-8c3c-2b1cf18db841"
}
ConradIrwin commented 1 month ago

@curiouslad as coincidence would have it we pushed a potential fix to this to main yesterday. Would you be able to try building from source and let us know if that works for you?

If not, could you please upload the output of vulkaninfo on your system

cc @kvark.

curiouslad commented 3 weeks ago

content copied to https://gist.github.com/ConradIrwin/8ce4b7c87f4ba945a94c247ef2dbbae1 for easier scrolling - @ConradIrwin

kvark commented 3 weeks ago

Could we just attach this as a text file instead of posting the whole thing? Scrolling is painful. Also, please provide the logs on the fresh Zed.

curiouslad commented 3 weeks ago

I tried building from main and i got panic here is what it says panic.txt Also i tried starting it on cosmic DE and it works, it just doesnt work on gnome

kvark commented 3 weeks ago

Thank you! Could you please provide Zed log from a run on latest that includes the fix @ConradIrwin mentioned?

curiouslad commented 2 weeks ago

version: Zed 0.152.3 This is the version i have installed, i dont know if it includes a fix, but i couldnt build from main because i get panic when building here are additional logs Zed.log zed-panic.txt

kvark commented 2 weeks ago

Great, thanks! I see that it's using the change based on this log:

2024-09-11T08:22:17.760357727+02:00 [INFO] Testing presentation capability on Linux/Intel

However, it crashes in line 930, which is strange, because it's doing exactly the same thing as the test routine, which succeeded.