Skip to content

Crash on linux: Aquire image error ERROR_SURFACE_LOST_KHR #14225

@lemteay

Description

@lemteay

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Zed instantly crashes on KDE plasma.
Message from zed --foreground (There's also XIMClientError but I assume it didn't cause the crash):

[2024-07-12T00:34:12+08:00 ERROR gpui::platform::linux::x11::client] XIMClientError: Can't read xim message: Invalid Data ErrorCode: 0
[2024-07-12T00:34:12+08:00 ERROR zed::reliability] {
  "thread": "main",
  "payload": "Aquire image error ERROR_SURFACE_LOST_KHR",
  "location_data": {
    "file": "/home/actions-runner/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/21a56f7/blade-graphics/src/vulkan/init.rs",
    "line": 954
  },
  "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_common::backtrace::__rust_begin_short_backtrace",
    "std::rt::lang_start::{{closure}}",
    "std::rt::lang_start_internal",
    "main",
    "__libc_start_call_main",
    "__libc_start_main@@GLIBC_2.34",
    "_start"
  ],
  "app_version": "0.143.6",
  "release_channel": "Zed",
  "os_name": "Linux X11",
  "os_version": "fedora 38",
  "architecture": "x86_64",
  "panicked_on": 1720715652892,
  "installation_id": "f17907b8-d58f-4445-853e-f9e797ee5c22",
  "session_id": "79e466e8-2994-4a23-b629-6fc235061ce7"
}

Environment

Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.8.9-100.fc38.x86_64 (64-bit)
Graphics Platform: X11
Graphics Processor: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2

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

There is no Zed.log found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDEPRECATED label: use issue type 'Bug' insteadcrashDEPRECATED label: use issue type 'Crash' insteadplatform:linuxhappens only on linux, not other OS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions