Waybar: crashing randomly on hyprland

hi, at some random point, i cant quite make out what causes it, waybar just crashes.

this is what the terminal spits out at me whenever it does:

[2023-08-26 15:35:24.941] [error] memory: Can't open /proc/meminfo
[2023-08-26 15:35:24.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:35:34.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:35:44.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:35:54.941] [error] memory: Can't open /proc/meminfo
[2023-08-26 15:35:54.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:04.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:14.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:24.941] [error] memory: Can't open /proc/meminfo
[2023-08-26 15:36:24.970] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:34.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:44.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:36:54.941] [error] memory: Can't open /proc/meminfo
[2023-08-26 15:36:54.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:37:04.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:37:14.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:37:24.941] [error] memory: Can't open /proc/meminfo
[2023-08-26 15:37:24.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:37:32.426] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:34.708] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:34.971] [error] cpu: Can't open /proc/stat
[2023-08-26 15:37:36.145] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:36.148] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:36.243] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:41.370] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:41.972] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:41.987] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:42.977] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:42.980] [error] Hyprland IPC: Couldn't open a socket (1)
[2023-08-26 15:37:44.971] [error] cpu: Can't open /proc/stat
Gdk-Message: 15:37:50.743: Error reading events from display: Invalid argument

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

@qube-03 for me it seems this issue was resolved by upgrading hyprland to version 0.29.0-1 does it still crash on your side? and if so, did you upgrade to 0.29.0-1 already?

Sadly just crashed again while working in FreeCad

[2023-09-09 21:40:31.610] [error] Hyprland IPC: Couldn't write (4)
waybar: ../waybar-hyprland-git/src/modules/hyprland/window.cpp:139: void waybar::modules::hyprland::Window::queryActiveWorkspace(): Assertion `clients.isArray()' failed.
[1]    9634 IOT instruction (core dumped)  waybar

I have got the same problem.

[2023-08-26 20:31:51.226] [error] Hyprland IPC: Couldn't write (4)
waybar: ../waybar-hyprland-git/src/modules/hyprland/window.cpp:106: waybar::modules::hyprland::Window::Workspace waybar::modules::hyprland::Window::getActiveWorkspace(const std::string&): Assertion `workspaces.isArray()' failed.
[1]    24250 IOT instruction (core dumped)  waybar
  1. Config: waybar_config.zip
  2. Waybar version: Waybar v0.9.22-9-gb7a527b1 (branch ‘master’)
  3. normally during startup (the line from my hyprland.conf exec-once = waybar & nextcloud). However after the first crash is tarted it in the terminal with the command waybar. The log entry above is from this terminal

I’m sadly also not sure, what happened to cause this issue. It appeared three times already, if I see a pattern, I will report.

Maybe one Idea, it could correlate to an update of hyprland that I did a few days ago. @qube-03 what Hyprland version do you use? I’m running 0.28.0-1 if I’m not mistaken.