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

Hyprland crashing on startup. #9438

Closed
4 of 6 tasks
Notarin opened this issue Feb 18, 2025 · 11 comments
Closed
4 of 6 tasks

Hyprland crashing on startup. #9438

Notarin opened this issue Feb 18, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@Notarin
Copy link

Notarin commented Feb 18, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

I don't know, I started using Hyprland only recently

System Info and Hyprland Version

System/Version info
Hyprland 0.47.2 built from branch v0.47.2-b at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: 2025-02-02
Tag: v0.47.2, commits: 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set


System Information:
System name: Linux
Node name: uriel
Release: 6.6.63
Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Nov 22 14:38:37 UTC 2024


GPU information: 
11:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1) (prog-if 00 [VGA controller])


os-release: ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.05.20241209.a73246e"
CPE_NAME="cpe:/o:nixos:nixos:25.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.05 (Warbler)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.05 (Warbler)"
VERSION_CODENAME=warbler
VERSION_ID="25.05"


plugins:

Description

Switched from arch to hyprland.
Tested on several machines and a VM, all with diverse hardware.
cannot for the life of me get it to work without nixGL.
runs like a breeze in nixGL.

How to reproduce

Unsure of reproduction.
The only two variables I possibly see being relevant are that my system is UEFI, and the disk is impermanent.

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

config.txt
hyprlandCrashReport637841.txt

@Notarin Notarin added the bug Something isn't working label Feb 18, 2025
@Notarin
Copy link
Author

Notarin commented Feb 18, 2025

oop, forgot to include stack trace, one moment

@Notarin
Copy link
Author

Notarin commented Feb 18, 2025

trace.txt

@nnyyxxxx
Copy link
Contributor

try -git

@Notarin
Copy link
Author

Notarin commented Feb 18, 2025

try -git

Is this a cli flag?

@nnyyxxxx
Copy link
Contributor

no, compile from source and see if it still crashes

@nnyyxxxx
Copy link
Contributor

from the trace and logs, looks like hyprland couldnt:

start the wayland backend - failed because another compositor is running
trys to fall back to gbm/drm - failed because it cannot access your gpu

stops trying and throws an error

probably not an issue with hyprland

@nnyyxxxx
Copy link
Contributor

install opengl / mesa libs, this will probably fix your issue, and explains why nixgl works

@C0Florent
Copy link

Perhaps your NixOS is not up to date properly.
I noticed a similar bug recently when trying to upgrade from Hyprland 0.45.2 packaged by nixpkgs 24.11 to Hyprland 0.47.2 provided by the flake in this repo. Some recent changes required some system-level changes in NixOS, so for me upgrading my NixOS from 24.11 to the unstable from a few weeks ago made it work. I don't how "old" is your unstable, so my advice may or may not be relevant to your problem

@Notarin
Copy link
Author

Notarin commented Feb 19, 2025

@C0Florent I have tested off of the flake, which is the latest commit, and the github flake, which is even more recent. I have tested several versions, none of which worked.
programs.hyprland.enable is supposed to fix the driver issues, but for whatever reason is ain't. So I plan to see if I can figure out how to get them into the environment.

@C0Florent
Copy link

@Notarin

@C0Florent I have tested off of the flake, which is the latest commit, and the github flake, which is even more recent. I have tested several versions, none of which worked. programs.hyprland.enable is supposed to fix the driver issues, but for whatever reason is ain't. So I plan to see if I can figure out how to get them into the environment.

Sorry, but just to be sure we're on the same page: my message was about the version your system is built with − not necessarily your environment packages version − which according to your "System info" is nixpkgs unstable from Nov 22, quite a while ago. I did not make that really clear in my first message and your answer doesn't disambiguate, so I'm making myself clear, sorry to repeat if you already understood.
You may update your system info in the issue description to make things clear

To elaborate further, if you indeed have the correct NixOS version, can you see the drivers in /run/opengl-driver/? IIRC when I was getting a crash it was a dri_gbm.so which was not found during Hyprland startup, which is supposed to be located at /run/opengl-driver/lib/gbm/dri_gbm.so.

If that's not it then I'm out of ideas

@vaxerski
Copy link
Member

[ERR] [AQ] Couldn't open a GBM device at fd 29
[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!

quite self-explanatory. Your driver did not let us take your gpu. Likely a misconfiguration of some sort.

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
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

4 participants