Waybar: Freezing at 100% CPU after some time
Hi! After a recent update, waybar started crashing with an error about a value not being a string. I was able to work around it by disabling the weather module. Now however, Waybar seems to freeze completely a minute or two after being started. There is no log when the freeze happens, and I have to manually kill the process and restart it.
Here is my Waybar configuration.
% waybar --version
Waybar v0.9.10
% waybar
[2022-03-08 09:36:38.071] [info] Using configuration file /home/apm/.config/waybar/config
[2022-03-08 09:36:38.071] [info] Using CSS file /home/apm/.config/waybar/style.css
[2022-03-08 09:36:38.085] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-03-08 09:36:38.094] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
** (waybar:31883): WARNING **: 09:36:38.142: gtk-layer-shell v0.7.0 may not work on GTK v3.24.33. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
[2022-03-08 09:36:38.224] [info] Bar configured (width: 1920, height: 24) for output: eDP-1
** (waybar:31883): WARNING **: 09:36:38.232: Status Notifier Item with bus name ':1.24' and object path '/org/ayatana/NotificationItem/discord1' is already registered
** (waybar:31883): WARNING **: 09:36:38.233: Status Notifier Item with bus name ':1.25' and object path '/org/ayatana/NotificationItem/Element1' is already registered
** (waybar:31883): WARNING **: 09:36:38.233: Status Notifier Item with bus name ':1.243' and object path '/org/ayatana/NotificationItem/itch1' is already registered
The above is printed when I start Waybar, but nothing is printed at the time of the freeze. The app tray does function, so I’m not sure what that first warning is about.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 20 (4 by maintainers)
Commits related to this issue
- waybar: Disable window icons since they cause troubles See also https://github.com/Alexays/Waybar/issues/1464 — committed to rnestler/dotfiles by rnestler 2 years ago
- Sway/window: Only update icon from main thread If Gtk objects get updated from other threads than the main thread GTK can get confused. This is a regression of bcadf64031ee0520212aa8f092f5ac14122cd92... — committed to FlexW/Waybar by deleted user 2 years ago
Ok, I’ve had a freeze again and was able to attach GDB and get a backtrace:
For me it was enough to disable the icons with
On latest version, icon is disabled by default
Removing the
sway/window
module seems to have fixed the freezing for me as well.Its exactly what I am trying before reading your comment. it seems that I have no issue so far without
sway/window
module.Can you try disabling sway/window module?
Can confirm this works for me too.