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
21.6k stars 902 forks source link

Random crashes at random intervals | Hyprland/Xwayland, not sure #3484

Open ArchUserCln opened 1 year ago

ArchUserCln commented 1 year ago

Hyprland Version

Hyprland, built from branch at commit 1b48642fd15c433c53876f1b933dcd46265caf8f dirty (). Tag: v0.30.0

Bug or Regression?

Bug

Description

Upon starting Hyprland nothing bad seems to occur, just after a certain amount of time it just crashes out of nowhere. I have no idea what I might have done wrong to cause this issue.

How to reproduce

Literally just start Hyprland / login to SDDM (which starts Hyprland).

I don't how how else to do it

Crash reports, logs, images, videos

hyprlandCrashReport3068.txt hyprlandConf.txt configWaybar.txt

systemctl -xb #hyprland dump

Oct 01 13:56:19 archlinux systemd-coredump[3974]: [🡕] Process 635 (Hyprland) of user 1000 dumped core.

                                                  Stack trace of thread 635:
                                                  #0  0x00007fbc33dbf83c n/a (libc.so.6 + 0x8e83c)
                                                  #1  0x00007fbc33d6f668 raise (libc.so.6 + 0x3e668)
                                                  #2  0x00007fbc33d574b8 abort (libc.so.6 + 0x264b8)
                                                  #3  0x0000563c3ad6a04d _Z25handleUnrecoverableSignali (Hyprland + 0xa104d)
                                                  #4  0x00007fbc33d6f710 n/a (libc.so.6 + 0x3e710)
                                                  #5  0x00007fbc33dbf83c n/a (libc.so.6 + 0x8e83c)
                                                  #6  0x00007fbc33d6f668 raise (libc.so.6 + 0x3e668)
                                                  #7  0x00007fbc33d574b8 abort (libc.so.6 + 0x264b8)
                                                  #8  0x00007fbc33d58390 n/a (libc.so.6 + 0x27390)
                                                  #9  0x00007fbc33e4fb4b __fortify_fail (libc.so.6 + 0x11eb4b)
                                                  #10 0x00007fbc33e4f642 __fdelt_chk (libc.so.6 + 0x11e642)
                                                  #11 0x0000563c3adf19a6 _Z13hyprCtlFDTickijPv (Hyprland + 0x1289a6)
                                                  #12 0x00007fbc34656ae2 wl_event_loop_dispatch (libwayland-server.so.0 + 0xbae2)
                                                  #13 0x00007fbc346572d7 wl_display_run (libwayland-server.so.0 + 0xc2d7)
                                                  #14 0x0000563c3ad54ea6 main (Hyprland + 0x8bea6)
                                                  #15 0x00007fbc33d58cd0 n/a (libc.so.6 + 0x27cd0)
                                                  #16 0x00007fbc33d58d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                  #17 0x0000563c3ad66a45 _start (Hyprland + 0x9da45)

                                                  Stack trace of thread 671:
                                                  #0  0x00007fbc33dba4ae n/a (libc.so.6 + 0x894ae)
                                                  #1  0x00007fbc33dbcd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                  #2  0x00007fbc30cc791c n/a (/usr/lib/dri/radeonsi_dri.so (deleted) + 0xc791c)
                                                  ELF object binary architecture: AMD x86-64
â–‘â–‘ Subject: Process 635 (Hyprland) dumped core
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
â–‘â–‘ Documentation: man:core(5)
â–‘â–‘ 
â–‘â–‘ Process 635 (Hyprland) crashed and dumped core.
â–‘â–‘ 
â–‘â–‘ This usually indicates a programming error in the crashing program and
â–‘â–‘ should be reported to its vendor as a bug.
Oct 01 13:56:19 archlinux systemd[1]: systemd-coredump@0-3973-0.service: Deactivated successfully.
â–‘â–‘ Subject: Unit succeeded
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
â–‘â–‘ 
â–‘â–‘ The unit systemd-coredump@0-3973-0.service has successfully entered the 'dead' state.
Oct 01 13:56:19 archlinux polkitd[653]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.21, object path /org/gnome/PolicyKit1/Authent>
Oct 01 13:56:19 archlinux sddm-helper[623]: [PAM] Closing session
Oct 01 13:56:19 archlinux sddm-helper[623]: pam_unix(sddm:session): session closed for user cln
Oct 01 13:56:19 archlinux sddm-helper[623]: [PAM] Ended.
Oct 01 13:56:19 archlinux sddm[503]: Auth: sddm-helper exited with 6
Oct 01 13:56:19 archlinux sddm[503]: Socket server stopping...
Oct 01 13:56:19 archlinux sddm[503]: Socket server stopped.
Oct 01 13:56:19 archlinux sddm[503]: Display server stopping...
Oct 01 13:56:19 archlinux sddm[503]: Display server stopped.
Oct 01 13:56:19 archlinux sddm[503]: Running display stop script  ("/usr/share/sddm/scripts/Xstop")
Oct 01 13:56:19 archlinux sddm[503]: Removing display SDDM::Display(0x55ac13c4a310) ...

Xwayland dump

Sep 29 16:36:58 archlinux systemd-coredump[81922]: [🡕] Process 54517 (Xwayland) of user 1000 dumped core.

                                                   Stack trace of thread 54517:
                                                   #0  0x00007f83dbb2d83c n/a (libc.so.6 + 0x8e83c)
                                                   #1  0x00007f83dbadd668 raise (libc.so.6 + 0x3e668)
                                                   #2  0x00007f83dbac54b8 abort (libc.so.6 + 0x264b8)
                                                   #3  0x0000563498f98b2d n/a (Xwayland + 0x169b2d)
                                                   #4  0x0000563498f98f0d n/a (Xwayland + 0x169f0d)
                                                   #5  0x0000563498e614f1 n/a (Xwayland + 0x324f1)
                                                   #6  0x00007f83dbac6cd0 n/a (libc.so.6 + 0x27cd0)
                                                   #7  0x00007f83dbac6d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                   #8  0x0000563498e61d85 n/a (Xwayland + 0x32d85)

                                                   Stack trace of thread 54523:
                                                   #0  0x00007f83dbb284ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f83dbb2ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f83c56c791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f83c571482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f83dbb2b9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f83dbbaf7cc n/a (libc.so.6 + 0x1107cc)

                                                   Stack trace of thread 54524:
                                                   #0  0x00007f83dbb284ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f83dbb2ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f83c56c791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f83c571482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f83dbb2b9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f83dbbaf7cc n/a (libc.so.6 + 0x1107cc)

                                                   Stack trace of thread 54522:
                                                   #0  0x00007f83dbb284ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f83dbb2ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f83c56c791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f83c571482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f83dbb2b9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f83dbbaf7cc n/a (libc.so.6 + 0x1107cc)
vaxerski commented 1 year ago

huh __fortify_fail, do you have a longer systemd log? it should print what went wrong. Xwayland is unrelated (it crashes cuz hl crashed) and the crash report is from a different session

ArchUserCln commented 1 year ago

The logs from journalctl -a -S "2023-10-01" -U "2023-10-02" can be found in the attachment below.

journalctl.txt

As of lately it has been more stable, but I haven't been on hyprland for more than an hour, so I'll keep an eye out for it. (if it does turn out to be fixed, it might have been an update to xdg-desktop-portal or smth else... I think, but I'll keep you updated)

ArchUserCln commented 1 year ago

I've used it for 4 hours now and no crashes, guessing that an update magically fixed it.

Not sure whether or not I should close the issue as I saw a post from someone else saying they are having a similar issue.

kiuKisas commented 1 year ago

Yes, I still have the problem on arch linux, with all my packages up to date, xdg-desktop-portal 1.18.0-2 and xdg-desktop-portal-hyprland-git-1:r261.e1f145d-4. Same issue with xdg-desktop-portal-hyprland-1.1.0-3 . I dunno if it's relavent , I used swaync-0.9.0-1 as a notification manager, when I switched back to sway after hl crashed, xdg-desktop-portal-hyprland was using a lot of cpu though, I had to kill it myself. Edit: Added my conf to my issue: https://github.com/hyprwm/Hyprland/issues/3489#issuecomment-1747572007

vaxerski commented 1 year ago

@kiuKisas can I get a crash report?

kiuKisas commented 1 year ago

Well, it crash again and I don't have any crashreport in ~/.hyprland/. I'll set my $XDG_CACHE_HOME var and let you know EDIT: https://github.com/hyprwm/Hyprland/issues/3504, I can't give you a crash report.. should I use a debug build or something ?

ArchUserCln commented 1 year ago

Seeing the reference to this issue, I have to note that most of the time I did not get a crash log from hyprland in ~/.hyprland when I was having the issue.

kiuKisas commented 1 year ago

I noticed that xdg-desktop-portal-hyprland consume 20% of my cpu all the time, but not at startup time, it come later.. not sure what trigger it.

kiuKisas commented 1 year ago

It seems to be fixed on my side

HarryHeres commented 1 year ago

Can confirm I'm experiencing the same crashing issue, but only if SDDM is installed... Also, xdg-desktop-portal-hyprland tends to use a bit much power

littleblack111 commented 1 month ago

https://github.com/hyprwm/Hyprland/issues/3799

also https://github.com/hyprwm/Hyprland/issues/7936

and for some reason, saving the config/hyprland reloading and do a keybind(e.g. open terminal) would crash xwayland too...