-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crashing randomly on hyprland #2433
Comments
|
I have got the same problem.
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. |
config: https://notebin.de/?ad359dbf9d7316bd#CUQPViUcodbaFYVoo63FmnEXScgqgFRkySZSWfCKo5xt my hyprland version is 0.28.0-1 from artix world repository |
I don't know why, but it crashes a lot while I use DigiKam and not as much (maybe even never, not sure) when surfing in firefox (even though DigiKam was open on another Desktop) |
@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
|
Using Hyprland on Artix. Waybar v0.9.22 and Hyprland 0.29.1-1 installed from Artix repo (so built without systemd). Waybar crashes quite randomly, been going on for a few weeks or so, almost always when laptop wakes again after sleep: [2023-09-23 14:42:29.773] [error] Hyprland IPC: Couldn't write (4)
waybar: ../src/modules/hyprland/window.cpp:106: waybar::modules::hyprland::Window::Workspace waybar::modules::hyprland::Window::getActiveWorkspace(const std::string&): Assertion `workspaces.isArray()' failed.
zsh: IOT instruction waybar Starting it via exec-once in a script, the relevant bit: pgrep -x waybar > /dev/null || { waybar & } waybar config quite messy, but it happens with default config as well. I don't think it's a config issue: {
"layer": "top", // Waybar at top layer
"height": 31, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["weatherbar", "pulseaudio", "network", "backlight", "keyboard-state", "battery", "battery#bat2", "tray"],
// Modules configuration
"hyprland/window": {
"format": "{}",
"separate-outputs": true
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"8": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"keyboard-state": {
"numlock": false,
"capslock": false,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"hyprland/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"hyprland/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
// "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
"format": "{:%H:%M | %a %d %B}"
// "format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}
}
|
Temporary workaround is to start waybar like this: #!/usr/bin/env bash
until waybar; do
echo "Waybar crashed with exit code $?. Respawning..." >&2
done |
I have the exact same issue (same error message when crashing; workspaces.isArray). waybar 0.9.22-1, hyprland 0.29.1-1 on arch linux 6.5.4-zen2-1-zen . Happens sporadically every few hours when using librewolf or brave together with ferdium, Thunderbird, Firefox and kitty (I always have these applications open in parallel).
|
@145818 Do you still have this issue? I'm using artix on my laptop and its working perfectly. |
For other reasons than this I switched to sway and is using their default bar so I don't know if it's still an issue or not. From my side this can be closed if nobody else is experiencing this. |
Hello guys, Any idea? |
@gberenyi Can you post your waybar config? |
I've been getting the same error as well.
I haven't gotten this on my desktop, only my laptop. I wonder if this some kind of performance or timeout issue. Here is my config: {
"height": 25,
"layer": "top",
"modules-left": [
"sway/workspaces",
"hyprland/workspaces",
"sway/mode",
"hyprland/submap",
"custom/media",
"sway/window",
"hyprland/window"
],
"modules-center": [
"clock",
"custom/notification"
],
"modules-right": [
"custom/nvchecker",
// "custom/checkupdates",
"idle_inhibitor",
"pulseaudio",
"network",
"cpu",
"memory",
"temperature",
"backlight",
"battery",
"tray"
],
"sway/workspaces": {
"format": "{name}"
},
"wlr/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十",
"11": "-",
"12": "="
},
"sort-by-number": true,
"on-click": "activate"
},
"hyprland/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十",
"11": "-",
"12": "="
},
"sort-by-number": true,
"on-click": "activate",
"on-scroll-up": "hyprctl dispatch workspace m+1",
"on-scroll-down": "hyprctl dispatch workspace m-1"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/window": {
"format": " {}",
"rewrite": {
"(.*) - YouTube — Mozilla Firefox$": " $1",
// "^YouTube — Mozilla Firefox$": " $1",
"(.*) — Mozilla Firefox$": " $1",
"^Mozilla Firefox$": "",
"(.*) — Tor Browser$": "🌐 $1",
"^Tor Browser$": "🌐",
"(.*) - Chromium$": " $1",
"^Zoom Meeting$": " ",
"(.*) - vim": " $1",
"(.*) - zsh": " [$1]"
}
},
"hyprland/window": {
"format": " {}",
"rewrite": {
"(.*) - YouTube — Mozilla Firefox$": " $1",
// "^YouTube — Mozilla Firefox$": " $1",
"(.*) — Mozilla Firefox$": " $1",
"^Mozilla Firefox$": "",
"(.*) — Tor Browser$": "🌐 $1",
"^Tor Browser$": "🌐",
"(.*) - Chromium$": " $1",
"^Zoom Meeting$": " ",
"(.*) - vim": " $1",
"(.*) - zsh": " [$1]"
}
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"custom/checkupdates": {
"exec-on-event": false,
"interval": 60,
"exec": "wc -l /tmp/checkupdates-systemd /tmp/checkupdates-aur-systemd /tmp/aurutils-systemd | tail -n1 | awk '{print $1}'",
"on-click": "notify-send -t 5000 Repos \"$(rg -v 'haskell|kodi|texlive|perl' /tmp/checkupdates-systemd)$([ -n \"$(rg haskell /tmp/checkupdates-systemd)\" ] && echo \"\nhaskell stuff\")$([ -n \"$(rg kodi /tmp/checkupdates-systemd)\" ] && echo \"\nkodi stuff\")$([ -n \"$(rg texlive /tmp/checkupdates-systemd)\" ] && echo \"\ntexlive stuff\")$([ -n \"$(rg perl /tmp/checkupdates-systemd)\" ] && echo \"\nperl stuff\")\" & notify-send -t 5000 AUR \"$(cat /tmp/aurutils-systemd)\"& notify-send -t 5000 PARU \"$(cat /tmp/checkupdates-aur-systemd)\"&",
"on-click-right": "alacritty --hold -e ~/.scripts/updateAUR",
"on-click-middle": "alacritty --hold -e sudo pacmatic -Syu",
"format": " Repo: {}"
},
"custom/nvchecker": {
"exec-on-event": false,
"interval": 60,
"exec": "nvcmp 2> /dev/null | wc -l",
"on-click": "notify-send \"New Version Checker\" \"$(nvcmp)\"",
"format": " Nv: {}"
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": ""
},
"return-type": "json",
"exec-if": "command -V swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"interval": 1,
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H:%M:%S}",
// "format": "{:%X}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"interval": 1,
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"interval": 1,
"format": "{}% "
},
"temperature": {
"interval": 1,
"hwmon-path": "/tmp/hwmon-path",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": [
"",
"",
""
]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": [
"",
""
],
"on-scroll-up": "light -U 5",
"on-scroll-down": "light -A 5"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": [
"",
"",
"",
"",
""
]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol",
"on-click-right": "qpwgraph",
"on-click-middle": "easyeffects"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}
}
// vim:ft=jsonc and my css: @import "/etc/xdg/waybar/style.css" /* layer(default) */;
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: "Quicksand", "Ubuntu Condensed", "Font Awesome 6 Free", "Font Awesome 6 Brands", "IPAexGothic", Helvetica, Arial, sans-serif;
}
window#waybar {
background-color: rgba(0, 0, 0, 0.7);
}
#workspaces button.active {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
} |
I can confirm that I am still getting this error, it happens most often when the overall CPU usage on the machine is very high. |
Might be fixed with #3215 |
Unfortunately, issue is not resolved.
config file attached. |
Can confirm, still occurs.
Related part of the config: "hyprland/window": {
"format": "{}",
"rewrite": {
"(.*)Librewolf(.*)": " ",
"(.*)Steam(.*)": "steam",
"(.*) - kitty": "> [$1]",
"(.*) - Thunar": "$1",
"(.*) - (.*) - (.*) - VSCodium": "$1[$2]",
"(.*) - VSCodium": "$1",
"(.*)Discord(.*)": "discord"
},
"separate-outputs": true
}, |
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:
The text was updated successfully, but these errors were encountered: