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

Vulcan crash on startup with Wayland session on git and release versions #17463

Open
1 task done
michael555444 opened this issue Sep 5, 2024 · 3 comments
Open
1 task done
Labels
bug [core label] linux linux-wayland Linux Wayland panic / crash [core label]

Comments

@michael555444
Copy link

michael555444 commented Sep 5, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Zed git version

  1. Open Wayland session (Hyprland)
  2. Install from Arch Linux AUR repository zed-git package (my 8a1e8e37bb659e261526d7d5d6340840294cf290)
  3. Run with foreground
    zeditor --foreground
    
    Log
    wl_display#1: error 2: no memory
    warning: queue 0x5cf6c6225a00 destroyed while proxies still attached:
      wl_registry#47 still attached
    Thread "main" panicked with "called `Result::unwrap()` on an `Err` value: ERROR_INITIALIZATION_FAILED" at /home/user/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/fee06c4/blade-graphics/src/vulkan/init.rs:860:18
       0: zed::reliability::init_panic_hook::{{closure}}
                 at /crates/zed/src/reliability.rs:58:29
       1:  as core::ops::function::Fn>::call
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/boxed.rs:2077:9
          std::panicking::rust_panic_with_hook
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:799:13
       2: std::panicking::begin_panic_handler::{{closure}}
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:664:13
       3: std::sys_common::backtrace::__rust_end_short_backtrace
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/sys_common/backtrace.rs:171:18
       4: rust_begin_unwind
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:652:5
       5: core::panicking::panic_fmt
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/panicking.rs:72:14
       6: core::result::unwrap_failed
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/result.rs:1679:5
       7: blade_graphics::hal::init::::resize
       8: gpui::platform::blade::blade_renderer::BladeRenderer::update_transparency
                 at /crates/gpui/src/platform/blade/blade_renderer.rs:440:32
          gpui::platform::linux::wayland::window::update_window
                 at /crates/gpui/src/platform/linux/wayland/window.rs:1032:5
       9: gpui::window::WindowContext::set_background_appearance
                 at /crates/gpui/src/window.rs:1300:9
          zed::init_ui::{{closure}}::{{closure}}
                 at /crates/zed/src/main.rs:283:25
          ::update_window::{{closure}}
                 at /crates/gpui/src/app.rs:1396:26
          gpui::app::AppContext::update
                 at /crates/gpui/src/app.rs:362:22
          ::update_window
                 at /crates/gpui/src/app.rs:1387:9
          gpui::window::AnyWindowHandle::update
                 at /crates/gpui/src/window.rs:4800:12
          zed::init_ui::{{closure}}
                 at /crates/zed/src/main.rs:282:22
          gpui::app::AppContext::observe_global::{{closure}}
                 at /crates/gpui/src/app.rs:976:17
      10:  as core::ops::function::FnMut>::call_mut
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/boxed.rs:2070:9
          gpui::app::AppContext::apply_notify_global_observers_effect::{{closure}}
                 at /crates/gpui/src/app.rs:842:42
          gpui::subscription::SubscriberSet::retain::{{closure}}
                 at /crates/gpui/src/subscription.rs:125:17
          alloc::collections::btree::map::BTreeMap::retain::{{closure}}
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/collections/btree/map.rs:1115:33
          alloc::collections::btree::map::ExtractIfInner::next
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/collections/btree/map.rs:1945:16
           as core::iter::traits::iterator::Iterator>::next
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/collections/btree/map.rs:1923:9
          core::iter::traits::iterator::Iterator::fold
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/iter/traits/iterator.rs:2588:29
          core::iter::traits::iterator::Iterator::for_each
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/iter/traits/iterator.rs:818:9
          alloc::collections::btree::map::BTreeMap::retain
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/collections/btree/map.rs:1115:42
          gpui::subscription::SubscriberSet::retain
                 at /crates/gpui/src/subscription.rs:123:9
          gpui::app::AppContext::apply_notify_global_observers_effect
                 at /crates/gpui/src/app.rs:840:9
          gpui::app::AppContext::flush_effects
                 at /crates/gpui/src/app.rs:736:25
      11: gpui::app::AppContext::update
                 at /crates/gpui/src/app.rs:365:13
          ::update_window
                 at /crates/gpui/src/app.rs:1387:9
          ::update_window
                 at /crates/gpui/src/app/async_context.rs:91:14
          gpui::window::AnyWindowHandle::update
                 at /crates/gpui/src/window.rs:4800:9
          gpui::window::Window::new::{{closure}}
                 at /crates/gpui/src/window.rs:743:22
      12:  as core::ops::function::FnMut>::call_mut
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/alloc/src/boxed.rs:2070:9
          gpui::platform::linux::wayland::window::WaylandWindowStatePtr::handle_toplevel_decoration_event
                 at /crates/gpui/src/platform/linux/wayland/window.rs:409:25
          >::event
                 at /crates/gpui/src/platform/linux/wayland/client.rs:1737:9
      13: wayland_client::event_queue::queue_callback
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wayland-client-0.31.5/src/event_queue.rs:660:5
      14: wayland_client::event_queue::EventQueue::dispatching_impl
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wayland-client-0.31.5/src/event_queue.rs:482:13
          wayland_client::event_queue::EventQueue::dispatch_pending
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wayland-client-0.31.5/src/event_queue.rs:388:9
          calloop_wayland_source::WaylandSource::insert::{{closure}}
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-wayland-source-0.3.0/src/lib.rs:115:59
          > as calloop::sources::EventDispatcher>::process_events::{{closure}}
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-0.13.0/src/sources/mod.rs:327:61
          calloop_wayland_source::WaylandSource::loop_callback_pending
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-wayland-source-0.3.0/src/lib.rs:245:19
           as calloop::sources::EventSource>::process_events
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-wayland-source-0.3.0/src/lib.rs:154:9
          > as calloop::sources::EventDispatcher>::process_events
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-0.13.0/src/sources/mod.rs:326:9
      15: calloop::loop_logic::EventLoop::dispatch_events
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-0.13.0/src/loop_logic.rs:445:31
          calloop::loop_logic::EventLoop::dispatch
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-0.13.0/src/loop_logic.rs:559:9
          calloop::loop_logic::EventLoop::run
                 at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/calloop-0.13.0/src/loop_logic.rs:596:13
          ::run
                 at /crates/gpui/src/platform/linux/wayland/client.rs:709:9
      16: gpui::platform::linux::platform::::run
                 at /crates/gpui/src/platform/linux/platform.rs:145:9
      17: gpui::app::App::run
                 at /crates/gpui/src/app.rs:159:9
      18: zed::main
                 at /crates/zed/src/main.rs:439:5
      19: core::ops::function::FnOnce::call_once
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/ops/function.rs:250:5
          std::sys_common::backtrace::__rust_begin_short_backtrace
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/sys_common/backtrace.rs:155:18
      20: std::rt::lang_start::{{closure}}
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/rt.rs:159:18
      21: core::ops::function::impls:: for &F>::call_once
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/core/src/ops/function.rs:284:13
          std::panicking::try::do_call
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:559:40
          std::panicking::try
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:523:19
          std::panic::catch_unwind
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panic.rs:149:14
          std::rt::lang_start_internal::{{closure}}
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/rt.rs:141:48
          std::panicking::try::do_call
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:559:40
          std::panicking::try
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panicking.rs:523:19
          std::panic::catch_unwind
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/panic.rs:149:14
          std::rt::lang_start_internal
                 at /usr/src/debug/rust/rustc-1.80.1-src/library/std/src/rt.rs:141:20
      22: main
      23: 
      24: __libc_start_main
      25: _start

Zed release version

  1. Open Wayland session (Hyprland)

  2. Install from Arch Linux Extra repository zed package (0.151.1) or download latest git release for x86_64 architecture (0.151.1)

  3. Run with foreground
    Repository package:

    zeditor --foreground
    
    Repository package Log
    wl_display#1: error 2: no memory
    warning: queue 0x63e1a10d9030 destroyed while proxies still attached:
      wl_registry#47 still attached
    [2024-09-06T00:00:22+03:00 ERROR zed::reliability] {
      "thread": "main",
      "payload": "called `Result::unwrap()` on an `Err` value: ERROR_INITIALIZATION_FAILED",
      "location_data": {
        "file": "/build/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/b37a9a9/blade-graphics/src/vulkan/init.rs",
        "line": 767
      },
      "backtrace": [
        "__libc_start_main"
      ],
      "app_version": "0.151.1",
      "release_channel": "Zed",
      "os_name": "Linux Wayland",
      "os_version": "arch unknown",
      "architecture": "x86_64",
      "panicked_on": 1725570022623,
      "installation_id": "72614784-90e7-4986-b8ac-c41c06edf9ad",
      "session_id": "3510fbe2-49e7-48d5-9979-722f49dbc6f3"
    }

    Release binary:

    bin/zed --foreground
    
    Binary Log
    xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1661:1: unrecognized keysym "dead_hamza" on left-hand side
    xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1662:1: unrecognized keysym "dead_hamza" on left-hand side
    xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1663:1: unrecognized keysym "dead_hamza" on left-hand side
    xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1664:1: unrecognized keysym "dead_hamza" on left-hand side
    xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1665:1: unrecognized keysym "dead_hamza" on left-hand side
    wl_display#1: error 2: no memory
    warning: queue 0x60b7fb037bc0 destroyed while proxies still attached:
      wl_registry#47 still attached
    [2024-09-06T00:00:50+03:00 ERROR zed::reliability] {
      "thread": "main",
      "payload": "called `Result::unwrap()` on an `Err` value: ERROR_INITIALIZATION_FAILED",
      "location_data": {
        "file": "/home/actions-runner/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/b37a9a9/blade-graphics/src/vulkan/init.rs",
        "line": 767
      },
      "backtrace": [
        "core::panicking::panic_fmt",
        "core::result::unwrap_failed",
        "blade_graphics::hal::init::::resize",
        "gpui::platform::linux::wayland::window::update_window",
        "gpui::app::AppContext::observe_global::{{closure}}",
        "gpui::app::AppContext::flush_effects",
        "gpui::window::Window::new::{{closure}}",
        ">::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_main",
        "_start"
      ],
      "app_version": "0.151.1",
      "release_channel": "Zed",
      "os_name": "Linux Wayland",
      "os_version": "arch unknown",
      "architecture": "x86_64",
      "panicked_on": 1725570050618,
      "installation_id": "72614784-90e7-4986-b8ac-c41c06edf9ad",
      "session_id": "33ba9c66-e912-4623-83a2-405c905755f9"
     }

Environment

Zed (git): 8a1e8e37bb659e261526d7d5d6340840294cf290
Zed (release): 0.151.1
OS: Arch Linux
Kernel: 6.10.8-arch1-1
Memory (RAM|Swap): 16Gi|24Gi
Architecture: x86_64
CPU: AMD Ryzen 7 6800H with Radeon Graphics
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev 02)

If applicable, attach your ~/.local/share/zed/logs/Zed.log file to this issue.

~/.local/share/zed/logs/Zed.log
2024-09-05T23:12:18.238322466+03:00 [INFO] ========== starting zed ==========
2024-09-05T23:12:18.264542795+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/007 GoldenEye.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.265918316+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Arcade Classic.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.268157098+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Back to the future 2002.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.269494388+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Blade 2.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.270471882+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes I.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.270685553+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes II Sans Serif.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.270924742+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes II.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.272966604+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Chlorinap.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.274760982+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Dark Crystal Outline.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.282278981+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Last Ninja.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.285594023+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/NEC.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.300014236+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Standard Galactic Alphabet.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.300554119+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Super Mario Bros..ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.301022408+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/T4C Beaulieux.ttf' cause font doesn't have a family name.
2024-09-05T23:12:18.302455177+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Ultima Runes.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.678340459+03:00 [WARN] failed to load font 'SymbolsNFM'
2024-09-05T23:12:19.681510699+03:00 [WARN] failed to load font 'SymbolsNFM'
2024-09-05T23:12:19.684318959+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/007 GoldenEye.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.684648938+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Arcade Classic.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.684856718+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Back to the future 2002.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685032218+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Blade 2.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685182159+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes I.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685271797+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes II Sans Serif.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685361255+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Britannian Runes II.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685547805+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Chlorinap.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.685751828+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Dark Crystal Outline.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.686333871+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Last Ninja.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.686635487+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/NEC.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.687689334+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Standard Galactic Alphabet.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.687808889+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Super Mario Bros..ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.687902625+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/T4C Beaulieux.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.688088674+03:00 [WARN] Failed to load a font face 0 from '/usr/share/fonts/TTF/Ultima Runes.ttf' cause font doesn't have a family name.
2024-09-05T23:12:19.720795006+03:00 [INFO] perform;
2024-09-05T23:12:19.720976536+03:00 [INFO] authenticate;
2024-09-05T23:12:19.721152346+03:00 [INFO] read_command;
2024-09-05T23:12:19.721712458+03:00 [INFO] new;
2024-09-05T23:12:19.721873149+03:00 [INFO] socket reader;
2024-09-05T23:12:19.7302073+03:00 [INFO] Opening main db
2024-09-05T23:12:19.732273909+03:00 [INFO] Using git binary path: None
2024-09-05T23:12:19.763508217+03:00 [INFO] initializing context server client
2024-09-05T23:12:19.763647919+03:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-05T23:12:19.763953172+03:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-05T23:12:19.76418656+03:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-05T23:12:19.76455417+03:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-05T23:12:19.764750949+03:00 [INFO] No prompt template overrides directory found at /home/user/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-09-05T23:12:19.769770169+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.769921353+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.7700106+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.770104577+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.770311445+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.771724076+03:00 [INFO] performance metrics display disabled
2024-09-05T23:12:19.771828492+03:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-09-05T23:12:19.771935683+03:00 [INFO] Opening main db
2024-09-05T23:12:19.773177885+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.773337414+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.773423035+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.773505169+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.773589858+03:00 [INFO] perform;
2024-09-05T23:12:19.773741953+03:00 [INFO] authenticate;
2024-09-05T23:12:19.773881846+03:00 [WARN] request completed with error: failed to connect to the server
2024-09-05T23:12:19.773981573+03:00 [INFO] read_command;
2024-09-05T23:12:19.774389879+03:00 [INFO] socket reader;
2024-09-05T23:12:19.82076324+03:00 [INFO] Enabling Vulkan Portability
2024-09-05T23:12:19.844109585+03:00 [INFO] Adapter: "AMD Radeon Graphics"
2024-09-05T23:12:19.844979999+03:00 [INFO] Ray tracing is supported
2024-09-05T23:12:19.846719433+03:00 [INFO] Using surface present mode MAILBOX
2024-09-05T23:12:19.846793011+03:00 [WARN] Unable to forbid exclusive full screen
2024-09-05T23:12:19.847223088+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-05T23:12:19.847380033+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-05T23:12:19.847453902+03:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PostMultiplied }
2024-09-05T23:12:19.853603743+03:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "AMD Radeon Graphics", driver_name: "AMD open-source driver", driver_info: "2024.Q3.1 (LLPC)" }
2024-09-05T23:12:19.858427897+03:00 [INFO] set environment variables from shell:/usr/bin/fish, path:/home/user/.local/bin:/home/user/.webcatalog:/home/user/.local/share/JetBrains/Toolbox/scripts:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/user/wine/bin:/home/user/Desktop
~/.local/share/zed/logs/zed-2024_09_05 18_53_11.panic
{
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_INITIALIZATION_FAILED",
  "location_data": {
    "file": "/build/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/b37a9a9/blade-graphics/src/vulkan/init.rs",
    "line": 767
  },
  "backtrace": [
    "__libc_start_main"
  ],
  "app_version": "0.151.1",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "arch unknown",
  "architecture": "x86_64",
  "panicked_on": 1725562391155,
  "installation_id": "72614784-90e7-4986-b8ac-c41c06edf9ad",
  "session_id": "7d2308f2-d398-4167-a581-c6213a3e1a93"
}
@michael555444 michael555444 added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Sep 5, 2024
@guillermopd
Copy link

Can reproduce it on Arch and AMD Radeon 7600, found a workaround.

If you have Vulkan prefixes installed, I got it working using the vk_radv prefix. Tried with vk_pro and vk_amdvlk and Zed crashes again with the out of memory error.

Try vk_radv zed --foreground to start the editor without crash on my system.

@conformally
Copy link

On Fedora40 Plasma6 Wayland with Intel iGPU and Nvidia dGPU

zed --foreground

returns

[2024-09-15T16:32:21+08:00 ERROR zed::reliability] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/builddir/build/BUILD/zed-0.152.3/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 930
  },
  "backtrace": [
    "__libc_start_call_main",
    "__libc_start_main_alias_1"
  ],
  "app_version": "0.152.3",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "fedora 40",
  "architecture": "x86_64",
  "panicked_on": 1726389141588,
  "installation_id": "648b27d0-0595-4331-a841-e7c6bebc7f15",
  "session_id": "68a53c4b-ada9-4d7d-8260-9c2310f426d9"
}

@michael555444
Copy link
Author

michael555444 commented Sep 18, 2024

Can reproduce it on Arch and AMD Radeon 7600, found a workaround.

If you have Vulkan prefixes installed, I got it working using the vk_radv prefix. Tried with vk_pro and vk_amdvlk and Zed crashes again with the out of memory error.

Try vk_radv zed --foreground to start the editor without crash on my system.

According to this comment, i tryed to manual use amd vulcan driver and nothing is changed.

vk_radv
vk_radv zeditor --foreground
[2024-09-18T19:20:33+03:00 ERROR blade_graphics::hal::init] Instance extension "VK_KHR_get_physical_device_properties2" is not supported
^C⏎
vk_amdvlk
vk_amdvlk zeditor --foreground
wl_display#1: error 2: no memory
warning: queue 0x5e9524b3cc20 destroyed while proxies still attached:
  wl_registry#47 still attached
[2024-09-18T19:20:50+03:00 ERROR zed::reliability] {
  "thread": "main",
  "payload": "called `Result::unwrap()` on an `Err` value: ERROR_INITIALIZATION_FAILED",
  "location_data": {
    "file": "/build/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs",
    "line": 864
  },
  "backtrace": [
    "__libc_start_main"
  ],
  "app_version": "0.152.4",
  "release_channel": "Zed",
  "os_name": "Linux Wayland",
  "os_version": "arch unknown",
  "architecture": "x86_64",
  "panicked_on": 1726676450899,
  "installation_id": "17364315-8768-4312-a71a-97a8fc39ef2e",
  "session_id": "dab4fdb8-fa36-471b-bb73-2b8792019bea"
}
vk_pro
vk_pro zeditor --foreground
[2024-09-18T19:20:57+03:00 ERROR blade_graphics::hal::init] Instance extension "VK_KHR_get_physical_device_properties2" is not supported
^C⏎

@JosephTLyons JosephTLyons added linux linux-wayland Linux Wayland and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] linux linux-wayland Linux Wayland panic / crash [core label]
Projects
None yet
Development

No branches or pull requests

4 participants