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

m_pAqBackend couldn't start, hyprland crashes #6967

Open
alyraffauf opened this issue Jul 21, 2024 · 93 comments
Open

m_pAqBackend couldn't start, hyprland crashes #6967

alyraffauf opened this issue Jul 21, 2024 · 93 comments
Labels
bug Something isn't working

Comments

@alyraffauf
Copy link

Regression?

Yes

System Info and Version

System/Version info
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

@alyraffauf alyraffauf added the bug Something isn't working label Jul 21, 2024
@Ciflire
Copy link
Contributor

Ciflire commented Jul 21, 2024

I've had the same problem
Changing AQ_WLR_DEVICES to WLR_DRM_DEVICES fixed it for some reason

@izmyname
Copy link

#6956 might be related.

AQ_WLR_DEVICES

what? It's AQ_DRM_DEVICES

@alyraffauf
Copy link
Author

hyprlandCrashReport57187.txt

Same error on another PC, neither are multi-GPU setups.

@alyraffauf
Copy link
Author

set env = AQ_DRM_DEVICES,/dev/dri/card1, same crash.

@GimmeDataNow
Copy link

I have the same exact issue, I have tested AQ_WLR_DEVICES, WLR_DRM_DEVICES, AQ_DRM_DEVICES, none change the crash message.

(in order:)
hyprlandCrashReport133.txt
hyprlandCrashReport152.txt
hyprlandCrashReport1423.txt

@bjsemrad
Copy link

If I try to launch from Gdm login as well, I get the same / similar error as the other crash reports. If this helps at all, I'll grab crash report later.

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

can you give hyprland log with HYPRLAND_TRACE=1 and AQ_TRACE=1

@GimmeDataNow
Copy link

I am not sure if you mean setting export HYPRLAND_TRACE=1 and export AQ_TRACE=1 in the shell and then running Hyprland or setting this as an env var in the hyprland.conf, but I've done both. Here are the logs:

hyprlandCrashReport1334.txt
hyprlandCrashReport1479.txt

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

i meant something like this HYPRLAND_TRACE=1 AQ_TRACE=1 Hyprland from tty
then give log from /run/user/1000/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprland.log
btw $HYPRLAND_INSTANCE_SIGNATURE will prob be unset when you crash back to tty so just grab the newest file from there

@GimmeDataNow
Copy link

GimmeDataNow commented Jul 22, 2024

Ok, this is weird. when I do HYPRLAND_TRACE=1 AQ_TRACE=1 Hyprland then Hyprland runs just fine, but Hyprland doesn't wtf. Anyways here is the log of it running:

hyprland.log

Btw I am running nixos, so I can share my whole system if you want

Edit: After another reboot this no longer happens and it just doesn't work anymore.

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

try setting AQ_DRM_DEVICES to intel igpu when running from tty aswell and give the same log
the hyprland.log you gave is using an nvidia gpu

@GimmeDataNow
Copy link

GimmeDataNow commented Jul 22, 2024

I don't have an intel igpu. Here is what lspci | grep -E 'VGA|3D' returns:
07:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)

Anyways, here are some more logs in case you care (Hyprland crashes):

hyprland.log

hyprland.log

EDIT:
I have set AQ_WLR_DEVICES, WLR_DRM_DEVICES, AQ_DRM_DEVICES all to /dev/dri/card1 in the hyprland config. And it now works even after several reboots (without the HYPRLAND_TRACE=1 AQ_TRACE=1 ). Could anybody else also set all these to verify?

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

this seems like you have simple-framebuffer enabled in your kernel, could be from upgrading to 6.10.0
try putting initcall_blacklist=simpledrm_platform_driver_init in your kernel params

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

EDIT:
I have set AQ_WLR_DEVICES, WLR_DRM_DEVICES, AQ_DRM_DEVICES all to /dev/dri/card1 in the hyprland config. And it now works even after several reboots (without the HYPRLAND_TRACE=1 AQ_TRACE=1 ). Could anybody else also set all these to verify?

you only need AQ_DRM_DEVICES env var to be set
also setting explicit gpu will make AQ not use simple-framebuffer which fixes your issue

@GimmeDataNow
Copy link

this seems like you have simple-framebuffer enabled in your kernel, could be from upgrading to 6.10.0 try putting initcall_blacklist=simpledrm_platform_driver_init in your kernel params

Does initcall_blacklist=simpledrm_platform_driver_init affect any other applications?

Regardless this issue seems to be fixed on my end somehow. I'll keep testing and if there is an issue I'll be back

@ikalco
Copy link
Contributor

ikalco commented Jul 22, 2024

this seems like you have simple-framebuffer enabled in your kernel, could be from upgrading to 6.10.0 try putting initcall_blacklist=simpledrm_platform_driver_init in your kernel params

Does initcall_blacklist=simpledrm_platform_driver_init affect any other applications?

Regardless this issue seems to be fixed on my end somehow. I'll keep testing and if there is an issue I'll be back

it might, but you're right you should just use AQ_DRM_DEVICES instead

@bjsemrad
Copy link

I have a different error with AQ saying it cannot find the GPU.....
hyprlandCrashReport7871.txt

@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

[LOG] [AQ] drm: Explicit device list /dev/dri/card1
[ERR] [AQ] drm: Explicit device /dev/dri/card1 not found

are you sure /dev/dri/card1 is there
if it is give the same trace hyprland.log as the other guy did

@bjsemrad
Copy link

I am sure.....

> lspci | grep -E 'VGA|3D' 0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1)

> ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root  8 Jul 22 20:59 pci-0000:0a:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Jul 22 20:59 pci-0000:0a:00.0-render -> ../renderD128

Anyway attached the latest crash log, which now atleast shows a different error, I just removed AQ explicit env and tried again now it looks like just wayland.

Attached for reference.
hyprlandCrashReport7109.txt

Or did I miss understand the log you wanted?

@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

sorry i meant the /run/user/1000/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprlandd.log
and the new crash seems related to the other issue so i might know what it is

@bjsemrad
Copy link

Whoops sorry I missed that here you go:

hyprland.log

@fiskhest
Copy link

Setting env = AQ_DRM_DEVICES,/dev/dri/card1 fixed it for me, on a multi-GPU intel / Nvidia setup (albeit with the Nvidia GPU disabled)

@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

@bjsemrad
try aquamarine with this patch
patch.txt

@sjcobb2022
Copy link

I am having the same issue. Also on NixOS with a hybrid /Nvidia laptop.

With wlroots I had a symlink to /.config/hypr/card. This no longer works, and says that the card does not exist. This may be a totally separate issue, as this means aquamarine may not be able to resolve symlinks.

Hardcoding the path (to my amd iGPU) gives me this crash log:

hyprlandCrashReport5291.txt

It seems to find the card, start aquamarine and the Wayland backend, but the backend is unable to start.

Every single post on this thread is using NixOS, so I assume it is a nix path issue, which would make total sense given the logs.

I hope this info helps.

@vaxerski
Copy link
Member

the wayland fail is expected as you are running from a tty and not on a wayland compositor. That's a non-issue.

The issue is:

[ERR] [AQ] Couldn't open a GBM device at fd 25
[ERR] [AQ] Cannot create a GBM Allocator: gbm failed to create a device.

@sjcobb2022
Copy link

Ah so a different issue @vaxerski?

@vaxerski
Copy link
Member

I dont remember all the reports but most were about this I believe

@sjcobb2022
Copy link

I am sure.....

> lspci | grep -E 'VGA|3D' 0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1)

> ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root  8 Jul 22 20:59 pci-0000:0a:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Jul 22 20:59 pci-0000:0a:00.0-render -> ../renderD128

Anyway attached the latest crash log, which now atleast shows a different error, I just removed AQ explicit env and tried again now it looks like just wayland.

Attached for reference.
hyprlandCrashReport7109.txt

Or did I miss understand the log you wanted?

Ah I didn't see this post getting the same error. With a different file descriptor but nevertheless, the same GBM error.

After quick search (I'm on my phone because I haven't gotten round to pinning hypr to an older version yet), it seems that similar issues on different platforms are caused by outdated or broken Mesa drivers.

Not sure if this helps. Thank you for all your hard work and support @vaxerski

@bjsemrad
Copy link

the wayland fail is expected as you are running from a tty and not on a wayland compositor. That's a non-issue.

The issue is:


[ERR] [AQ] Couldn't open a GBM device at fd 25

[ERR] [AQ] Cannot create a GBM Allocator: gbm failed to create a device.

Ok that clarifies it, if I try from Gnome login (GDM) I get the same behavior, I'll have to check if it's running Wayland. This worked fine under WLroots so just trying to understand what is different now.

@BBernYY
Copy link

BBernYY commented Aug 16, 2024

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

@vaxerski
Copy link
Member

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

@Ciflire
Copy link
Contributor

Ciflire commented Aug 17, 2024

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

@saipavanc
Copy link

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
Copy link

saipavanc commented Aug 20, 2024

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
Copy link

Did you try with the following stable nixpkgs?

What is the main nixpkgs input that you use?

@jennydaman
Copy link

jennydaman commented Aug 21, 2024

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
Copy link

@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
Copy link

erahhal commented Aug 21, 2024

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

@fufexan
Copy link
Member

fufexan commented Aug 22, 2024

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
Copy link

hyperboly commented Aug 22, 2024

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
Copy link

erahhal commented Aug 22, 2024

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
Copy link
Member

fufexan commented Aug 26, 2024

@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
Copy link

erahhal commented Aug 26, 2024

Ugh, ok, thanks for letting us know!

@bjsemrad
Copy link

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

@erahhal
Copy link

erahhal commented Aug 26, 2024

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
Copy link
Contributor

romanstingler commented Aug 26, 2024

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
Copy link

erahhal commented Aug 27, 2024

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
Copy link

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
Copy link

Prohor327 commented Sep 11, 2024

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
Copy link

maeln commented Sep 11, 2024

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
Copy link

maeln commented Sep 11, 2024

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
Copy link

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
Copy link

Still broken on NixOS for me. Following nixpkgs unstable.

hyprland.log

@hyperboly
Copy link

hyperboly commented Oct 2, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests