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

Crashing when starting on Wayland with Intel GPU #14554

Closed
1 task done
UlrichAlt opened this issue Jul 16, 2024 · 3 comments
Closed
1 task done

Crashing when starting on Wayland with Intel GPU #14554

UlrichAlt opened this issue Jul 16, 2024 · 3 comments
Labels
bug [core label] linux linux-wayland Linux Wayland panic / crash [core label]

Comments

@UlrichAlt
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Start zed from the command line, nothing happens. Using X (with WAYLAND_DISPLAY='') everything works fine. When running in Wayland with --foreground

Thread "main" panicked with "called Result::unwrap() on an Err value: ERROR_SURFACE_LOST_KHR" at /home/ualt/.cargo/git/checkouts/blade-ea462a0faa3f9995/a477c20/blade-graphics/src/vulkan/init.rs:780:18
0: zed::reliability::init_panic_hook::{{closure}}
1: std::panicking::rust_panic_with_hook
2: std::panicking::begin_panic_handler::{{closure}}
3: std::sys_common::backtrace::__rust_end_short_backtrace
4: rust_begin_unwind
5: core::panicking::panic_fmt
6: core::result::unwrap_failed
7: blade_graphics::hal::init::::resize
8: gpui::platform::blade::blade_renderer::BladeRenderer::new
9: gpui::platform::linux::wayland::window::WaylandWindow::new
10: <gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::open_window
11: gpui::platform::linux::platform::::open_window
12: gpui::window::Window::new
13: workspace::Workspace::new_local::{{closure}}::{{closure}}
14: async_task::raw::RawTask<F,T,S,M>::run
15: <gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::run
16: gpui::platform::linux::platform::::run
17: gpui::app::App::run
18: zed::main
19: std::sys_common::backtrace::__rust_begin_short_backtrace
20: std::rt::lang_start::{{closure}}
21: std::rt::lang_start_internal
22: main
23:
24: __libc_start_main
25: _start

Environment

Zed: v0.145.0 (Zed Dev ef20afa)
OS: Linux Wayland debian 12
Memory: 6.4 GiB
Architecture: x86_64

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

Zed.log
2024-07-16T12:33:53.153596508+02:00 [INFO] ========== starting zed ==========
2024-07-16T12:33:53.227194435+02:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-07-16T12:33:53.227261797+02:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: false
2024-07-16T12:33:53.231350471+02:00 [INFO] perform;
2024-07-16T12:33:53.231468527+02:00 [INFO] read_command;
2024-07-16T12:33:53.2315526+02:00 [INFO] read_command;
2024-07-16T12:33:53.231731956+02:00 [INFO] Opening main db
2024-07-16T12:33:53.231853742+02:00 [INFO] socket reader;
2024-07-16T12:33:53.234296612+02:00 [INFO] new;
2024-07-16T12:33:53.235379702+02:00 [INFO] Using git binary path: None
2024-07-16T12:33:53.268966501+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/ualt/.local/bin:/home/ualt/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/ualt/.dotnet/tools
2024-07-16T12:33:53.279305222+02:00 [INFO] extensions updated. loading 3, reloading 0, unloading 0
2024-07-16T12:33:53.288946739+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-07-16T12:33:53.289079865+02:00 [INFO] Opening main db
2024-07-16T12:33:53.291308273+02:00 [INFO] perform;
2024-07-16T12:33:53.291380376+02:00 [INFO] read_command;
2024-07-16T12:33:53.291547007+02:00 [INFO] read_command;
2024-07-16T12:33:53.291656424+02:00 [INFO] socket reader;
2024-07-16T12:33:53.292107376+02:00 [INFO] Using Visual { id: 85, colormap: 0, depth: 32 }
2024-07-16T12:33:53.292220291+02:00 [INFO] Creating colormap 4194307
2024-07-16T12:33:53.326000638+02:00 [INFO] Enabling Vulkan Portability
2024-07-16T12:33:53.3260519+02:00 [INFO] Enabling color space support
2024-07-16T12:33:53.347139124+02:00 [INFO] Adapter "Virtio-GPU Venus (Intel(R) UHD Graphics (CML GT2))"
2024-07-16T12:33:53.347197377+02:00 [INFO] No ray tracing extensions are supported
2024-07-16T12:33:53.354623381+02:00 [INFO] Using surface present mode MAILBOX
2024-07-16T12:33:53.356136042+02:00 [WARN] Unable to forbid exclusive full screen
2024-07-16T12:33:53.377820929+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T12:33:53.377907229+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T12:33:53.377971801+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-07-16T12:33:53.388966243+02:00 [INFO] Refreshing at 16676 micros
2024-07-16T12:33:53.389095779+02:00 [INFO] x11: no compositor present, falling back to server-side window decorations
2024-07-16T12:33:53.440840753+02:00 [ERROR] DBus error service error org.freedesktop.zbus.Error: The name org.freedesktop.secrets was not provided by any .service files
2024-07-16T12:33:53.442594249+02:00 [INFO] Opening main db
2024-07-16T12:33:53.448550548+02:00 [INFO] Opening main db
2024-07-16T12:33:53.706117945+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:53.706258349+02:00 [INFO] starting language servers for Rust: rust-analyzer
2024-07-16T12:33:53.706391058+02:00 [INFO] starting language server "rust-analyzer", path: "/home/ualt/tree-sitter-initop", id: 1
2024-07-16T12:33:53.706765297+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:53.70687892+02:00 [INFO] starting language servers for Rust: rust-analyzer
2024-07-16T12:33:53.7309179+02:00 [INFO] fetching latest version of language server "rust-analyzer"
2024-07-16T12:33:53.737208721+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:53.737327108+02:00 [INFO] starting language servers for JavaScript: vtsls, tailwindcss-language-server, eslint
2024-07-16T12:33:53.73739574+02:00 [INFO] starting language server "vtsls", path: "/home/ualt/tree-sitter-initop", id: 2
2024-07-16T12:33:53.737526339+02:00 [INFO] starting language server "tailwindcss-language-server", path: "/home/ualt/tree-sitter-initop", id: 3
2024-07-16T12:33:53.737684758+02:00 [INFO] starting language server "eslint", path: "/home/ualt/tree-sitter-initop", id: 4
2024-07-16T12:33:53.738050947+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:53.738184542+02:00 [INFO] starting language servers for Rust: rust-analyzer
2024-07-16T12:33:53.738383682+02:00 [INFO] starting language servers for JavaScript: vtsls, tailwindcss-language-server, eslint
2024-07-16T12:33:53.756533365+02:00 [INFO] fetching latest version of language server "vtsls"
2024-07-16T12:33:53.757197088+02:00 [INFO] Node runtime install_if_needed
2024-07-16T12:33:53.760493993+02:00 [INFO] fetching latest version of language server "tailwindcss-language-server"
2024-07-16T12:33:53.760617851+02:00 [INFO] fetching latest version of language server "eslint"
2024-07-16T12:33:53.760699681+02:00 [INFO] downloading language server "eslint"
2024-07-16T12:33:53.761198095+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:53.761448936+02:00 [INFO] starting language servers for Rust: rust-analyzer
2024-07-16T12:33:53.761528136+02:00 [INFO] starting language servers for JavaScript: vtsls, tailwindcss-language-server, eslint
2024-07-16T12:33:54.217657421+02:00 [INFO] Initializing default prettier with plugins {}
2024-07-16T12:33:54.217728798+02:00 [INFO] starting language servers for Rust: rust-analyzer
2024-07-16T12:33:54.217823982+02:00 [INFO] starting language servers for JavaScript: vtsls, tailwindcss-language-server, eslint
2024-07-16T12:33:54.350536065+02:00 [INFO] Node runtime install_if_needed
2024-07-16T12:33:54.641005487+02:00 [INFO] downloading language server "rust-analyzer"
2024-07-16T12:33:54.652228907+02:00 [INFO] starting language server. binary path: "/home/ualt/.local/share/zed/languages/rust-analyzer/rust-analyzer-2024-07-15", working directory: "/home/ualt/tree-sitter-initop", args: []
2024-07-16T12:33:54.94792771+02:00 [INFO] Node runtime install_if_needed
2024-07-16T12:33:54.979150006+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T12:33:55.015414122+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-07-16T12:33:55.050443612+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-07-16T12:33:55.092273215+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-07-16T12:33:55.739356851+02:00 [INFO] starting language server. binary path: "/home/ualt/.local/share/zed/node/node-v18.15.0-linux-x64/bin/node", working directory: "/home/ualt/tree-sitter-initop", args: 
@UlrichAlt UlrichAlt added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Jul 16, 2024
@notpeter
Copy link
Member

Start zed from the command line, nothing happens. Using X (with WAYLAND_DISPLAY='') everything works fine. When running in Wayland with --foreground

To be clear things are working with X11 but failing under Wayland, correct?
What model Intel GPU are you using?

I think this might be related:

@notpeter notpeter added linux linux-wayland Linux Wayland and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jul 16, 2024
@UlrichAlt
Copy link
Author

UlrichAlt commented Jul 16, 2024

Selected GPU 0: Virtio-GPU Venus (Intel(R) UHD Graphics (CML GT2)), type: IntegratedGpu
It is running inside a virtual machine with the host GPU being "passed in".
The search for similar items did not return any results because of the trailing " after LOST_KHR", apologies.

X11 =OK, Wayland = Bad.

@notpeter
Copy link
Member

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

2 participants