Crash, maybe related to drawing failure for widget, gtkmm, out of memory
bugmemoryhyprlandcustomclockcava
## What happened
Waybar crashes or freezes, at random times.
## What was expected
Waybar to be stable, as it was. The update to appears to have changed something.
## Step to reproduce
This is where it gets tricky.
Waybar freezes at times. I can more or less reproduce it when I play a video in a workspace (using Hyprland) and switch to other workspaces while the video is playing. Video can be Zoom or YouTube.
At other times, it just freezes.
In the logs, I cannot see anything unusual:
```log
[2026-04-21 09:18:18.272] [info] Using configuration file /home/yg/.config/waybar/config
[2026-04-21 09:18:18.272] [info] Including resource file: $HOME/.config/waybar/Modules
[2026-04-21 09:18:18.272] [info] Including resource file: $HOME/.config/waybar/ModulesWorkspaces
[2026-04-21 09:18:18.273] [info] Including resource file: $HOME/.config/waybar/ModulesCustom
[2026-04-21 09:18:18.273] [info] Including resource file: $HOME/.config/waybar/ModulesGroups
[2026-04-21 09:18:18.273] [info] Including resource file: $HOME/.config/waybar/UserModules
[2026-04-21 09:18:18.276] [info] Discovered appearance 'dark'
[2026-04-21 09:18:18.305] [info] Using CSS file /home/yg/.config/waybar/style.css
[2026-04-21 09:18:18.313] [warning] Failed to open bar ipc connection: Socket path is empty
[2026-04-21 09:18:18.317] [warning] 'swap-icon-label' must be a bool.
[2026-04-21 09:18:18.317] [info] Hyprland IPC starting
[2026-04-21 09:18:18.324] [info] Loading persistent workspaces from Waybar config
[2026-04-21 09:18:18.324] [info] Loading persistent workspaces from Hyprland workspace rules
[2026-04-21 09:18:18.324] [info] Registering for Hyprland's 'windowtitlev2' events because a user-defined window rewrite rule uses the 'title' field.
[2026-04-21 09:18:18.674] [info] Found device Razer Razer BlackWidow V4 Pro Keyboard at '/dev/input/event14'
[2026-04-21 09:18:18.694] [info] Found device Razer Razer BlackWidow V4 Pro at '/dev/input/event13'
[2026-04-21 09:18:18.721] [info] Found device Razer Razer Basilisk V3 at '/dev/input/event12'
[2026-04-21 09:18:19.260] [info] Bar configured (width: 2864, height: 32) for output: HDMI-A-1
[2026-04-21 09:20:00.179] [info] Hyprland config reloaded, reinitializing hyprland/workspaces module...
[2026-04-21 09:20:00.187] [info] Loading persistent workspaces from Waybar config
[2026-04-21 09:20:00.188] [info] Loading persistent workspaces from Hyprland workspace rules
[2026-04-21 09:30:00.162] [info] Hyprland config reloaded, reinitializing hyprland/workspaces module...
[2026-04-21 09:30:00.177] [info] Loading persistent workspaces from Waybar config
[2026-04-21 09:30:00.177] [info] Loading persistent workspaces from Hyprland workspace rules
```
However, on the command line, I get these:
```bash
[2026-04-21 09:20:00.187] [info] Loading persistent workspaces from Waybar config
[2026-04-21 09:20:00.188] [info] Loading persistent workspaces from Hyprland workspace rules
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkButton': out of memory
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkBox': out of memory
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkEventBox': out of memory
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkBox': out of memory
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkBox': out of memory
(waybar:568212): Gtk-WARNING **: 09:23:52.241: drawing failure for widget 'gtkmm__GtkWindow': out of memory
[2026-04-21 09:30:00.162] [info] Hyprland config reloaded, reinitializing hyprland/workspaces module...
[2026-04-21 09:30:00.177] [info] Loading persistent workspaces from Waybar config
[2026-04-21 09:30:00.177] [info] Loading persistent workspaces from Hyprland workspace rules
^Ctime=2026-04-21T09:31:16.878+01:00 level=INFO msg="shutting down waybar-weather service"
** (waybar:589360): CRITICAL **: 09:31:16.883: static void Glib::DispatchNotifier::unreference_instance(Glib::DispatchNotifier*, const Glib::Dispatcher*): assertion 'instance == notifier' failed
Terminated cava -p "$config_file" | sed -u "$dict"
```
### More info
```bash
✓ ~ » waybar --version
Waybar v0.14.0
✓ ~ » cat /etc/fedora-release
Fedora release 43 (Forty Three)
✓ ~ » sudo repoquery -i waybar-0.14.0-1.fc43.x86_64
Last metadata expiration check: 0:00:53 ago on Tue 21 Apr 2026 09:40:08 BST.
Name : waybar
Version : 0.14.0
Release : 1.fc43
Architecture : x86_64
Size : 941 k
Source : waybar-0.14.0-1.fc43.src.rpm
Repository : fedora
Summary : Highly customizable Wayland bar for Sway and Wlroots based compositors
URL : https://github.com/Alexays/Waybar
License : MIT AND BSL-1.0 AND ISC
Description : Highly customizable Wayland bar for Sway and Wlroots based compositors.
```
2 条评论