-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Crash on linux: Aquire image error ERROR_SURFACE_LOST_KHR #14225
Comments
@lemtea8 does |
My computer can also run Godot Engine (uses Vulkan 1.3) quite smoothly, which I think is a pretty complex Vulkan program. |
After installing Zed from script, I got the zed.log. Based on the info, I think the problem is that my system is set to nvidia GPU only, but Zed decides to use integrated graphics(which won't work), and eventually caused the crash. 2024-07-13T00:17:36+08:00 [INFO] ========== starting zed ==========
2024-07-13T00:17:36+08:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-07-13T00:17:36+08:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-07-13T00:17:36+08:00 [INFO] Try connect fcitx5
2024-07-13T00:17:36+08:00 [INFO] perform;
2024-07-13T00:17:36+08:00 [INFO] read_command;
2024-07-13T00:17:36+08:00 [INFO] Opening main db
2024-07-13T00:17:36+08:00 [INFO] read_command;
2024-07-13T00:17:36+08:00 [INFO] socket reader;
2024-07-13T00:17:36+08:00 [INFO] new;
2024-07-13T00:17:36+08:00 [INFO] Using git binary path: None
2024-07-13T00:17:36+08:00 [INFO] keep_updated;
2024-07-13T00:17:36+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-07-13T00:17:36+08:00 [INFO] Opening main db
2024-07-13T00:17:36+08:00 [INFO] XConnected server on 50383156, transport version: 0.0, TRANSPORT_MAX: 20
2024-07-13T00:17:36+08:00 [INFO] installing extension html latest version
2024-07-13T00:17:36+08:00 [INFO] perform;
2024-07-13T00:17:36+08:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-07-13T00:17:36+08:00 [INFO] Creating colormap 83886083
2024-07-13T00:17:36+08:00 [INFO] read_command;
2024-07-13T00:17:36+08:00 [INFO] read_command;
2024-07-13T00:17:36+08:00 [INFO] socket reader;
2024-07-13T00:17:36+08:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
2024-07-13T00:17:36+08:00 [INFO] Enabling Vulkan Portability
2024-07-13T00:17:36+08:00 [INFO] Enabling color space support
2024-07-13T00:17:36+08:00 [INFO] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)"
2024-07-13T00:17:36+08:00 [INFO] No ray tracing extensions are supported
2024-07-13T00:17:36+08:00 [INFO] Using surface present mode MAILBOX
2024-07-13T00:17:36+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-13T00:17:36+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-13T00:17:36+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-13T00:17:36+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-07-13T00:17:36+08:00 [INFO] Refreshing at 6944 micros
2024-07-13T00:17:36+08:00 [INFO] Using surface present mode MAILBOX
2024-07-13T00:17:36+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-13T00:17:36+08:00 [ERROR] XIMClientError: Can't read xim message: Invalid Data ErrorCode: 0
2024-07-13T00:17:36+08:00 [ERROR] {
"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": 1720714776649,
"installation_id": "f17907b8-d58f-4445-853e-f9e797ee5c22",
"session_id": "0361f0a0-9a74-4cb5-8379-85646fb13040"
} |
@lemtea8 Can you try setting Would be good to know if there's something we/blade need to test for that we're not yet. |
@lemtea8 could you try the following cat /etc/prime-discrete And
|
Both VULKAN_DEVICE_INDEX 0 and 1 crashed, it seems whatever I set it always uses integrated graphics. Zed.log (upper part is VULKAN_DEVICE_INDEX=0 and lower part is 1): 2024-07-16T22:02:56+08:00 [INFO] ========== starting zed ==========
2024-07-16T22:02:56+08:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-07-16T22:02:56+08:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-07-16T22:02:56+08:00 [INFO] Try connect fcitx5
2024-07-16T22:02:56+08:00 [INFO] perform;
2024-07-16T22:02:56+08:00 [INFO] read_command;
2024-07-16T22:02:56+08:00 [INFO] read_command;
2024-07-16T22:02:56+08:00 [INFO] Opening main db
2024-07-16T22:02:56+08:00 [INFO] socket reader;
2024-07-16T22:02:56+08:00 [INFO] new;
2024-07-16T22:02:56+08:00 [INFO] keep_updated;
2024-07-16T22:02:56+08:00 [INFO] Using git binary path: None
2024-07-16T22:02:56+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-07-16T22:02:56+08:00 [INFO] Opening main db
2024-07-16T22:02:56+08:00 [INFO] installing extension html latest version
2024-07-16T22:02:56+08:00 [INFO] XConnected server on 50331657, transport version: 0.0, TRANSPORT_MAX: 20
2024-07-16T22:02:56+08:00 [INFO] perform;
2024-07-16T22:02:56+08:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-07-16T22:02:56+08:00 [INFO] Creating colormap 83886083
2024-07-16T22:02:56+08:00 [INFO] read_command;
2024-07-16T22:02:56+08:00 [INFO] read_command;
2024-07-16T22:02:56+08:00 [INFO] socket reader;
2024-07-16T22:02:56+08:00 [INFO] Enabling Vulkan Portability
2024-07-16T22:02:56+08:00 [INFO] Enabling color space support
2024-07-16T22:02:56+08:00 [INFO] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)"
2024-07-16T22:02:56+08:00 [INFO] No ray tracing extensions are supported
2024-07-16T22:02:56+08:00 [INFO] Using surface present mode MAILBOX
2024-07-16T22:02:56+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-16T22:02:56+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T22:02:56+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T22:02:56+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-07-16T22:02:56+08:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/user/.local/bin:/home/user/Android/Sdk/platform-tools
2024-07-16T22:02:56+08:00 [INFO] Refreshing at 6944 micros
2024-07-16T22:02:56+08:00 [INFO] Using surface present mode MAILBOX
2024-07-16T22:02:56+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-16T22:02:57+08:00 [ERROR] XIMClientError: Can't read xim message: Invalid Data ErrorCode: 0
2024-07-16T22:02:57+08:00 [ERROR] {
"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.7",
"release_channel": "Zed",
"os_name": "Linux X11",
"os_version": "fedora 38",
"architecture": "x86_64",
"panicked_on": 1721138577040,
"installation_id": "f17907b8-d58f-4445-853e-f9e797ee5c22",
"session_id": "3c8d7319-5024-4dd2-aff2-fa94bd3d2611"
}
2024-07-16T22:03:11+08:00 [INFO] ========== starting zed ==========
2024-07-16T22:03:11+08:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-07-16T22:03:11+08:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true
2024-07-16T22:03:11+08:00 [INFO] Try connect fcitx5
2024-07-16T22:03:11+08:00 [INFO] perform;
2024-07-16T22:03:11+08:00 [INFO] read_command;
2024-07-16T22:03:11+08:00 [INFO] read_command;
2024-07-16T22:03:11+08:00 [INFO] socket reader;
2024-07-16T22:03:11+08:00 [INFO] Opening main db
2024-07-16T22:03:11+08:00 [INFO] new;
2024-07-16T22:03:11+08:00 [INFO] keep_updated;
2024-07-16T22:03:11+08:00 [INFO] Using git binary path: None
2024-07-16T22:03:11+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-07-16T22:03:11+08:00 [INFO] Opening main db
2024-07-16T22:03:11+08:00 [INFO] XConnected server on 50331658, transport version: 0.0, TRANSPORT_MAX: 20
2024-07-16T22:03:11+08:00 [INFO] installing extension html latest version
2024-07-16T22:03:11+08:00 [INFO] perform;
2024-07-16T22:03:11+08:00 [INFO] read_command;
2024-07-16T22:03:11+08:00 [INFO] read_command;
2024-07-16T22:03:11+08:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-07-16T22:03:11+08:00 [INFO] Creating colormap 85983235
2024-07-16T22:03:11+08:00 [INFO] socket reader;
2024-07-16T22:03:11+08:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/user/.local/bin:/home/user/Android/Sdk/platform-tools
2024-07-16T22:03:11+08:00 [INFO] Enabling Vulkan Portability
2024-07-16T22:03:11+08:00 [INFO] Enabling color space support
2024-07-16T22:03:11+08:00 [INFO] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)"
2024-07-16T22:03:11+08:00 [INFO] No ray tracing extensions are supported
2024-07-16T22:03:11+08:00 [INFO] Using surface present mode MAILBOX
2024-07-16T22:03:11+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-16T22:03:11+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T22:03:11+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T22:03:11+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-07-16T22:03:12+08:00 [INFO] Refreshing at 6944 micros
2024-07-16T22:03:12+08:00 [INFO] Using surface present mode MAILBOX
2024-07-16T22:03:12+08:00 [WARN] Unable to forbid exclusive full screen
2024-07-16T22:03:12+08:00 [ERROR] XIMClientError: Can't read xim message: Invalid Data ErrorCode: 0
2024-07-16T22:03:12+08:00 [ERROR] {
"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.7",
"release_channel": "Zed",
"os_name": "Linux X11",
"os_version": "fedora 38",
"architecture": "x86_64",
"panicked_on": 1721138592103,
"installation_id": "f17907b8-d58f-4445-853e-f9e797ee5c22",
"session_id": "19977648-2ac9-47b2-97da-76e910bc6f79"
}
|
@kvark There is no file which path is /etc/prime-discrete, as I uses envycontrol.
|
That's great, thank you! So you are affected by this platform issue (it's not a Blade implementation problem, strictly speaking), and Intel isn't able to present. I haven't heard of envycontrol, will look into it. |
I'm still trying to understand what our options are:
|
@kvark Just so I understand it the problem is that the surface creation fails in a few different way (probably due to a platform issue on the Intel side?). This can be fixed by:
There's obviously some trade-offs here, but my sense is:
So maybe a sensible plan would be:
|
I've implemented (3) in kvark/blade#144 |
I've pulled kvark/blade#144 into zed main. Can anyone seeing this issue try zed main and see if it has improved things? |
FWIW I think this update broke zed nighly on my ubuntu 24.04 with intel and nvidia graphics.
|
@tepavcevic What happens after that in the logs? It looks like it's working as expected up to that point |
Reverting the change before preview out of an abundance of caution #15095 |
@ConradIrwin nothing, that's the entire output. I'll try a clean install and give you an update on it.
|
Thanks!
…On Wed, Jul 24, 2024 at 9:32 AM, Djordje ***@***.***> wrote:
@ConradIrwin <https://github.com/ConradIrwin> nothing, that's the entire
output. I'll try a clean install and give you an update on it.
—
Reply to this email directly, view it on GitHub
<#14225 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAXAQH56MQLX5VNHAKUNNLZN7CHDAVCNFSM6AAAAABKXLIYIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYGMYTGOBXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi all, I have run into this issue on Nixos,
|
@tepavcevic could you make sure you have vulkan validation layers installed? I wonder if we can get a concrete errors when running with kvark/blade#144. Alternatively, could you run it under @bashfulrobot that looks like the same issue. We are choosing the first GPU, which is Intel, and it fails to create a vulkan surface. |
Ok, great, I'll assume an upcoming patch will resolve it. Appreciate your time. |
We have ideas on how to improve/solve this but currently lacking a good way to test them. If you can help, that would be great! You can start by checking out https://github.com/kvark/blade and doing |
Sorry for a late reply, I've just cloned blade and checked out to Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s
Running `target/debug/examples/bunnymark`
[1] 10876 segmentation fault (core dumped) cargo run --example bunnymark edit: I've made sure to have vulkan libs installed |
@tepavcevic great! Do you have vulkan validation, too? Could you run the same thing under gdb to see the call stack and local variables? Also please share the logs produced with |
I am not well versed in this kind of debugging but I hope this helps @kvark logs produced with debug env flag: Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s
Running `target/debug/examples/bunnymark`
[2024-08-25T16:28:24Z INFO blade_graphics::hal::init] Enabling Vulkan Portability
[2024-08-25T16:28:24Z INFO blade_graphics::hal::init] Enabling color space support
[2024-08-25T16:28:24Z INFO blade_graphics::hal::init] Testing presentation capability on Linux/Intel
VUID-VkSwapchainCreateInfoKHR-presentMode-01281(ERROR / SPEC): msgNum: -1378015611 - Validation Error: [ VUID-VkSwapchainCreateInfoKHR-presentMode-01281 ] | MessageID = 0xaddd2685 | vkCreateSwapchainKHR(): pCreateInfo->presentMode (VK_PRESENT_MODE_IMMEDIATE_KHR) is not supported (the following are supported VK_PRESENT_MODE_MAILBOX_KHR VK_PRESENT_MODE_FIFO_KHR ). The Vulkan spec states: presentMode must be one of the VkPresentModeKHR values returned by vkGetPhysicalDeviceSurfacePresentModesKHR for the surface (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-VkSwapchainCreateInfoKHR-presentMode-01281)
Objects: 0
[1] 13335 segmentation fault (core dumped) cargo run --example bunnymark And for gdb log(gdb) file ./target/debug/examples/bunnymark Load new symbol table from "./target/debug/examples/bunnymark"? (y or n) y Reading symbols from ./target/debug/examples/bunnymark... (gdb) run Starting program: /home/djordje/Projects/blade/target/debug/examples/bunnymark [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Detaching after vfork from child process 20070] [Detaching after vfork from child process 20072] [Detaching after vfork from child process 20078] [Detaching after vfork from child process 20079] warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libtinfo.so.6 warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libvulkan_intel.so warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libvulkan_virtio.so warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libvulkan_intel_hasvk.so [2024-08-25T17:16:57Z INFO blade_graphics::hal::init] Enabling Vulkan Portability [2024-08-25T17:16:57Z INFO blade_graphics::hal::init] Enabling color space support warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libVkLayer_MESA_overlay.so warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libVkLayer_MESA_device_select.so warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 [New Thread 0x7fffe2c006c0 (LWP 20080)] [2024-08-25T17:16:57Z INFO blade_graphics::hal::init] Testing presentation capability on Linux/Intel [New Thread 0x7fffe54006c0 (LWP 20081)] VUID-VkSwapchainCreateInfoKHR-presentMode-01281(ERROR / SPEC): msgNum: -1378015611 - Validation Error: [ VUID-VkSwapchainCreateInfoKHR-presentMode-01281 ] | MessageID = 0xaddd2685 | vkCreateSwapchainKHR(): pCreateInfo->presentMode (VK_PRESENT_MODE_IMMEDIATE_KHR) is not supported (the following are supported VK_PRESENT_MODE_MAILBOX_KHR VK_PRESENT_MODE_FIFO_KHR ). The Vulkan spec states: presentMode must be one of the VkPresentModeKHR values returned by vkGetPhysicalDeviceSurfacePresentModesKHR for the surface (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-VkSwapchainCreateInfoKHR-presentMode-01281) Objects: 0Thread 1 "bunnymark" received signal SIGSEGV, Segmentation fault. |
That's very helpful, thank you @tepavcevic ! |
@kvark I've tested it now, was able to build and run it. It also produces a lot of logs, I saw three distinct messages:
Objects: 0
VUID-VkMemoryBarrier-dstAccessMask-parameter(ERROR / SPEC): msgNum: 1190714446 - Validation Error: [ VUID-VkMemoryBarrier-dstAccessMask-parameter ] | MessageID = 0x46f8dc4e | vkCmdPipelineBarrier(): pMemoryBarriers[0].dstAccessMask (0x419800) has VkAccessFlagBits values that requires the extensions VK_NV_ray_tracing or VK_KHR_acceleration_structure. The Vulkan spec states: dstAccessMask must be a valid combination of VkAccessFlagBits values (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-VkMemoryBarrier-dstAccessMask-parameter)
Objects: 0
VUID-vkDestroySurfaceKHR-surface-01266(ERROR / SPEC): msgNum: -1093400348 - Validation Error: [ VUID-vkDestroySurfaceKHR-surface-01266 ] Object 0: handle = 0x585e8ba4c380, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0xbed408e4 | vkDestroySurfaceKHR(): called before its associated VkSwapchainKHR was destroyed. The Vulkan spec states: All VkSwapchainKHR objects created for surface must have been destroyed prior to destroying surface (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-vkDestroySurfaceKHR-surface-01266)
Objects: 1
[0] 0x585e8ba4c380, type: 1, name: NULL
warning: queue 0x585e8bda4a60 destroyed while proxies still attached:
wl_buffer@62 still attached
wl_buffer@60 still attached
wl_buffer@58 still attached
wl_buffer@56 still attached
VUID-vkDestroyDevice-device-05137(ERROR / SPEC): msgNum: 1215490720 - Validation Error: [ VUID-vkDestroyDevice-device-05137 ] Object 0: handle = 0xead9370000000008, type = VK_OBJECT_TYPE_SEMAPHORE; | MessageID = 0x4872eaa0 | vkDestroyDevice(): OBJ ERROR : For VkDevice 0x585e8bede290[], VkSemaphore 0xead9370000000008[] has not been destroyed. The Vulkan spec states: All child objects created on device must have been destroyed prior to destroying device (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-vkDestroyDevice-device-05137)
Objects: 1
[0] 0xead9370000000008, type: 5, name: NULL
VUID-vkDestroyDevice-device-05137(ERROR / SPEC): msgNum: 1215490720 - Validation Error: [ VUID-vkDestroyDevice-device-05137 ] Object 0: handle = 0xdd3a8a0000000015, type = VK_OBJECT_TYPE_SEMAPHORE; | MessageID = 0x4872eaa0 | vkDestroyDevice(): OBJ ERROR : For VkDevice 0x585e8bede290[], VkSemaphore 0xdd3a8a0000000015[] has not been destroyed. The Vulkan spec states: All child objects created on device must have been destroyed prior to destroying device (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-vkDestroyDevice-device-05137)
If you need me to test something in the future on this setup, feel free to ping me. |
Ok, sounds great, thank you! The validation error about "VkMemoryBarrier" I'll fix quickly, but overall this appears to work. |
In another thread @edwloef mentioned:
|
This thread isn't the same issue, the 560 issue is as far as I can tell only the |
@kvark it's early days, but so far on v0.152 the crashes seem similar. Is there something in particular I should check on? Since release we've seen:
|
It's important to have the logs associated with these stack traces. In particular, I'd need to know:
|
On Void Linux, installing mesa-vulkan-intel fixes it for me (Intel CPU). |
Issue is still present
Zed could not be run with intel graphics, shows the same log as other users, works with nvidia graphics enabled. |
@ConradIrwin is this with kvark/blade#144 included? |
... I am running into this issue with zed 0.162.5 on a Dell XPS and a NVIDIA GeForce RTX 4050. |
Similar on an older Dell XPS 15 with a NVIDIA GeForce GTX 1650 Ti. But for me starting it like this, as mentioned in some linked issue, works:
|
There seems to be a recent related discussion on #20853 |
@j-fu your case is particularly interesting though. We've seen the surface creation failing on those Nvidia optimus configurations. We've seen presentation failing with an error. But your case shows that it all seemingly succeeds, so even with the most detailed workaround checks on our side, it still believes that Intel is fine to present. But you apparently get a blank window. It would help to get the |
Thanks, great that you are looking into this!
The output of vulkaninfo and the Zed.log are in this gist. |
@j-fu I filed https://gitlab.freedesktop.org/mesa/mesa/-/issues/12212 upstream about your case. There is a few fields that are left as . If you can fill them out (by editing the description), or provide the info here (for me to copy it there), that would help devs to investigate. |
Thanks! I added this to the gist for the moment. I could sign up there if deemed helpful. |
Check for existing issues
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):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.
The text was updated successfully, but these errors were encountered: