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.95k stars 912 forks source link

m_pAqBackend couldn't start, hyprland crashes #6967

Open alyraffauf opened 4 months ago

alyraffauf commented 4 months ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: 2024-06-25 Tag: v0.41.2, commits: 918d8340afd652b011b937d29d5eea0be08467f5 flags: (if any) System Information: System name: Linux Node name: petalburg Release: 6.9.10 Version: #1-NixOS SMP PREEMPT_DYNAMIC Thu Jul 18 11:22:56 UTC 2024 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240719.0c53b6b" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.05 (Uakari)" SUPPORT_END="2024-12-31" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: ======Config-Start====== Config File: /home/aly/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/g56mlyricr13dqsra9ag6kh8m5v66r70-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target $mod=SUPER animations { bezier=myBezier,0.05,0.9,0.1,1.05 animation=border,1,10,default animation=borderangle,1,8,default animation=fade,1,7,default animation=specialWorkspace,1,6,default,slidevert animation=windows,1,7,myBezier animation=windowsOut,1,7,default,popin 80% animation=workspaces,1,6,default enabled=true } decoration { blur { enabled=true passes=1 size=8 } col.shadow=rgba(1A1A1AEE) dim_special=0.500000 drop_shadow=true layerrule=blur,launcher layerrule=blur,logout_dialog layerrule=blur,notifications layerrule=blur,swayosd layerrule=blur,waybar layerrule=ignorezero,notifications layerrule=ignorezero,swayosd layerrule=ignorezero,waybar rounding=10 shadow_range=4 shadow_render_power=3 } dwindle { preserve_split=true } general { allow_tearing=false border_size=2 col.active_border=rgba(CA9EE6EE) rgba(78AEEDEE) 45deg col.inactive_border=rgba(242424AA) gaps_in=5 gaps_out=6 layout=dwindle } gestures { workspace_swipe=true workspace_swipe_touch=true } input { tablet { output=eDP-1 } touchdevice { output=eDP-1 } touchpad { clickfinger_behavior=true drag_lock=true middle_button_emulation=true natural_scroll=true tap-to-click=true } follow_mouse=1 kb_layout=us kb_variant=altgr-intl sensitivity=0 } master { always_center_master=true new_status=false } misc { disable_hyprland_logo=true disable_splash_rendering=true focus_on_activate=true vfr=true } xwayland { force_zero_scaling=true } bind=$mod CONTROL,F12,exec,/nix/store/j2zy9f6mch1s5nmw5a0pya2spva2m9xx-hyprshot-1.2.3/bin/hyprshot -m region -o /home/aly/pics/screenshots bind=$mod CONTROL,L,exec,/nix/store/yp0fgqqr036ziishc7k522071n558apw-swaylock-1.7.2/bin/swaylock bind=$mod SHIFT,S,movetoworkspace,special:magic bind=$mod SHIFT,V,togglefloating bind=$mod SHIFT,W,fullscreen bind=$mod SHIFT,backslash,togglesplit bind=$mod SHIFT,comma,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome --previous --move bind=$mod SHIFT,period,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome --move bind=$mod,B,exec,/nix/store/l94h73y1pnyr8m3jpwgy91x0vfv02vz9-firefox-128.0/bin/firefox bind=$mod,C,killactive bind=$mod,E,exec,/nix/store/6xk0j54s5fcsf7ivxysy0nb58d6iw4ii-zed-0.141.3/bin/zed bind=$mod,F,exec,/nix/store/mjxi1wppnv7j5dq7lw6akakym7h7rksm-nemo-6.0.2/bin/nemo bind=$mod,F11,exec,pkill -SIGUSR1 waybar bind=$mod,M,exec,/nix/store/lmz5zs0j5h01lkac21fwns88ms799gwc-wlogout-1.2.2/bin/wlogout bind=$mod,PRINT,exec,/nix/store/j2zy9f6mch1s5nmw5a0pya2spva2m9xx-hyprshot-1.2.3/bin/hyprshot -m region -o /home/aly/pics/screenshots bind=$mod,R,exec,/nix/store/q9ihfyl7jsvigxp6r0zgxibwpffbkd5n-fuzzel-1.10.2/bin/fuzzel bind=$mod,S,togglespecialworkspace,magic bind=$mod,T,exec,/nix/store/n27akl2hawkr9bcxq8rq6yawrxvgnp23-alacritty-0.13.2/bin/alacritty bind=$mod,comma,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome --previous bind=$mod,mouse_down,workspace,+1 bind=$mod,mouse_up,workspace,-1 bind=$mod,period,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome bind=,PRINT,exec,/nix/store/j2zy9f6mch1s5nmw5a0pya2spva2m9xx-hyprshot-1.2.3/bin/hyprshot -m output -o /home/aly/pics/screenshots bind=CONTROL,F12,exec,/nix/store/j2zy9f6mch1s5nmw5a0pya2spva2m9xx-hyprshot-1.2.3/bin/hyprshot -m output -o /home/aly/pics/screenshots bind=CTRL ALT,M,submap,move bind=CTRL ALT,R,submap,resize bind=$mod SHIFT,1,movetoworkspace,1 bind=$mod SHIFT,2,movetoworkspace,2 bind=$mod SHIFT,3,movetoworkspace,3 bind=$mod SHIFT,4,movetoworkspace,4 bind=$mod SHIFT,5,movetoworkspace,5 bind=$mod SHIFT,6,movetoworkspace,6 bind=$mod SHIFT,7,movetoworkspace,7 bind=$mod SHIFT,8,movetoworkspace,8 bind=$mod SHIFT,9,movetoworkspace,9 bind=$mod,1,workspace,1 bind=$mod,2,workspace,2 bind=$mod,3,workspace,3 bind=$mod,4,workspace,4 bind=$mod,5,workspace,5 bind=$mod,6,workspace,6 bind=$mod,7,workspace,7 bind=$mod,8,workspace,8 bind=$mod,9,workspace,9 bind=$mod CONTROL SHIFT,down,movecurrentworkspacetomonitor,d bind=$mod CONTROL SHIFT,h,movecurrentworkspacetomonitor,l bind=$mod CONTROL SHIFT,j,movecurrentworkspacetomonitor,d bind=$mod CONTROL SHIFT,k,movecurrentworkspacetomonitor,u bind=$mod CONTROL SHIFT,l,movecurrentworkspacetomonitor,r bind=$mod CONTROL SHIFT,left,movecurrentworkspacetomonitor,l bind=$mod CONTROL SHIFT,right,movecurrentworkspacetomonitor,r bind=$mod CONTROL SHIFT,up,movecurrentworkspacetomonitor,u bind=$mod SHIFT,down,movewindow,d bind=$mod SHIFT,h,movewindow,l bind=$mod SHIFT,j,movewindow,d bind=$mod SHIFT,k,movewindow,u bind=$mod SHIFT,l,movewindow,r bind=$mod SHIFT,left,movewindow,l bind=$mod SHIFT,right,movewindow,r bind=$mod SHIFT,up,movewindow,u bind=$mod,down,movefocus,d bind=$mod,h,movefocus,l bind=$mod,j,movefocus,d bind=$mod,k,movefocus,u bind=$mod,l,movefocus,r bind=$mod,left,movefocus,l bind=$mod,right,movefocus,r bind=$mod,up,movefocus,u bind=SUPER SHIFT,N,movetoworkspace,special:notes bind=SUPER,N,togglespecialworkspace,notes bind=SUPER,P,exec,/nix/store/glgd94v3pcxd0r06pl84w0lc6inz4105-keepassxc-2.7.7/bin/keepassxc bind=,xf86launch4,exec,/nix/store/9rwpjxczncraig088ldahlxc3gabcq9b-python3.11-pp-adjuster-0.1.0/bin/pp-adjuster bind=,xf86launch2,exec,/nix/store/b1p7mz52j9cvcj3vk90an3nxqzs47h0w-playerctl-2.4.1/bin/playerctl play-pause bindl=,xf86audiomute,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --output-volume=mute-toggle bindl=,xf86audiomicmute,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --input-volume=mute-toggle bindl=,xf86audioplay,exec,/nix/store/b1p7mz52j9cvcj3vk90an3nxqzs47h0w-playerctl-2.4.1/bin/playerctl play-pause bindl=,xf86audioprev,exec,/nix/store/b1p7mz52j9cvcj3vk90an3nxqzs47h0w-playerctl-2.4.1/bin/playerctl previous bindl=,xf86audionext,exec,/nix/store/b1p7mz52j9cvcj3vk90an3nxqzs47h0w-playerctl-2.4.1/bin/playerctl next bindl=,switch:Lenovo Yoga Tablet Mode Control switch,exec,/nix/store/fpfc5pkx56k3n30l1r83apgfgvp2anzm-hyprland-tablet bindl=,switch:on:Lid Switch,exec,/nix/store/bf69sivqidca2a0j07m8wzwijv8l3zma-hyprland-clamshell on bindl=,switch:off:Lid Switch,exec,/nix/store/bf69sivqidca2a0j07m8wzwijv8l3zma-hyprland-clamshell off bindle=,xf86monbrightnessup,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --brightness=raise bindle=,xf86monbrightnessdown,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --brightness=lower bindle=,xf86audioraisevolume,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --output-volume=raise bindle=,xf86audiolowervolume,exec,/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-client --output-volume=lower bindm=$mod,mouse:272,movewindow bindm=$mod,mouse:273,resizewindow exec-once=/nix/store/ynacjfkl4y7zyp0i9f22lm1pzrhvjjnb-hyprland-randomWallpaper exec-once=/nix/store/1zyfdh4j724ap0l80w2phd47v4jnxbd3-waybar-0.10.3/bin/waybar exec-once=/nix/store/gp6w06pibkly75wdyazlbys3iqv2i6il-hyprland-idled exec-once=/nix/store/cip79l4krhgbamc2jk795nljrxh54llk-wayland-pipewire-idle-inhibit-0.5.1/bin/wayland-pipewire-idle-inhibit exec-once=/nix/store/969y31x2b218wy4ldc8zmp3lmfi1czfs-blueman-2.4.1/bin/blueman-applet exec-once=/nix/store/x8p7fm3yzii8wgz658gix058rnqvnbrv-network-manager-applet-1.36.0/bin/nm-applet exec-once=/nix/store/b1p7mz52j9cvcj3vk90an3nxqzs47h0w-playerctl-2.4.1/bin/playerctld exec-once=/nix/store/r11x153jkmsl7z0xvsnldaikvsq36l7s-swayosd-0-unstable-2024-04-15/bin/swayosd-server exec-once=/nix/store/8nnfmqwa36aiza4mpc2d7byqfrzhx9lp-mako-1.9.0/bin/mako exec-once=/nix/store/k09qk6h6ai6q4j0smnq3dgix1z0fk1c0-mate-polkit-1.28.1/libexec/polkit-mate-authentication-agent-1 exec-once=/nix/store/yai4qgijay26jxfwxq3gap9zing7dan4-gammastep-2.0.9/bin/gammastep -l 33.74:-84.38 exec-once=sleep 1 && /nix/store/glgd94v3pcxd0r06pl84w0lc6inz4105-keepassxc-2.7.7/bin/keepassxc exec-once=/nix/store/w8vkw9c216ypgkm23dsq0ppn8dwcjzgr-iio-hyprland-unstable-2023-09-27/bin/iio-hyprland "desc:Samsung Display Corp. 0x4152" monitor=,preferred,auto,auto monitor=desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0 monitor=desc:Guangxi Century Innovation Display Electronics Co. Ltd 27C1U-D 0000000000001,preferred,-2400x0,1.6 monitor=desc:HP Inc. HP 24mh 3CM037248S,preferred,-1920x0,auto monitor=desc:LG Electronics LG IPS QHD 109NTWG4Y865,preferred,-2560x0,auto windowrulev2=center(1),class:(.blueman-manager-wrapped) windowrulev2=center(1),class:(com.github.wwmm.easyeffects) windowrulev2=center(1),class:(pavucontrol) windowrulev2=float, class:^(firefox)$, title:^(Picture-in-Picture)$ windowrulev2=float,class:(.blueman-manager-wrapped) windowrulev2=float,class:(com.github.wwmm.easyeffects) windowrulev2=float,class:(pavucontrol) windowrulev2=move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$ windowrulev2=pin,class:^(firefox)$, title:^(Picture-in-Picture)$ windowrulev2=size 40% 60%,class:(.blueman-manager-wrapped) windowrulev2=size 40% 60%,class:(com.github.wwmm.easyeffects) windowrulev2=size 40% 60%,class:(pavucontrol) windowrulev2=suppressevent maximize, class:.* windowrulev2=center(1),class:(org.keepassxc.KeePassXC) windowrulev2=float,class:(org.keepassxc.KeePassXC) windowrulev2=size 80% 80%,class:(org.keepassxc.KeePassXC) windowrulev2=workspace 1,class:(brave-browser) windowrulev2=workspace 1,class:(firefox) windowrulev2=workspace 2,class:(codium-url-handler) windowrulev2=workspace 2,class:(dev.zed.Zed) windowrulev2=workspace 3,class:(firework) windowrulev2=workspace 3,class:(google-chrome) windowrulev2=workspace special:magic,class:(WebCord) windowrulev2=workspace special:magic,class:(org.gnome.Fractal) workspace=1,defaultName:web,on-created-empty:/nix/store/l94h73y1pnyr8m3jpwgy91x0vfv02vz9-firefox-128.0/bin/firefox workspace=2,defaultName:code,on-created-empty:/nix/store/6xk0j54s5fcsf7ivxysy0nb58d6iw4ii-zed-0.141.3/bin/zed workspace=special:magic,on-created-empty:/nix/store/0dx2dzxnb2d3iwryvxhrd05j5k8xyg8i-fractal-7/bin/fractal workspace=special:notes,on-created-empty:/nix/store/yxl6gw0nxr28qnvh0h5dq3a9wcvs893i-obsidian-1.5.12/bin/obsidian submap=resize binde=,down,resizeactive,0 10 binde=,left,resizeactive,-10 0 binde=,right,resizeactive,10 0 binde=,up,resizeactive,0 -10 binde=,j,resizeactive,0 10 binde=,h,resizeactive,-10 0 binde=,l,resizeactive,10 0 binde=,k,resizeactive,0 -10 bind=,escape,submap,reset submap=reset submap=move bind=CONTROL,down,movecurrentworkspacetomonitor,d bind=CONTROL,h,movecurrentworkspacetomonitor,l bind=CONTROL,j,movecurrentworkspacetomonitor,d bind=CONTROL,k,movecurrentworkspacetomonitor,u bind=CONTROL,l,movecurrentworkspacetomonitor,r bind=CONTROL,left,movecurrentworkspacetomonitor,l bind=CONTROL,right,movecurrentworkspacetomonitor,r bind=CONTROL,up,movecurrentworkspacetomonitor,u bind=,down,movewindow,d bind=,h,movewindow,l bind=,j,movewindow,d bind=,k,movewindow,u bind=,l,movewindow,r bind=,left,movewindow,l bind=,right,movewindow,r bind=,up,movewindow,u bind=,1,workspace,1 bind=,2,workspace,2 bind=,3,workspace,3 bind=,4,workspace,4 bind=,5,workspace,5 bind=,6,workspace,6 bind=,7,workspace,7 bind=,8,workspace,8 bind=,9,workspace,9 bind=,comma,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome --previous --move bind=,period,exec,/nix/store/yqby2lr3gqfhlc64b4vj7j64c10sdd5n-hyprnome-0.3.0/bin/hyprnome --move bind=,escape,submap,reset submap=reset ======Config-End======== ```

Description

Hyprland (post-aquamarine) is crashing on startup, claiming it can not find a GPU.

How to reproduce

Start Hyprland with greetd or from tty, it crashes almost instantly.

Crash reports, logs, images, videos

hyprlandCrashReport111372.txt

sjcobb2022 commented 4 months ago

I have a fix!!!

For me, to get it to work and compile, you need to set both aquamarine and hyprland to use the same nixpkgs version. It be because of some weird dependency issue or something. Not sure why yet.

It also does not work on nixos-unstable currently.

I believe that it may be the need for hyprland and aquamarine to have the same mesa versions as one's drivers? (just speculation).

Here are my flake inputs currently.

inputs = {

    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";

    aquamarine = {
      url = "github:hyprwm/aquamarine";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hyprland = {
      type = "git";
      url = "https://github.com/hyprwm/hyprland";
      submodules = true;
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.aquamarine.follows = "aquamarine";
    };

};
bjsemrad commented 4 months ago

I have a fix!!!

For me, to get it to work and compile, you need to set both aquamarine and hyprland to use the same nixpkgs version. It be because of some weird dependency issue or something. Not sure why yet.

It also does not work on nixos-unstable currently.

I believe that it may be the need for hyprland and aquamarine to have the same mesa versions as one's drivers? (just speculation).

Here are my flake inputs currently.

inputs = {

    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";

    aquamarine = {
      url = "github:hyprwm/aquamarine";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hyprland = {
      type = "git";
      url = "https://github.com/hyprwm/hyprland";
      submodules = true;
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.aquamarine.follows = "aquamarine";
    };

};

I am doing some digging and not 100% clear why nixpkgs is not enough since the flake for Hyprland has aquamarine follow nixpkgs, which is being overridden......atleast that "was" my understanding.

sjcobb2022 commented 4 months ago

I believe that the flake needs to be updated on the hyprland repo to match aquamarine master branch.

vaxerski commented 4 months ago

@fufexan

fufexan commented 4 months ago

flake.lock already has the latest aquamarine.

sjcobb2022 commented 4 months ago

Building hyprland without specifying an aquamarine version works.

e.g.


inputs = {

    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";

    hyprland = {
      type = "git";
      url = "https://github.com/hyprwm/hyprland";
      submodules = true;
      inputs.nixpkgs.follows = "nixpkgs";
    };
};

I assume that we need the mesa versions to be the same as the system still. Not sure why the AQ updated would cause that.

pianocomposer321 commented 3 months ago

@sjcobb2022 could you provide a full working flake.nix file? I'm new to nix and I'm having trouble getting the syntax right using just your fragment.

sjcobb2022 commented 3 months ago

@pianocomposer321

https://github.com/sjcobb2022/nixos-config/blob/main/flake.nix

Here is my flake from my dots. I hope this helps!

bjsemrad commented 3 months ago

I am not sure what changed but I no longer have this issue. I am only using the Hyprland flake no need for adding aquamarine on 24.05.

pianocomposer321 commented 3 months ago

Thanks @sjcobb2022! Unfortunately I tried using this as a starting point and still couldn't get it to work. I'm actually using Debian with the nix package manager and not NixOS like most of the rest of you are, so it's possible I have a different problem. I'll probably open a separate issue.

Thanks anyway!

diniamo commented 3 months ago

This is fixed for me on latest Hyprland + latest nixpkgs/nixos-unstable

sjcobb2022 commented 3 months ago

Thanks @sjcobb2022! Unfortunately I tried using this as a starting point and still couldn't get it to work. I'm actually using Debian with the nix package manager and not NixOS like most of the rest of you are, so it's possible I have a different problem. I'll probably open a separate issue.

Thanks anyway!

May also be a mesa version. could you send your mesa version?

You can find it by using something like: vulkaninfo --summary

hdhog commented 3 months ago

i have a similar problem hyprland_01.log hyprland.log

sjcobb2022 commented 3 months ago

@vaxerski

Sorry for the tag, but I came across this post on reddit

https://www.reddit.com/r/NixOS/s/AEHpqGURTJ

If this comment is true, the mess version and libgbm version may not be compatible between versions now. Maybe why libgbm breaks when the driver and hyprland mesa versions are different.

I guess that means that this is unpactchable basically, and somehow we must require that the system mesa version be the same as the packages Mesa version.

Might be able to put an error in cmake perhaps?

hdhog commented 3 months ago

i have a similar problem hyprland_01.log hyprland.log

hyprland.log

and logs from my laptop with intel gpu

BBernYY commented 3 months ago

I appear to be having this issue on arch (AMD Radeon gpu), am I the only one? And is there any way I could apply this fix on arch?

BBernYY commented 3 months ago

I have fixed my issue by building the hyprland-git package from source, instead of using hyprland

vaxerski commented 3 months ago

@alyraffauf does this still happen on hl-git + aq-git?

Ciflire commented 3 months ago

this used to not work for me only when building from source for hl debug works now for me

saipavanc commented 3 months ago

I have tried multiple options as mentioned above, using hyprland and aq from git, hyprland without mentioning aq and both with and without using mesa from hyprland git repo. It still is not working for me on Nix. Anyone who made it work, could you share your nix config?

saipavanc commented 3 months ago

Hyprland did start to work on a tty, when I used hyprland when I used:

# flake.nix
hyprland = {
      type = "git";
      url = "https://github.com/hyprwm/hyprland";
      submodules = true;
    };
# configuration.nix
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;
hardware.opengl = {
   package = pkgs-unstable-hyprland.mesa.drivers;
};

After nixos-rebuild switch, Hyprland did launch in a tty. Later I realized the graphics driver was not working, Kitty and KDE Plasma failed to work. After a reboot, I was not able to login into KDE at all, and Hyprland was still broken. Was able to reboot properly when the mesa from hyprland package specification was removed. I had the following error:

[LOG] [AQ] zwp_linux_dmabuf_v1: Got format GR32 with modifier INVALID
[LOG] [AQ] zwp_linux_dmabuf_v1: Got main device
[LOG] [AQ] zwp_linux_dmabuf_v1: Got node /dev/dri/renderD128
[LOG] [AQ] zwp_linux_dmabuf_v1: Got done
[LOG] [AQ] zwp_linux_dmabuf_v1: opened node /dev/dri/renderD128 with fd 36
[LOG] [AQ] Output WAYLAND-1: initialized
[ERR] [AQ] Couldn't open a GBM device at fd 37
[ERR] [AQ] Cannot create a GBM Allocator: gbm failed to create a device.
[CRITICAL] m_pAqBackend couldn't start! This usually means aquamarine could not find a GPU or encountered some issues. Make sure you're running either on a tty or on a Wayland session, NOT an X11 one.
[CRITICAL] Critical error thrown: CBackend::create() failed!
sjcobb2022 commented 3 months ago

Did you try with the following stable nixpkgs?

What is the main nixpkgs input that you use?

jennydaman commented 3 months ago

I noticed most of the commenters here are reporting problems with Hyprland installed on NixOS using Nix.

I am on Arch Linux with the Nix package manager installed. I noticed that the hyprland package from Arch Linux's repositories works for me (/usr/bin/Hyprland), but the nixpkgs.hyprland package installed using nix via home-manager (/nix/store/k407c7flgddm7bkds474fwq9wx5faarm-hyprland-0.42.0/bin/Hyprland) is crashing with the same error messages as reported above in this issue.

hyprlandCrashReport24688.txt

saipavanc commented 3 months ago

@sjcobb2022 I am using the stable nixpkgs 24.05. I just used the default programs.hyprland.enable=true; without using the flake, and this works fine. I am not sure if the flake still works, which I think is necessary for the plugins.

erahhal commented 3 months ago

Can confirm the same issue when using the latest flake with 24.05 on both Intel and AMD GPUs on two different thinkpads.

fufexan commented 3 months ago

In order for the flake to work with NixOS 24.05 you will have to override hyprland's nixpkgs input. This means you'll have to recompile almost everything.

The unstable package should work again, as aquamarine 0.3.3 has made it into nixos-unstable. Flake + nixos-unstable should also work (it does for me).

hyperboly commented 3 months ago

Still not starting for me.

Tested with nixpkgs-unstable and git

        hyprland = {
            type = "git";
            url = "https://github.com/hyprwm/Hyprland";
            submodules = true;
            inputs.nixpkgs.follows = "nixpkgs-unstable";
            #inputs.nixpkgs.follows = "nixpkgs";
        };

hyprland.log

erahhal commented 3 months ago

In order for the flake to work with NixOS 24.05 you will have to override hyprland's nixpkgs input. This means you'll have to recompile almost everything.

The unstable package should work again, as aquamarine 0.3.3 has made it into nixos-unstable. Flake + nixos-unstable should also work (it does for me).

That worked - I was able to get it to launch, thank you. Many things broken though (external displays not detected; hard hangs; bambu studio menus not working), so will just wait for it to be backported to 24.05. On the plus side I did notice other issues gone, e.g. menu positioning is now correct and chromium-based apps are being sized properly and not stuck in some squashed state.

fufexan commented 3 months ago

@erahhal sadly we can't backport new Hyprland versions to 24.05 since the transition to aquamarine is considered a breaking change, and those are not allowed for backports.

We may do something similar to wlroots' packaging and package multiple versions at the same time, under names such as hyprland_0.42.0, etc.

erahhal commented 3 months ago

Ugh, ok, thanks for letting us know!

bjsemrad commented 3 months ago

Why don't you use the flake? That will allow you to leverage the new versions of Hyprland on 24.05.

erahhal commented 3 months ago

Why don't you use the flake? That will allow you to leverage the new versions of Hyprland on 24.05.

Read my earlier comment. It has major issues. Doesn't seem to be a problem when I use the flake with nixos unstable but if I use it with stable it's very broken.

romanstingler commented 3 months ago

In order for the flake to work with NixOS 24.05 you will have to override hyprland's nixpkgs input. This means you'll have to recompile almost everything. The unstable package should work again, as aquamarine 0.3.3 has made it into nixos-unstable. Flake + nixos-unstable should also work (it does for me).

That worked - I was able to get it to launch, thank you. Many things broken though (external displays not detected; hard hangs; bambu studio menus not working), so will just wait for it to be backported to 24.05. On the plus side I did notice other issues gone, e.g. menu positioning is now correct and chromium-based apps are being sized properly and not stuck in some squashed state.

for the not detected monitors (actually they are detected) try disconnecting and reconnecting the HDMI cable maybe multiple times and wait a few seconds between connects( for me it works only on the HDMI connector not on the USBc to HDMI connector).

Hard hangs, try kernel lower than 6.10

erahhal commented 3 months ago

In order for the flake to work with NixOS 24.05 you will have to override hyprland's nixpkgs input. This means you'll have to recompile almost everything. The unstable package should work again, as aquamarine 0.3.3 has made it into nixos-unstable. Flake + nixos-unstable should also work (it does for me).

That worked - I was able to get it to launch, thank you. Many things broken though (external displays not detected; hard hangs; bambu studio menus not working), so will just wait for it to be backported to 24.05. On the plus side I did notice other issues gone, e.g. menu positioning is now correct and chromium-based apps are being sized properly and not stuck in some squashed state.

for the not detected monitors (actually they are detected) try disconnecting and reconnecting the HDMI cable maybe multiple times and wait a few seconds between connects( for me it works only on the HDMI connector not on the USBc to HDMI connector).

Hard hangs, try kernel lower than 6.10

Using kernel 6.6 and DP cables.

githubkuyaya commented 2 months ago

I get the same issue, hyprland crashes with greetd if I use initial_session but it works if I login manually with default_session. Downgrading to v.0.41.2 fixes the issue.

Crash report is attached.

hyprlandCrashReport617.txt

Prohor327 commented 2 months ago

I get the same issue. I am using arch Linux and amd gpu. I was using hyprland in the past, but I switch to gnome and deleted a package of hyprland, but recently I wanted to use hyprland again. And I got this error.

hyprlandCrashReport483.txt

maeln commented 2 months ago

I got the same issue with the v.0.42.2 and v.0.43, the corecump seems to indicate everyone favorite issue: an issue with OpenGL (so probably the driver). I am on a intel cpu/gpu. The coredump info: coredump.txt

maeln commented 2 months ago

Well, after some poking around, it turns out I did not have mesa (and vulkan-intel) installed (on archlinux). How the hell did hyprland worked before is a mystery to me. It is working properly after installing mesa

githubkuyaya commented 2 months ago

Well, after some poking around, it turns out I did not have mesa (and vulkan-intel) installed (on archlinux). How the hell did hyprland worked before is a mystery to me. It is working properly after installing mesa

I have both installed and it crashed for me. I just have Intel Xe Graphics, no dedicated extra GPU.

hyperboly commented 2 months ago

Still broken on NixOS for me. Following nixpkgs unstable.

hyprland.log

hyperboly commented 2 months ago

Ok I haven't found the solution but here's journalctl, I think this is the root cause. journal.log The important part is at the bottom when I tried to open Hyprland.

The log is also different now hyprland.2.log

rod-stuchi commented 1 month ago

Just to maybe contribute with my 2 cents, I also have set AQ_WLR_DEVICES, WLR_DRM_DEVICES, AQ_DRM_DEVICES, and have the same error. But when I start Hyprland from tty2 it works.