If i disconnect my egpu from laptop or just turn it off while external monitor is connected (via DP / HDMI) hyprland crashes always. To avoid it i need to first unplug the DP/HDMI cable and only then unplug / poweroff eGPU. http://0x0.st/8kkw.txt ← crash report, didn’t find how to attach a file here. Long living bug, but writing this topic after updating to v0.50 and testing it again. Also all other packages ie aquamarine-git hyprlang-git were preemptively updated just in case it fixes this problem, but it didn’t.
Crash is likely inside aquamarine, would you be able to build aquamarine and hyprland in debug and then get a debug stacktrace?
Here you go, sir:
#0 __GI_abort () at abort.c:91
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {18446744073709551615, 0 <repeats 15 times>}}, sa_flags = 0, sa_restorer = 0x0}
#1 0x0000559f0ab0bad6 in handleUnrecoverableSignal (sig=11) at /home/earthian/utils/hyprland/src/Compositor.cpp:112
#2 0x00007f71d524def0 in <signal handler called> () at /usr/lib/libc.so.6
#3 0x00007f71cf468e24 in ??? () at /usr/lib/libgallium-25.2.0-devel.so
#4 0x00007f71cef251e6 in ??? () at /usr/lib/libgallium-25.2.0-devel.so
#5 0x00007f71cef6b09c in ??? () at /usr/lib/libgallium-25.2.0-devel.so
#6 0x00007f71d52a57eb in start_thread (arg=<optimized out>) at pthread_create.c:448
ret = <optimized out>
pd = <optimized out>
out = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140125701826240, -6060664339214197794, 140125701826240, 140722797727088, 22, 140722797727351, -6060664339239363618, -6060570846272250914}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#7 0x00007f71d532918c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Did build both aquamarine and latest hyprland commit with debug option.
I have no clue then - literally the driver itself crashed
Would using GL_DEBUG=verbose; MESA_DEBUG=1 and maybe some other environment variables when logging help with diagnosis?
It’s very rare for Gallium to be the source of crashes, even if it appears in the stack trace if I recall correctly.
Perhaps something that will cause issues (but not immediately) is sent from Aquamarine?
That could be the case - but without a clear reason provided, it’s like searching for a needle in a haystack
and with these variables whenever i crash hyprland where to look for stacktrace ? by generating the debug stacktrace for hyprland ?
check this: Crashes and Bugs – Hyprland Wiki