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
19.53k stars 818 forks source link

Frequent crashes #5080

Closed postsolar closed 5 months ago

postsolar commented 5 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch at commit f115ba94d2ec6e093c94f425535b027bc570185e (). Date: 2024-03-01 Tag: flags: (if any) System Information: System name: Linux Node name: nixos Release: 6.8.0 Version: #1-NixOS SMP PREEMPT_DYNAMIC Sun Mar 10 20:38:09 UTC 2024 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240312.cfd86f9" 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_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: hy3 by outfoxxed ver 0.1 ```

Bug or Regression?

Regression

Description

No idea what could've caused it, but after a reboot today I'm experiencing crashes all the time. I neither updated nor changed anything in my configuration.

There is no pattern to the crashes. They happen after 1-30 minutes of using Hyprland. I tried the following (in no particular order):

How to reproduce

.

Crash reports, logs, images, videos

There are no recent logs in ~/.cache/hyprland, and the logs in /tmp/hypr do not contain actual errors or crash reports, they stop at Using config ... line.

The error printed on the TTY contains something along the lines of Exiting due to channel error. Sorry for so little info, I will try to grab the whole output and attach it the next time it happens.

vaxerski commented 5 months ago

have you checked ~/.hyprland?

If there are no crash reports, this is not a crash but a regular, user-triggered exit.

Does this happen on the default config?

postsolar commented 5 months ago

have you checked ~/.hyprland?

I don't have this directory at all.

If there are no crash reports, this is not a crash but a regular, user-triggered exit.

Is it more of a terminology thing? Hyprland crashes with a freeze and visual defects, which doesn't look like normal exit at all.

Does this happen on the default config?

I'm now going to test that too, but in the meanwhile, here's what I get with Hyprland 2> hypr.log

log ``` DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring. Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring. warn: wayland.c:1425: unknown global removed: 0x0000002a err: wayland.c:1448: failed to read events from the Wayland socket: Broken pipe warn: server.c:72: client FD=7: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) err: wayland.c:1984: failed to flush wayland socket: Broken pipe DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring. Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring. *** stack smashing detected ***: terminated err: err: wayland.c:1448: wayland.c:1448: ExceptionHandler::GenerateDump cloned child ExceptionHandler::WaitForContinueSignal waiting for continue signal... 94228 ExceptionHandler::SendContinueSignalToChild sent continue signal to child failed to read events from the Wayland socketfailed to read events from the Wayland socket: Broken pipe : Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland displaywarn: : Broken pipeserver.c:72: client FD=7: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) warn: server.c:72: client FD=17: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) warn: server.c:72: client FD=26: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) warn: server.c:72: client FD=35: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) err: wayland.c:1984: failed to flush wayland socket: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) warn: server.c:72: client FD=44: terminal still alive err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe err: wayland.c:2019: failed to roundtrip Wayland display: Broken pipe warn: terminal.c:1821: slave exited with signal 15 (Terminated) err: wayland.c:1984: failed to flush wayland socket: Broken pipe Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. Exiting due to channel error. ```
vaxerski commented 5 months ago

DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions DRI driver not from this Mesa build ('24.0.2' vs '24.0.1') failed to bind extensions

That's definitely bad.

postsolar commented 5 months ago

These lines are coming immediately after the launch, and then Hyprland can run fine for anywhere between a few minutes and an hour so before crashing again.

My nvidia card is GeForce 940MX and the driver version is 550.54.14, and it's on an optimus laptop, with Intel being the iGPU. NixOS is currently configured in offload mode. I currently don't set any graphics-related env vars in my Hyprland config.

Currently running with almost no config (kept just the keybindings), will report when/if it happens again.

postsolar commented 5 months ago

Yeah same with almost empty config

DRI driver not from this Mesa build ('24.0.2' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.2' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.2' vs '24.0.1')
failed to bind extensions
Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring.
Environment variable $QT_QPA_PLATFORMTHEME not set, ignoring.
ExceptionHandler::GenerateDump cloned child ExceptionHandler::WaitForContinueSignal waiting for continue signal...
109826
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
postsolar commented 5 months ago

This time there appeared a crash report:

``` -------------------------------------------- Hyprland Crash Report -------------------------------------------- I hope you didn't have any unsaved progress. Hyprland received signal 6 (Aborted) Version: f115ba94d2ec6e093c94f425535b027bc570185e Tag: System info: System name: Linux Node name: nixos Release: 6.8.0 Version: #1-NixOS SMP PREEMPT_DYNAMIC Sun Mar 10 20:38:09 UTC 2024 GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240312.cfd86f9" 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_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" Backtrace: #0 | /etc/profiles/per-user/me/bin/Hyprland(_Z12getBacktracev+0x48) [0x583508] getBacktrace() ??:? #1 | /etc/profiles/per-user/me/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x6b5) [0x52bba5] CrashReporter::createAndSaveCrash(int) ??:? #2 | /etc/profiles/per-user/me/bin/Hyprland(_Z25handleUnrecoverableSignali+0x44) [0x4a31f4] handleUnrecoverableSignal(int) ??:? #3 | /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/libc.so.6(+0x3deb0) [0x7fdecae54eb0] ?? ??:0 #4 | /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/libc.so.6(+0x8d07c) [0x7fdecaea407c] ?? ??:0 #5 | /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/libc.so.6(raise+0x16) [0x7fdecae54e06] ?? ??:0 #6 | /etc/profiles/per-user/me/bin/Hyprland(_ZN15CHyprOpenGLImpl5beginEP8CMonitorRK7CRegionP12CFramebufferSt8optionalIS2_E+0x67c) [0x645c6c] CHyprOpenGLImpl::begin(CMonitor*, CRegion const&, CFramebuffer*, std::optional) ??:? #7 | /etc/profiles/per-user/me/bin/Hyprland(_ZN13CHyprRenderer11beginRenderEP8CMonitorR7CRegion11eRenderModeP10wlr_bufferP12CFramebuffer+0xbb) [0x65ec9b] CHyprRenderer::beginRender(CMonitor*, CRegion&, eRenderMode, wlr_buffer*, CFramebuffer*) ??:? #8 | /etc/profiles/per-user/me/bin/Hyprland(_ZN13CHyprRenderer13renderMonitorEP8CMonitor+0x4f7) [0x65f457] CHyprRenderer::renderMonitor(CMonitor*) ??:? #9 | /etc/profiles/per-user/me/bin/Hyprland(_ZN15CHyprWLListener4emitEPv+0x3b) [0x59a88b] CHyprWLListener::emit(void*) ??:? #10 | /etc/profiles/per-user/me/bin/Hyprland(_Z13handleWrappedP11wl_listenerPv+0x3f) [0x59c0ff] handleWrapped(wl_listener*, void*) ??:? #11 | /nix/store/1iixlnbx1rh7mrwdr5javns99cylgikr-wayland-1.22.0/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7c) [0x7fdecbbd1a0c] ?? ??:0 #12 | /nix/store/5fg55ggq9643iw9w5hlvw95ghl8zvxr7-wlroots-hyprland-2024-02-21_0cb091f/lib/libwlroots.so.13(+0x58248) [0x7fdecbafd248] ?? ??:0 #13 | /nix/store/0jpykszj3h71fmfajgfzmzr167qhak7p-libdrm-2.4.120/lib/libdrm.so.2(drmHandleEvent+0x127) [0x7fdecb920b17] ?? ??:0 #14 | /nix/store/5fg55ggq9643iw9w5hlvw95ghl8zvxr7-wlroots-hyprland-2024-02-21_0cb091f/lib/libwlroots.so.13(+0x59299) [0x7fdecbafe299] ?? ??:0 #15 | /nix/store/1iixlnbx1rh7mrwdr5javns99cylgikr-wayland-1.22.0/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fdecbbd38f2] ?? ??:0 #16 | /nix/store/1iixlnbx1rh7mrwdr5javns99cylgikr-wayland-1.22.0/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7fdecbbd1455] ?? ??:0 #17 | /etc/profiles/per-user/me/bin/Hyprland(main+0x7a2) [0x48e022] main ??:? #18 | /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/libc.so.6(+0x280ce) [0x7fdecae3f0ce] ?? ??:0 #19 | /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/libc.so.6(__libc_start_main+0x89) [0x7fdecae3f189] ?? ??:0 #20 | /etc/profiles/per-user/me/bin/Hyprland(_start+0x25) [0x4a3055] _start ??:? Log tail: [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] Searching for matching rules for firefox-aurora (title: • Discord | #general | Kakoune Community — Firefox Developer Edition) [LOG] Window 21d12d0 set title to • Discord | #general | Kakoune Community — Firefox Developer Edition [LOG] Searching for matching rules for firefox-aurora (title: Frequent crashes · Issue #5080 · hyprwm/Hyprland — Firefox Developer Edition) [LOG] Window 21d12d0 set title to Frequent crashes · Issue #5080 · hyprwm/Hyprland — Firefox Developer Edition [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] Searching for matching rules for firefox-aurora (title: Notifications — Firefox Developer Edition) [LOG] Window 21d12d0 set title to Notifications — Firefox Developer Edition [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] Searching for matching rules for firefox-aurora (title: Adds Nix flake for building on NixOS by t56k · Pull Request #56 · altsem/gitu — Firefox Developer Edition) [LOG] Window 21d12d0 set title to Adds Nix flake for building on NixOS by t56k · Pull Request #56 · altsem/gitu — Firefox Developer Edition [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] cursorImage request: surface 21cfae0 [LOG] Searching for matching rules for firefox-aurora (title: altsem/gitu: A TUI Git client inspired by Magit — Firefox Developer Edition) [LOG] Window 21d12d0 set title to altsem/gitu: A TUI Git client inspired by Magit — Firefox Developer Edition [CRITICAL] ========================================================================================== ASSERTION FAILED! Aborting, glGetGraphicsResetStatus returned GL_GUILTY_CONTEXT_RESET. Cannot continue until proper GPU reset handling is implemented. at: line 216 in OpenGL.cpp ```
vaxerski commented 5 months ago

yeah this is a problem on your end, possibly due to the mismatched drivers.

postsolar commented 5 months ago

If anyone comes here from google, I got it resolved by rebuilding Hyprland. It didn't work when I updated to 0.36 because that did not involve a full rebuild.