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

Critical error thrown: wlr_gles2_renderer_create_with_drm_fd() failed! On Ubuntu #3105

Closed
hmajid2301 opened this issue Aug 29, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@hmajid2301
Copy link

hmajid2301 commented Aug 29, 2023

Hyprland Version

flake using rev: 4a41d01

Bug or Regression?

Bug

Description

I have successfully used the same config to get Hyprland running on two separate NixOS Machines

I have to use Ubuntu for work, I have setup nix/home-manager.
Which has built Hyprland, but when I run Hyprland it fails with the following error (more details in crash log):

00:00:00.000 [backend/wayland/backend.c:574] Creating wayland backend
00:00:00.001 [render/egl.c:206] Supported EGL client extensions:
00:00:00.001 [render/egl.c:209] EGL_EXT_platform_base not supported
00:00:00.001 [render/egl.c:524] Failed to create EGL context
00:00:00.001 [render/gles2/renderer.c:804] Could not initialize EGL

I am sure I am just missing something obvious. But any help would be greatly appreciated.
(Possibly missing a dep, usually installed by nixos, I did try to install the recommended ubuntu deps with apt)

Host Home Manager: https://github.com/hmajid2301/dotfiles/blob/main/hosts/curve/home.nix
Hyprland Config: https://github.com/hmajid2301/dotfiles/blob/main/home-manager/desktops/hyprland/default.nix

How to reproduce

  1. Have a clean install of 22.04 Ubuntu
  2. git clone my dotfiles repo: https://github.com/hmajid2301/dotfiles/blob/main/home-manager/desktops/hyprland/default.nix
  3. Install home manager/nix
  4. Run command home-manager switch --flake ~/dotfiles#curve
  5. Run Hyprland either in terminal or TTY
  6. It fails with the crash report

Crash reports, logs, images, videos

Crash Report
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
I hope you didn't have any unsaved progress.

Hyprland received signal 6 (Aborted)

Version: 0a78f6031c8fcc6773f136fccde3d560aaac239d
Tag: ?

System info:
	System name: Linux
	Node name: FRANDECPA63294006A
	Release: 6.2.0-31-generic
	Version: #31~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 16 13:45:26 UTC 2

GPU:
	00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:a7a0] (rev 04) (prog-if 00 [VGA controller])


os-release:
	PRETTY_NAME="Ubuntu 22.04.3 LTS"
	NAME="Ubuntu"
	VERSION_ID="22.04"
	VERSION="22.04.3 LTS (Jammy Jellyfish)"
	VERSION_CODENAME=jammy
	ID=ubuntu
	ID_LIKE=debian
	HOME_URL="https://www.ubuntu.com/"
	SUPPORT_URL="https://help.ubuntu.com/"
	BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
	PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
	UBUNTU_CODENAME=jammy
	


Backtrace:
	#0 | /home/haseebmajid/.nix-profile/bin/Hyprland(_Z12getBacktracev+0x48) [0x48b528]
		_Z12getBacktracev
		??:?
	#1 | /home/haseebmajid/.nix-profile/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x83d) [0x5180fd]
		_ZN13CrashReporter18createAndSaveCrashEi
		??:?
	#2 | /home/haseebmajid/.nix-profile/bin/Hyprland(_Z25handleUnrecoverableSignali+0x3f) [0x52a2ff]
		_Z25handleUnrecoverableSignali
		??:?
	#3 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(+0x38d30) [0x7fb5f7c52d30]
		??
		??:0
	#4 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(+0x87a8c) [0x7fb5f7ca1a8c]
		??
		??:0
	#5 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(gsignal+0x16) [0x7fb5f7c52c86]
		??
		??:0
	#6 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(abort+0xd7) [0x7fb5f7c3c8ba]
		??
		??:0
	#7 | /nix/store/c50v7bf341jsza0n07784yvzp5fzjpn5-gcc-12.3.0-lib/lib/libstdc++.so.6(+0xa9a89) [0x7fb5f7ea9a89]
		??
		??:0
	#8 | /nix/store/c50v7bf341jsza0n07784yvzp5fzjpn5-gcc-12.3.0-lib/lib/libstdc++.so.6(+0xb4f8a) [0x7fb5f7eb4f8a]
		??
		??:0
	#9 | /nix/store/c50v7bf341jsza0n07784yvzp5fzjpn5-gcc-12.3.0-lib/lib/libstdc++.so.6(+0xb4ff5) [0x7fb5f7eb4ff5]
		??
		??:0
	#10 | /nix/store/c50v7bf341jsza0n07784yvzp5fzjpn5-gcc-12.3.0-lib/lib/libstdc++.so.6(+0xb5247) [0x7fb5f7eb5247]
		??
		??:0
	#11 | /home/haseebmajid/.nix-profile/bin/Hyprland() [0x448922]
		_Z10throwErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.cold
		??:?
	#12 | /home/haseebmajid/.nix-profile/bin/Hyprland(_ZN11CCompositor10initServerEv+0x622) [0x53a852]
		_ZN11CCompositor10initServerEv
		??:?
	#13 | /home/haseebmajid/.nix-profile/bin/Hyprland(main+0x994) [0x471144]
		main
		??:?
	#14 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(+0x23ace) [0x7fb5f7c3dace]
		??
		??:0
	#15 | /nix/store/vq3sdi8l15rzfl5zvmwpafrzis4sm6xf-glibc-2.37-8/lib/libc.so.6(__libc_start_main+0x89) [0x7fb5f7c3db89]
		??
		??:0
	#16 | /home/haseebmajid/.nix-profile/bin/Hyprland(_start+0x25) [0x4775a5]
		_start
		??:?


Log tail:
[LOG] Release: 6.2.0-31-generic
[LOG] Version: #31~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 16 13:45:26 UTC 2


[LOG] GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:a7a0] (rev 04) (prog-if 00 [VGA controller])


[LOG] os-release:
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

[LOG] ========================



[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/


[LOG] 
Current splash: Ding ding pch n daa, bam-ba-ba-re-bam baram bom bom baba-bam-bam-bommm


[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 32.09µs. Estimated average calc time: 0.09µs.
[LOG] Creating the ConfigManager!
[LOG] Creating the CHyprError!
[LOG]  [hookSystem] New hook event registered: focusedMon
[LOG]  [hookSystem] New hook event registered: preRender
[LOG] Creating the LayoutManager!
[LOG] Reloading the config!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 17.91µs. Estimated average calc time: 0.07µs.
[LOG] Using config: /home/haseebmajid/.config/hypr/hyprland.conf
[LOG] Registered dynamic var "$notifycmd" -> notify-send -h string:x-canonical-private-synchronous:hypr-cfg -u low
[LOG] Disabling stdout logs! Check the log for further logs.
[LOG]  [hookSystem] New hook event registered: configReloaded
[CRITICAL] m_sWLRRenderer was NULL!
[CRITICAL] Critical error thrown: wlr_gles2_renderer_create_with_drm_fd() failed!
@hmajid2301 hmajid2301 added the bug Something isn't working label Aug 29, 2023
@vaxerski
Copy link
Member

looks like outdated deps. ubuntu is not supported anyways.

@melectronics-it
Copy link

On Archlinux I also have the error from the title of this issue. And I don´t find something...

@melectronics-it
Copy link

The hyprwm for Xorg has no bugs in my archlinux VM

@ebluke
Copy link

ebluke commented Nov 5, 2023

Nvidia 545 is throwing this for me, downgrade to 535 and it works, although 535 seems to be a pain itself.

@cmanon
Copy link

cmanon commented Nov 20, 2023

Same issue on Arch with Nvidia 545. Will try to use it again after new release of Nvidia.

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

5 participants