hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

[NVIDIA] hyprlock crashing when waking up from suspend

Open Imads608 opened this issue 6 months ago • 11 comments

Regression?

Yes

Hyprlock Info and Version

Hyprlock Version Hyprlock version 0.8.2-1

Hyprlock config
#! Hyprlock Boilerplate Configuration File

#  Hyprlock default configuration file handler
$BACKGROUND_PATH = $XDG_CACHE_HOME/hyde/wall.set.png
$HYPRLOCK_BACKGROUND = $XDG_CACHE_HOME/hyde/wallpapers/hyprlock.png
$SPLASH_CMD = hyprlock.sh --mpris || hyprctl splash
$MPRIS_TEXT = hyprlock.sh --mpris
$MPRIS_IMAGE = $XDG_CACHE_HOME/hyde/landing/mpris.png
$PROFILE_IMAGE = $XDG_CACHE_HOME/hyde/landing/profile.jpg
$GREET_TEXT =echo "Good $(date +%H | awk '{if ($1 < 12) print "Morning  "; else if ($1 < 18) print "Afternoon  "; else print "Evening  "}')"
$CAVA_CMD= { [ -f /tmp/hyprlock-cava ] && tail -n 1 /tmp/hyprlock-cava 2>/dev/null ;}  ||  { hyprctl dispatch exec "hyprlock.sh cava  && rm /tmp/hyprlock-cava" ;} 
$WEATHER_CMD = echo "<b>Feels like<big> $(curl -s 'wttr.in?format=%t' | tr -d '+') </big></b>"
$KEYBOARD_LAYOUT = grep -m 1 "$(hyprctl -j devices | jq -r '.keyboards[] | select(.main == true) | .active_keymap')" /usr/share/X11/xkb/rules/base.lst | awk  '{print $1}'
$BATTERY_ICON = battery.sh icon

# hyprlang noerror true
# Source users custom hyprlock layout
source = $XDG_CONFIG_HOME/hypr/hyde.conf #
# hyprlang noerror false


# See the file first to see the equivalent colors
source = $XDG_CONFIG_HOME/hypr/themes/colors.conf

general{
    fractional_scaling=1
    # immediate_render=true
    # grace = true
}

background {
    color = $wallbash_pry1_rgba
}

label {
    text = cmd[update:86400000] font.sh resolve "$LAYOUT_PATH" & disown
    position = 50%, -20%
    font_size = 20
    valign = top
}


# Source Layouts
hyprlang noerror true
source = $LAYOUT_PATH
hyprlang noerror false

Compositor Info and Version

System/Version info
Hyprland 0.49.0 build from branch  at commit 9958d297641b5c84dcff93f9039d80a5ad37ab00  (version: bump to 0.49.0).
Date: Thu May 8 20:15:18 2025
Tag: v0.49.0, commits: 6098
built against:
 aquamarine 0.8.0
 hyprlang 0.6.3
 hyprutils 0.7.1
 hyprcursor 0.1.12
 hyprgraphics 0.1.3


no flags were set


System Information:
System name: Linux
Node name: neotokyo
Release: 6.12.31-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Thu, 29 May 2025 09:39:59 +0000


GPU information: 
08:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070 SUPER] [10de:2783] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  570.153.02  Tue May 13 16:34:43 UTC 2025


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:

Description

hyprlock seems to crash frequently when waking up from suspend. Image

Followed the instructions, but only doing a reboot gets me back into Hyprland.

This did not happen to me back in version 0.6.2-3.

Moreover, the error seems to be tied to xdg-desktop-portal as there is a segfault every time the crash happens

Image

Specs: OS: Arch Linux CPU: AMD Ryzen 7 57003XD GPU: NVIDIA GeForce RTX 4070 SUPER

How to reproduce

Let me know if there are some logs I can provide

Crash reports, logs, images, videos

No response

Imads608 avatar Jun 04 '25 03:06 Imads608

Adding crash report:

[LOG] Old rlimit: soft -> 1024, hard -> 524288
[LOG] New rlimit: soft -> 524288, hard -> 524288
[LOG] Creating the EventLoopManager!
[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] Creating the AnimationManager!
[LOG] Creating the DynamicPermissionManager!
[LOG] Creating the ConfigManager!
[LOG] Using config: /home/imad/.config/hypr/hyprland.conf
[LOG] Warning: config descriptions have 286 entries, but there are 288 config values. This should fail tests!!
[INFO] !!!!HEY YOU, YES YOU!!!!: further logs to stdout / logfile are disabled by default. BEFORE SENDING THIS LOG, ENABLE THEM. Use debug:disable_logs = false to do so: https://wiki.hyprland.org/Configuring/Variables/#debug
[LOG] Creating the CHyprError!
[LOG] Creating the LayoutManager!
[LOG] Creating the TokenManager!
[LOG] [hookSystem] New hook event registered: preConfigReload
[LOG] Using config: /home/imad/.config/hypr/hyprland.conf
[LOG] Disabling stdout logs! Check the log for further logs.
[LOG] Creating the PointerManager!
[LOG] Creating the EventManager!
[LOG] [AQ] Creating an Aquamarine backend!
[LOG] [AQ] [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[LOG] [AQ] [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[LOG] [AQ] [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[LOG] [AQ] drm: Enumerated device /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0
[ERR] [AQ] [libseat] [libseat/backend/logind.c:124] Could not take device: Device or resource busy
[ERR] [AQ] libseat: Couldn't open device at /dev/dri/card0
[ERR] [AQ] drm: Skipping device /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0, not a KMS device
[ERR] [AQ] drm: Found no gpus to use, cannot continue
[ERR] [AQ] DRM Backend failed
[LOG] [AQ] Starting the Aquamarine backend!
[LOG] [AQ] Starting the Wayland backend!
[ERR] [AQ] Wayland backend cannot start: wl_display_connect failed (is a wayland compositor running?)
[ERR] [AQ] Requested backend (wayland) could not start, enabling fallbacks
[ERR] [AQ] Implementation wayland failed, erasing.
[CRITICAL] [AQ] Cannot open backend: no allocator available
[CRITICAL] m_pAqBackend couldn't start! This usually means aquamarine could not find a GPU or encountered some issues. Make sure you're running either on a tty or on a Wayland session, NOT an X11 one.
[CRITICAL] Critical error thrown: CBackend::create() failed!

Imads608 avatar Jun 08 '25 16:06 Imads608

I'm also experiencing this issue. Based on the logs it seems more like general wayland issue.

Together with some other recent regressions on hyprland it got so bad that it got me to use different compositor...

lrodziewicz avatar Jun 27 '25 08:06 lrodziewicz

I have noticed that waiting for suspend and then trying again might show the lockscreen again.

0xAozora avatar Jun 27 '25 19:06 0xAozora

I am also getting this but I am on an AMD graphics card. Another thing is that the tty in the top left corner says tty unknown when this happens to me, and it frequently happens when I leave my computer for a while, not just locking, suspending, and then releasing from suspend, it normally happens when I leave my computer overnight. I am also on vanilla HyDE just like @Imads608.

ethanrutt avatar Jul 02 '25 16:07 ethanrutt

For the nvidia issue havers, also check my latest comments on https://github.com/hyprwm/hyprlock/issues/695#issuecomment-3028605984. I suspect that both are essentially the same issue.

Please though if you can repro the crash, do me a favour and compile hyprlock with debug info and send a backtrace if you can do that.

PointerDilemma avatar Jul 03 '25 07:07 PointerDilemma

@PaideiaDilemma, sure! Is it listed somewhere in the wiki/docs?

Imads608 avatar Jul 05 '25 06:07 Imads608

@PaideiaDilemma, sure! Is it listed somewhere in the wiki/docs?

https://github.com/hyprwm/hyprlock/issues/695#issuecomment-2754656108

pvlkov avatar Jul 06 '25 19:07 pvlkov

I'm experiencing the same issue, but with an AMD GPU and sometimes it happens when the display is waking up from sleep but the OS is running (not suspended).

MegaMexican avatar Aug 05 '25 21:08 MegaMexican

Same issue here but not sure whether it's hyprlock's problem because someone mentioned the same problem in swaylock's issues. I'm using Niri and RX780M. There are always a lot of core dump messages in journalctl about hyprlock and I usually just ignore them. But today I returned to my computer with a fully red screen with only my cursor centered. I had to restart the entire session to restore and found hyprlock core dumped again at that time after check journalctl.

Dai-JiaLin avatar Sep 22 '25 09:09 Dai-JiaLin

For the nvidia issue havers, also check my latest comments on #695 (comment). I suspect that both are essentially the same issue.

Please though if you can repro the crash, do me a favour and compile hyprlock with debug info and send a backtrace if you can do that.

I'm not sure but I think this might be related. See my comment here: https://github.com/hyprwm/Hyprland/issues/9194#issuecomment-3364732701

logrusx avatar Oct 03 '25 08:10 logrusx

This bug still happens for me :(. I'd gladly provide a backtrace, but I couldn't find anything on how to build hyprlock with debug info with Nix

MrSom3body avatar Oct 05 '25 20:10 MrSom3body