This issue was logged yesterday with hyprwm. Evidently it results from the ArchLinux update of the sdbus-cpp 2.3.0-1 package yesterday.
opened 12:23PM - 18 May 26 UTC
### Description
`hypridle` crashes with a Segmentation Fault (`code=dumped, sig… nal=SEGV`) immediately after printing `[LOG] wayland done, registering dbus`. This happens when running the binary directly from the terminal or via systemd.
### System Information
- **OS**: Arch Linux
- **Hypridle version**: 0.1.7-9 (installed via pacman from official `extra` repo)
- **Hyprland version**: 0.55.2-1 (installed via pacman from offical `extra` repo)
- **GPU**: NVIDIA (HP Victus 16 Laptop)
### Steps to Reproduce
1. Open any terminal inside a Hyprland session.
2. Run `hypridle`.
3. The process immediately terminates with `zsh: segmentation fault (core dumped) hypridle`.
### Log / Stack Trace
Here is the log output from `journalctl --user -u hypridle -n 50 --no-pager`:
```text
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwlr_virtual_pointer_manager_v1 v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwlr_output_manager_v1 v4
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: org_kde_kwin_server_decoration_manager v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_focus_grab_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwp_tablet_manager_v2 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwlr_layer_shell_v1 v5
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_presentation v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: xdg_wm_base v7
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwlr_data_control_manager_v1 v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwp_primary_selection_device_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: xwayland_shell_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_toplevel_mapping_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_global_shortcuts_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: xdg_wm_dialog_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_single_pixel_buffer_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_security_context_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_ctm_control_manager_v1 v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_surface_manager_v1 v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_content_type_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: xdg_toplevel_tag_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: xdg_system_bell_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: ext_workspace_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: ext_data_control_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_pointer_warp_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_fifo_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zxdg_exporter_v2 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zxdg_importer_v2 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_commit_timing_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwlr_screencopy_manager_v1 v3
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: hyprland_toplevel_export_manager_v1 v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: ext_output_image_capture_source_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: ext_foreign_toplevel_image_capture_source_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: ext_image_copy_capture_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_color_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_drm_lease_device_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_linux_drm_syncobj_manager_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wp_drm_lease_device_v1 v1
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wl_drm v2
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: zwp_linux_dmabuf_v1 v5
May 18 18:57:52 victus16 hypridle[2795]: [LOG] | got iface: wl_output v4
May 18 18:57:52 victus16 hypridle[2795]: [LOG] found 5 rules
May 18 18:57:52 victus16 hypridle[2795]: [LOG] wayland done, registering dbus
May 18 18:57:52 victus16 hypridle[2795]: [LOG] Sleep inhibition enabled - inhibiting until the wayland session gets locked
May 18 18:57:52 victus16 systemd-coredump[2806]: [🡕] Process 2795 (hypridle) of user 1000 dumped core.
Stack trace of thread 2795:
#0 0x00007f4613c999b4 _ZN5sdbus8internal5Proxy21registerSignalHandlerERKNS_13InterfaceNameERKNS_10MemberNameESt8functionIFvNS_6SignalEEE (libsdbus-c++.so.2 + 0x399b4)
#1 0x000055ad67fbc296 n/a (/usr/bin/hypridle + 0x23296)
#2 0x000055ad67fc4c86 n/a (/usr/bin/hypridle + 0x2bc86)
#3 0x000055ad67fa553b n/a (/usr/bin/hypridle + 0xc53b)
#4 0x00007f4613427741 n/a (libc.so.6 + 0x27741)
#5 0x00007f4613427879 __libc_start_main (libc.so.6 + 0x27879)
#6 0x000055ad67fa6655 n/a (/usr/bin/hypridle + 0xd655)
ELF object binary architecture: AMD x86-64
May 18 18:57:52 victus16 systemd[1565]: hypridle.service: Main process exited, code=dumped, status=11/SEGV
May 18 18:57:52 victus16 systemd[1565]: hypridle.service: Failed with result 'core-dump'.
May 18 18:57:52 victus16 systemd[1565]: hypridle.service: Scheduled restart job, restart counter is at 5.
May 18 18:57:52 victus16 systemd[1565]: hypridle.service: Start request repeated too quickly.
May 18 18:57:52 victus16 systemd[1565]: hypridle.service: Failed with result 'start-limit-hit'.
May 18 18:57:52 victus16 systemd[1565]: Failed to start Hyprland's idle daemon.
```
Is there something CachyOS can do to recompile hypridle with the older sdbus-cpp, or must we wait for ArchLinux to downstream the fix.
Within the GitHub discussion, users are recompiling hypridle themselves, but I’m new to CachyOS and have never done this before.
Apologies for not including log files. I thought it to be redundant given that the GitHub posting is exactly what I’m experiencing since yesterday.
Kind regards,
Impeccable Tuna
Here’s my journalctl dump which matches the reported issue on GitHub:
May 19 15:05:52 cachyb16 hypridle[111457]: [LOG] wayland done, registering dbus
May 19 15:05:52 cachyb16 hypridle[111457]: [LOG] Sleep inhibition enabled - inhibiting until the wayland session gets locked
May 19 15:05:52 cachyb16 systemd-coredump[111459]: Process 111457 (hypridle) of user 1000 dumped core.
Stack trace of thread 111457:
#0 0x00007f662bb570a5 _ZN5sdbus8internal5Proxy21registerSignalHandlerERKNS_13InterfaceNameERKNS_10MemberNameESt8functionIFvNS_6SignalEEE (libsdbus-c++.so.2 + 0x3b0a5)
#1 0x000055c3189eb701 n/a (/usr/bin/hypridle + 0x24701)
#2 0x000055c3189f4c9f n/a (/usr/bin/hypridle + 0x2dc9f)
#3 0x000055c3189d4340 n/a (/usr/bin/hypridle + 0xd340)
#4 0x00007f662b227c8e n/a (libc.so.6 + 0x27c8e)
#5 0x00007f662b227dcb __libc_start_main (libc.so.6 + 0x27dcb)
#6 0x000055c3189d57a5 n/a (/usr/bin/hypridle + 0xe7a5)
ELF object binary architecture: AMD x86-64
May 19 15:05:52 cachyb16 systemd[4004]: hypridle.service: Main process exited, code=dumped, status=11/SEGV
May 19 15:05:52 cachyb16 systemd[4004]: hypridle.service: Failed with result ‘core-dump’.
I’ve heard that the ArchLinux community expects a fix by later today.
I’ve figured out how to re-compile hypridle on my own fixing the issue whilst waiting for the official fixed binary.
With a working system snapshot to restore my system config if it all went horribly wrong, I did the following:
sudo pacman -S hyprland-protocols
sudo pacman -S cmake
git clone https://github.com/hyprwm/hypridle.git\ncd hypridle
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake –build build –config Release -j$(nproc)
sudo cmake –install build
sudo reboot now
After the reboot, screen locking is again working in Hyprland.
This is the first time I’ve ever built from source to fix an issue. Very cool.
I’ll remove my manually built binary as soon as I see the official ArchLinux binary published to the repos.
Linux is my new favourite toy!
Several people have offered more concise commands and approaches to recompiling hypridle at the original GitHub posting of the bug at hypridle segfaults on startup · Issue #200 · hyprwm/hypridle · GitHub than the commands I shared above.
And apparently, this is the proper way to do it:
The developer has released the fixed version 30 minutes ago. I imagine the updated code will find its way into the ArchLinux repos shortly.