-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Zed failed to open a window: NoSupportedDeviceFound #13441
Comments
Hi @lasypig:
For reference, here are the current docs for Building Zed for Linux. |
I will try to build zed on my ubuntu. I built zed myself, but problem still exists: cargo run
warning: `/home/wangxb/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
warning: `/home/wangxb/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.58s
Running `target/debug/zed`
Zed failed to open a window: NoSupportedDeviceFound After searching error string, |
I have the same issue System Info $ uname -a
Linux lerssett 6.9.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 21 Jun 2024 19:49:19 +0000 x86_64 GNU/Linux
$ sb_release -a
LSB Version: 2.0
Distributor ID: EndeavourOS
Description: EndeavourOS Linux
Release: rolling
Codename: rolling
$ lspci -k | grep -A 2 -E "(VGA|3D)"
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3283
Kernel driver in use: nouveau Software $ pacman -Q | rg mesa
lib32-mesa 1:24.1.2-1
mesa 1:24.1.2-1
mesa-utils 9.0.0-4
vulkan-mesa-layers 1:24.1.2-1
$ pacman -Q | rg nouveau
lib32-vulkan-nouveau 1:24.1.2-1
vulkan-nouveau 1:24.1.2-1
xf86-video-nouveau 1.0.17-3
$ pacman -Q | rg zed
zed 0.140.5-1 When I run command vkEnumeratePhysicalDevices reported zero accessible devices.
Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information. but it works fine with env var Zed output without that env var is $ /usr/lib/zed/zed-editor
[2024-06-26T16:47:25+02: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-ea462a0faa3f9995/33fd513/blade-graphics/src/vulkan/init.rs",
"line": 379
},
"backtrace": [
"__libc_start_main"
],
"app_version": "0.140.5",
"release_channel": "Zed",
"os_name": "Linux Wayland",
"os_version": "endeavouros unknown",
"architecture": "x86_64",
"panicked_on": 1719413245132,
"installation_id": "fc128855-9a2d-43c3-835e-1eb6a4361b5e",
"session_id": "2c47a610-15e2-42b6-9cba-49301796ad93"
}
fish: Job 1, '/usr/lib/zed/zed-editor' terminated by signal SIGABRT (Abort) with env var $ NVK_I_WANT_A_BROKEN_VULKAN_DRIVER=1 /usr/lib/zed/zed-editor
WARNING: NVK is not a conformant Vulkan implementation, testing use only.
Zed failed to open a window: NoSupportedDeviceFound
fish: Job 1, 'NVK_I_WANT_A_BROKEN_VULKAN_DRIV…' terminated by signal SIGSEGV (Address boundary error) vulkaninfo $ vulkaninfo
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Failed to detect any valid GPUs in the current config
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.269/vulkaninfo/./vulkaninfo.h:237:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED NVK_I_WANT_A_BROKEN_VULKAN_DRIVER=1 vulkaninfo https://gist.github.com/Stanislav-Lapata/0d188cc028d123640a7ae92d3e90d601 |
I have the same issue.
|
On OpenSUSE after running When I run
I needed to install Then zed runs, can be used, but then crashes randomly, and I dont see where the log is. |
To anyone experiencing this issue, please add the following information:
For our part we've had a couple of reports of this with the Solus package, both users affected are using hybrid Intel/Nvidia GPUs and it appears that Vulkan initialization is failing with the Intel GPU but succeeding with the Nvidia one. If anyone is having this issue with a similar configuration please try the following to isolate the issue: To force it to use the Intel GPU: For Nvidia These paths may be different depending on your distribution. |
I had the same issue and was able to fix by installing https://archlinux.org/packages/?name=vulkan-nouveau Linux lyminox-83ef 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
Subsystem: Lenovo Device 3d0a
Kernel driver in use: nouveau
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev 0a)
Subsystem: Lenovo Device 3d0a
Kernel driver in use: amdgpu |
If anyone with an AMD GPU and Arch stumbles upon this, I had the same issue and fixed it by installing |
I come from the Linux announcement in HN, and got same issue. Info:
(Here the commands I used, if others want to use them too for their reports)$ zed --version
Zed 0.143.6 – /home/work/.local/zed.app/libexec/zed-editor
$ echo "$XDG_SESSION_TYPE"
x11
$ lsb_release -d
Description: Linux Mint 20.3
$ cinnamon --version
Cinnamon 5.2.7
$ lspci -v -mm -k | sed -r -n '/Class:.*(VGA|3D)/,/^$/p'
Class: VGA compatible controller
Vendor: Intel Corporation
Device: Iris Pro Graphics 6200
SVendor: ASRock Incorporation
SDevice: Iris Pro Graphics 6200
Rev: 0a
Driver: i915
Module: i915
$ uname -r
5.15.0-107-generic
$ apt-cache policy mesa-vulkan-drivers | grep 'Installed:'
Installed: 21.2.6-0ubuntu0.1~20.04.2 mesa-vulkan-drivers provides $ VK_ICD_FILENAMES='/usr/share/vulkan/icd.d/intel_icd.x86_64.json' zed .
error opening [PathLikeWithPosition { path_like: "/home/work/tmp", row: None, column: None }]: NoSupportedDeviceFound |
@kvark , perhaps you might know what's going on here? Or what diagnostic information might be helpful for debugging this? |
+1 on Ubuntu 20.04, |
same issue here |
Running Zed inside a VM failed:
As workaround, |
Thanks @geraldhobbes for the advice! Then afterwards I ran it as normal and it worked, but it useed the integrated graphics and I see very high cpu usage and sluggishness. Following https://wiki.archlinux.org/title/Vulkan#Troubleshooting, as I have a dedicated nvidia gpu, I tried to to open zed as |
Me too rpm -qa | grep mesa rpm -qa | grep vulkan |
Some more info I've found out:
With this newer version of the package, zed now starts up correctly! Full command output:$ RUST_LOG='blade_graphics=debug' zed --foreground .
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::init] Enabling color space support
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::init] Adapter "Intel(R) Iris(R) Pro Graphics 6200 (BDW GT3)"
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::init] No ray tracing extensions are supported
[2024-07-15T11:22:44+02:00 DEBUG blade_graphics::hal::init] Adapter AdapterCapabilities {
api_version: 4202627,
properties: PhysicalDeviceProperties {
api_version: 4206870,
driver_version: 100667395,
vendor_id: 32902,
device_id: 5666,
device_type: INTEGRATED_GPU,
device_name: Ok(
"Intel(R) Iris(R) Pro Graphics 6200 (BDW GT3)",
),
pipeline_cache_uuid: [
233,
211,
99,
32,
243,
212,
47,
139,
207,
222,
5,
247,
97,
50,
192,
99,
],
limits: PhysicalDeviceLimits {
max_image_dimension1_d: 16384,
max_image_dimension2_d: 16384,
max_image_dimension3_d: 2048,
max_image_dimension_cube: 16384,
max_image_array_layers: 2048,
max_texel_buffer_elements: 134217728,
max_uniform_buffer_range: 134217728,
max_storage_buffer_range: 1073741824,
max_push_constants_size: 128,
max_memory_allocation_count: 4294967295,
max_sampler_allocation_count: 65536,
buffer_image_granularity: 1,
sparse_address_space_size: 0,
max_bound_descriptor_sets: 32,
max_per_stage_descriptor_samplers: 65535,
max_per_stage_descriptor_uniform_buffers: 64,
max_per_stage_descriptor_storage_buffers: 65535,
max_per_stage_descriptor_sampled_images: 128,
max_per_stage_descriptor_storage_images: 64,
max_per_stage_descriptor_input_attachments: 64,
max_per_stage_resources: 231,
max_descriptor_set_samplers: 393210,
max_descriptor_set_uniform_buffers: 384,
max_descriptor_set_uniform_buffers_dynamic: 8,
max_descriptor_set_storage_buffers: 393210,
max_descriptor_set_storage_buffers_dynamic: 8,
max_descriptor_set_sampled_images: 768,
max_descriptor_set_storage_images: 384,
max_descriptor_set_input_attachments: 256,
max_vertex_input_attributes: 29,
max_vertex_input_bindings: 31,
max_vertex_input_attribute_offset: 2047,
max_vertex_input_binding_stride: 2048,
max_vertex_output_components: 128,
max_tessellation_generation_level: 64,
max_tessellation_patch_size: 32,
max_tessellation_control_per_vertex_input_components: 128,
max_tessellation_control_per_vertex_output_components: 128,
max_tessellation_control_per_patch_output_components: 128,
max_tessellation_control_total_output_components: 2048,
max_tessellation_evaluation_input_components: 128,
max_tessellation_evaluation_output_components: 128,
max_geometry_shader_invocations: 32,
max_geometry_input_components: 128,
max_geometry_output_components: 128,
max_geometry_output_vertices: 256,
max_geometry_total_output_components: 1024,
max_fragment_input_components: 116,
max_fragment_output_attachments: 8,
max_fragment_dual_src_attachments: 1,
max_fragment_combined_output_resources: 65607,
max_compute_shared_memory_size: 65536,
max_compute_work_group_count: [
65535,
65535,
65535,
],
max_compute_work_group_invocations: 1024,
max_compute_work_group_size: [
1024,
1024,
1024,
],
sub_pixel_precision_bits: 8,
sub_texel_precision_bits: 8,
mipmap_precision_bits: 8,
max_draw_indexed_index_value: 4294967295,
max_draw_indirect_count: 4294967295,
max_sampler_lod_bias: 16.0,
max_sampler_anisotropy: 16.0,
max_viewports: 16,
max_viewport_dimensions: [
16384,
16384,
],
viewport_bounds_range: [
-32768.0,
32767.0,
],
viewport_sub_pixel_bits: 13,
min_memory_map_alignment: 4096,
min_texel_buffer_offset_alignment: 16,
min_uniform_buffer_offset_alignment: 64,
min_storage_buffer_offset_alignment: 4,
min_texel_offset: -8,
max_texel_offset: 7,
min_texel_gather_offset: -32,
max_texel_gather_offset: 31,
min_interpolation_offset: -0.5,
max_interpolation_offset: 0.4375,
sub_pixel_interpolation_offset_bits: 4,
max_framebuffer_width: 16384,
max_framebuffer_height: 16384,
max_framebuffer_layers: 2048,
framebuffer_color_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
framebuffer_depth_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
framebuffer_stencil_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
framebuffer_no_attachments_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
max_color_attachments: 8,
sampled_image_color_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
sampled_image_integer_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
sampled_image_depth_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
sampled_image_stencil_sample_counts: TYPE_1 | TYPE_2 | TYPE_4 | TYPE_8,
storage_image_sample_counts: TYPE_1,
max_sample_mask_words: 1,
timestamp_compute_and_graphics: 1,
timestamp_period: 80.0,
max_clip_distances: 8,
max_cull_distances: 8,
max_combined_clip_and_cull_distances: 8,
discrete_queue_priorities: 2,
point_size_range: [
0.125,
255.875,
],
line_width_range: [
0.0,
7.9921875,
],
point_size_granularity: 0.125,
line_width_granularity: 0.0078125,
strict_lines: 0,
standard_sample_locations: 1,
optimal_buffer_copy_offset_alignment: 128,
optimal_buffer_copy_row_pitch_alignment: 128,
non_coherent_atom_size: 64,
},
sparse_properties: PhysicalDeviceSparseProperties {
residency_standard2_d_block_shape: 0,
residency_standard2_d_multisample_block_shape: 0,
residency_standard3_d_block_shape: 0,
residency_aligned_mip_size: 0,
residency_non_resident_strict: 0,
},
},
queue_family_index: 0,
layered: false,
ray_tracing: false,
buffer_marker: false,
shader_info: false,
full_screen_exclusive: false,
bugs: SystemBugs {
intel_unable_to_present: false,
intel_fix_descriptor_pool_leak: false,
},
}
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::init] Using surface present mode MAILBOX
[2024-07-15T11:22:44+02:00 WARN blade_graphics::hal::init] Unable to forbid exclusive full screen
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::descriptor] Creating a descriptor pool for at most 16 sets
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::descriptor] Creating a descriptor pool for at most 16 sets
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating texture 0x557c26c85a10 of size 1024x1024x1 and format R8Unorm, name 'atlas', handle 0
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26c86370 of size 65536, name 'chunk-0', handle 1
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26ca3890 of size 4096, name 'chunk-0', handle 2
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26c78a00 of size 4368, name 'chunk-1', handle 3
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26cda6f0 of size 4096, name 'chunk-2', handle 4
[2024-07-15T11:22:44+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26ce1c40 of size 4368, name 'chunk-3', handle 5
[2024-07-15T11:22:45+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26dfea60 of size 21840, name 'chunk-4', handle 6
[2024-07-15T11:22:45+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26dd5d10 of size 21840, name 'chunk-5', handle 7
[2024-07-15T11:22:48+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c2661da40 of size 21952, name 'chunk-6', handle 8
[2024-07-15T11:22:48+02:00 INFO blade_graphics::hal::resource] Creating buffer 0x557c26e030c0 of size 21952, name 'chunk-7', handle 9 |
Having KHR_dynamic_rendering makes zed completely broken on legacy Nvidia Kepler based GPUs (and the older ones of course), I believe a OpenGL backend would increase compatibility as many legacy GPUs don't have full Vulkan 1.3 Support |
That's great news! So we can run fine on Ubuntu-20, we should just make it more clear that a driver update is needed in this case.
Is this because Nvidia doesn't release any Vulkan driver updates for this GPU? Otherwise, again as I mentioned, this extension is not bound to any HW capabilities, it is meant to be supported by all the GPUs in software. |
Well I think it would suffice to be explicit about the versions of dependencies that are mandatory. As it is right now, That alone ought to be enough for users to be conscious that they will run into problems if their Mesa version is older (as would generally happen with any software if dependencies are not satisfied!) In general, having an exhaustive (as much as reasonably possible) list of dependencies is always a good thing, so I think this particular one would be a good thing to state somewhere (and avoid confusion and debugging for other users like me with older systems) |
So Mesa 22.0 was in Ubuntu 22.04, so that's currently the supported baseline for what distro versions can run Zed currently. Other distro releases with that version of Mesa:
No idea if that's an acceptable baseline or not, but one thing that's for certain is that the UX behind this is currently very poor. It would be better if an appropriate error message was at least printed to the terminal or a popup window shown if launched interactively. That way users at least know why it's not working for them. |
I solved it for my hyprland (arch) setup by:
|
v0.145.1 - vkcube vkcubepp lsb_release -a |
As mentioned earlier in this thread you need to use at least Mesa 22.0 for Zed to work. Your distro appears to be using 20.0 which is too old. Side note, your distro version appears to be end-of-life and hasn't received any updates in more than 2 years. You should really not be using end-of-life versions of software like that. |
Yes, Nvidia has stopped providing feature updates for those GPUs (from what I have heard, implementing Vulkan 1.3 for kepler based GPUs was not feasible due to architectural limitations) |
I got the same issue in my Linux mint, I resolved it by installing vulkan drivers you can check it with vulkaninfo | grep "GPU id |
i've got the same issue. i don't know all the technical details like a lot of you guys, but here's some select information from
i would like to note that i recently switched from linux mint to endeavourOS, and it worked fine on mint. |
@sillybreakfast it would help to provide the following:
|
I have the same issue, I've installed with the recommended command |
The same problem. Version of the vulkan drivers: vkcube output of zed with debug |
@juanma1331 based on your vulkaninfo, this system should run just fine. I see that running Zed executable under the Rust log environment isn't working trivially - Zed forks itself immediately. cd blade
RUST_LOG=blade_graphics=info cargo run --example bunnymark |
I started the installation using the command
For some reason, Zed detected the emulated GPU instead of the actual one. Next, I tried to force the use of the NVIDIA GPU with the command
I got the same error trying to force it using other methods. The content of {
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.2.175"
}
} Zed log content: Blade example log: |
Ok, thank you @juanma1331, I see now that the vulkaninfo only lists support for "dynamic rendering" on the software implementation. Looks like NVidia isn't releasing a driver update for this GPU with newer Vulkan features. |
the issue appeared after a kernel upgrade on fedora 40 KDE with vulkan. It resolved for me after debuggin vulkan configuration, rebuilding NVIDIA kernel modules.
sudo akmods --force
sudo dracut --force
vulkaninfo
echo $VK_ICD_FILENAMES
|
This almost worked for me
Both A Zed window pops up but then stucks, before going all black |
did you solve this? I'm getting a similar error:
On debian with x11
|
You need to update to a newer distribution if you want Zed to work. Edit: I notice you did say Debian, so my guess about Bullseye is probably correct. You could try Bookworm, that has Mesa 22.3.6 which might work otherwise there's 24.2.4 in backports. |
I have experienced the same issue today
What solve this problem for me is to set the variable below inside my export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json EDIT : The root cause was an incorrectly configured XDG_DATA_DIRS. After noticing multiple apps were affected, I fixed it by adding |
@ReillyBrogan you where right, i switched from debian bullseye to bookworm and it works now |
Check for existing issues
Describe the bug / provide steps to reproduce it
Environment
ubuntu 20.04
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: