Hyprland: Unrecoverable freeze after clicking login on Thorium/ interacting with Steam

Hyprland Version

System/Version info
Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47  (props: bump ver to 0.35.0).
Date: Mon Feb 5 01:59:02 2024
Tag: v0.35.0

flags: (if any)


System Information:
System name: Linux
Node name: mechrevo
Release: 6.7.6-arch1-2
Version: #1 SMP PREEMPT_DYNAMIC Thu, 29 Feb 2024 19:08:51 +0000


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] [10de:28a0] (rev a1) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:


Bug or Regression?

Bug

Description

When clicking sync data button on thorium browser everything freezes, no crash log as hyprland loops in some error, this is some parts I copied from stdout running hyprland inside xfce.

Note this has to be done after setting thorium into floating mode as o.w. I can’t even click the sync button as the window shakes a lot.

image

How to reproduce

Described above

Crash reports, logs, images, videos

[6524:6524:0302/190015.662044:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[6524:6524:0302/190016.089949:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[6524:6524:0302/190017.843953:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[6527:6535:0302/190031.589150:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190031.651857:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190033.645515:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190048.461478:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190053.139648:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190056.017290:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190056.074526:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190107.862282:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190116.677431:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190119.593279:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190139.013546:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190153.305101:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190155.400335:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190232.566210:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190232.634164:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190234.062521:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190234.123937:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190236.350822:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190236.429338:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101
[6527:6535:0302/190316.931032:ERROR:ssl_client_socket_impl.cc(974)] handshake failed; returned -1, SSL error code 1, net_error -101

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 31 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I’m also observing this issue with Steam, and it hangs Hyprland in a way that doesn’t appear to be recoverable. I have additionally noticed that as soon as the hang happens, my case fans ramp up significantly, so I can only assume there’s some kind of death loop being triggered (I’ve waited up to a minute or so and nothing seems to change or self-resolve). Running Steam with the -cef-disable-gpu option seems to help only slightly (reduce the likelihood of a hang). I do have the stayfocused Steam window rule mentioned above in my config.

Things that seem to trigger it:

  • Trying to use the mouse to click+drag a Steam window out of a group (seems to be guaranteed hang).
  • Hovering over any UI element that pops up a floating menu or similar (less than guaranteed, but still somewhat reliable with a few seconds of fiddling).
  • Very rarely, simply interacting with a Steam window at all; I had one hang happen while typing a message to a friend.

One other odd behavior I’ve observed only since this issue began is that on Steam startup, the main app window freaks out and rapidly “teleports” between my two displays before eventually settling down. The friends list also likes to spawn either in the wrong location or with 0 (or close to) width and height on occasion, but this is inconsistent. Usually I just don’t see it at all. I do have window rules to position the friends list, so they could be to blame, but I should mention that they were working as expected prior to this issue.

I checked the Steam for Linux issues and based on what’s been posted there recently, it does appear that this is a somewhat problematic release for them, and these aren’t isolated issues. I think the value of investigating from the Hypr side is that there’s an opportunity to increase overall stability if we can find a cause and resolution; ideally, one misbehaving app shouldn’t be able to bring down the entire compositor. As far as I know, there is no real way to control when or if Steam self-updates, so time probably isn’t on our side if we want to try and catch this happening with logging or instrumentation running.

I’m willing to do experimentation while collecting logs, but I’ll need some guidance on what specifically to do that won’t suffer destruction on a forced reboot due to /tmp being cleared. I don’t use a login manager at the moment, just manually run Hyprland at login, if that matters.

Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47  (props: bump ver to 0.35.0).
Date: Mon Feb 5 01:59:02 2024
Tag: v0.35.0

flags: (if any)


System Information:
System name: Linux
Node name: cube
Release: 6.7.6-arch1-2
Version: #1 SMP PREEMPT_DYNAMIC Thu, 29 Feb 2024 19:08:51 +0000


GPU information: 
0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c4) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Also now experiencing this after a update a few days or so ago, with Steam even as a tiled window, and with these window rules which are unfortunately required to make Steam’s dropdowns somewhat usable. Simply hovering over the dropdowns at the top here can cause Hyprland to freeze and never recover; image

Running Hyprland through SDDM, unable to get any logs as once frozen Hyprland doesn’t respond to any quit dispatch and I have to power off my computer with the button clearing /tmp. If there’s a way to set the log directory to a persistent location that I’m unaware of, let me know and I’ll try again to grab them.

I don’t care about the latter, stop using x11 launchers. 😃

I will ignore your post as it starts with “0.35” which is very old.

This issue freezes the GUI only. I reproduced this via Steam and my UI was stuck, however for example an audio stream from Youtube video continued to play.

To share the log, you need add this block to your hyprland.conf:

debug {
     disable_time = false
     enable_stdout_logs = true
}

and then restart the Hyprland session: $ Hyprland > ~/hyprland_session.log

Output: hypr.log

Will give it a shot tomorrow, just remembered I need to be up in 4 hours 😃 Thanks for all the help so far.

Guess we agree this is probably not Nvidia related as it’s reproduced both on AMD and Nvidia.

I just checked it out on hyprland-git v0.36.0-25-g7ce781e8, this issue persists.


I may reproduce this randomly with steam as well. Especially when I set

windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

there’s a high chance to trigger with steam.