hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.9k stars 911 forks source link

Zed crashing on asahi linux with the new vulkan drivers #8158

Open mavonarx opened 1 month ago

mavonarx commented 1 month ago

Already reported ? *

Regression?

No

System Info and Version

System/Version info ```sh Hyprland 0.44.0 built from branch main at commit 0e630e9e74ad34683194a07cfe6afe55a2c0685f (). Date: Thu Oct 17 08:05:55 2024 Tag: , commits: 5352 built against aquamarine 0.4.3 flags set: debug System Information: System name: Linux Node name: maettu Release: 6.11.0-400.asahi.fc40.aarch64+16k Version: #1 SMP PREEMPT_DYNAMIC Fri Sep 27 02:59:31 UTC 2024 GPU information: apple,agx-t6000 os-release: NAME="Fedora Linux Asahi Remix" VERSION="40 (Forty)" ID=fedora-asahi-remix ID_LIKE=fedora VERSION_ID=40 VERSION_CODENAME="" PLATFORM_ID="platform:f40" PRETTY_NAME="Fedora Linux Asahi Remix 40 (Forty)" ANSI_COLOR="0;38;2;60;110;180" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora-asahi-remix:40" DEFAULT_HOSTNAME="fedora" HOME_URL="https://fedora-asahi-remix.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/" SUPPORT_URL="https://discussion.fedoraproject.org/c/neighbors/asahi/asahi-help/94" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=40 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=40 plugins: ======Config-Start====== Config File: /home/maettu/.config/hypr/hyprland.conf: Read Succeeded ################ ### MONITORS ### ################ # See https://wiki.hyprland.org/Configuring/Monitors/ # monitor=,preferred,auto,auto #monitor=HDMI-A-1,highres,auto,1 monitor=HDMI-A-1,3440x1440,auto,1 # monitor=fakemonitor,3456x2160,auto,2 ################### ### MY PROGRAMS ### ################### # See https://wiki.hyprland.org/Configuring/Keywords/ # Set programs that you use $terminal = alacritty $browser = firefox $fileManager = thunar $menu = wofi --show drun ################# ### AUTOSTART ### ################# # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: # Keyring exec-once = /usr/libexec/kf6/polkit-kde-authentication-agent-1 exec-once = dbus-update-activation-environment --all exec-once = gnome-keyring-daemon --start --components=secrets exec-once = ags #exec-once = nextcloud # exec-once = $terminal # exec-once = nm-applet & # exec-once = waybar & hyprpaper & firefox ############################# ### ENVIRONMENT VARIABLES ### ############################# # See https://wiki.hyprland.org/Configuring/Environment-variables/ env = XCURSOR_SIZE,26 env = HYPRCURSOR_SIZE,24 env = HYPRSHOT_DIR, "/home/maettu/Screenshots/" ##################### ### LOOK AND FEEL ### ##################### # Refer to https://wiki.hyprland.org/Configuring/Variables/ # https://wiki.hyprland.org/Configuring/Variables/#general general { gaps_in = 5 gaps_out = 5 border_size = 2 # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) # Set to true enable resizing windows by clicking and dragging on borders and gaps resize_on_border = true # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false layout = dwindle } debug { disable_logs = false damage_tracking = 0 } # https://wiki.hyprland.org/Configuring/Variables/#decoration decoration { rounding = 10 # Change transparency of focused and unfocused windows active_opacity = 1.0 inactive_opacity = 1.0 #screen_shader = /home/maettu/.config/hypr/shaders/bluelight_filter.frag drop_shadow = true shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) # https://wiki.hyprland.org/Configuring/Variables/#blur blur { enabled = true size = 3 passes = 1 vibrancy = 0.1696 } } # https://wiki.hyprland.org/Configuring/Variables/#animations animations { enabled = true # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more dwindle { pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = true # You probably want this } # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more master { new_status = master } # https://wiki.hyprland.org/Configuring/Variables/#misc misc { force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( } ############# ### INPUT ### ############# # https://wiki.hyprland.org/Configuring/Variables/#input input { kb_layout = ch kb_variant = de_mac kb_model = kb_options = nbsp:none, lv3:lalt_switch kb_rules = follow_mouse = 2 sensitivity = 0 # -1.0 - 1.0, 0 means no modification. touchpad { disable_while_typing = true natural_scroll = false scroll_factor = 0.8 clickfinger_behavior = true tap-to-click = false } } # https://wiki.hyprland.org/Configuring/Variables/#gestures gestures { workspace_swipe = false } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more device { name = epic-mouse-v1 sensitivity = -0.5 } #################### ### KEYBINDINGSS ### #################### # See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal bind = $mainMod, B, exec, $browser bind = $mainMod, Q, killactive, # bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow bind = ,232,exec, brightnessctl set 10%- bind = ,233,exec, brightnessctl set +10% bind = $mainMod, SPACE, exec, ags -t launcher bind=,XF86PowerOff, exec, ags -t powermenu bind=SUPER, Tab, exec, ags -t overview bind = SUPER, M, exec, hyprlock ############################## ### WINDOWS AND WORKSPACES ### ############################## # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. ############################## ### Screenshots ### ############################## bind = $mainMod Control_L, 4, exec, hyprshot -m region # Volume control bind = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl set-sink-mute @DEFAULT_SINK@ 0 bind = ,XF86AudioRaiseVolume, exec, bash -c 'pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl set-sink-volume @DEFAULT_SINK@ $(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP "\d+(?=%)" | head -1 | awk "{if (\$1 > 100) print 100; else print \$1}")%' && pactl set-sink-mute @DEFAULT_SINK@ 0 bind = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle ======Config-End======== ```

Description

Zed (using vulkan) crashes at startup on asahi linux. I tested it on KDE there it works fine.

How to reproduce

Launch zed editor (with --foreground for verbose output) on m1 mac book pro running asahi linux with the honeykrisp vulkan driver.

Crash reports, logs, images, videos

zed --foreground [2024-10-18T09:37:39+02:00 ERROR zed::reliability] { "thread": "main", "payload": "called Result::unwrap() on an Err value: ERROR_SURFACE_LOST_KHR", "location_data": { "file": "/home/runner/.cargo/git/checkouts/blade-b2bcd1de1cf7ab6a/e142a3a/blade-graphics/src/vulkan/init.rs", "line": 930 }, "backtrace": [ "core::panicking::panic_fmt", "core::result::unwrap_failed", "blade_graphics::hal::init::::resize", "gpui::platform::blade::blade_renderer::BladeRenderer::update_transparency", "gpui::platform::linux::wayland::window::update_window", "gpui::app::AppContext::observe_global::{{closure}}", "gpui::app::AppContext::flush_effects", "gpui::window::Window::new::{{closure}}", "<gpui::platform::linux::wayland::client::WaylandClientStatePtr as wayland_client::event_queue::Dispatch<wayland_protocols::xdg::decoration::zv1::generated::client::zxdg_toplevel_decoration_v1::ZxdgToplevelDecorationV1,wayland_backend::sys::client::ObjectId>>::event", "wayland_client::event_queue::queue_callback", "<core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher>::process_events", "::run", "gpui::platform::linux::platform::::run", "gpui::app::App::run", "zed::main", "std::sys::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.158.1", "release_channel": "Zed Preview", "os_name": "Linux Wayland", "os_version": "fedora-asahi-remix 40", "architecture": "aarch64", "panicked_on": 1729237059096, "system_id": "d5df4444-a4a0-4746-a5a9-81d717ad0dc1", "installation_id": "ce42f6f3-1c02-4999-9226-9813f72f99a9", "session_id": "f0d80dc6-7a08-4143-8f79-a9aef3a179e2" }

vaxerski commented 1 month ago

can you test kde wl/sway?

formadi commented 1 month ago

In my case, it works well without any issues. hyprland-git, M1 mac mini(8/256), zed version: Zed 0.157.5

check.. below , hyprland configuration..


render {
    explicit_sync = 0
}
mavonarx commented 1 month ago

You are right, that option fixes it. Thank you. Maybe the auto option should pick 0 for this new gpu driver?