Waybar built with cava segfaulting
I use a cava module on my waybar, and it keeps causing my waybar to segfault randomly. The last time this happened, I just built it with an older build, but now it crashes regardless or whether I'm on 1.4.0.1 or 1.4.0.2. My cava config, waybar config, and journaltctl have been attached.
Here is the output of waybar -l trace as it segfaults.
waybar -l trace
[2025-10-19 18:37:46.288] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2025-10-19 18:37:46.288] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2025-10-19 18:37:46.288] [debug] Try expanding: $HOME/.config/waybar/config
[2025-10-19 18:37:46.288] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2025-10-19 18:37:46.289] [debug] Found config file: /home/diamond/.config/waybar/config.jsonc
[2025-10-19 18:37:46.289] [info] Using configuration file /home/diamond/.config/waybar/config.jsonc
[2025-10-19 18:37:46.292] [info] Discovered appearance 'dark'
[2025-10-19 18:37:46.320] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style-dark.css
[2025-10-19 18:37:46.320] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2025-10-19 18:37:46.320] [debug] Try expanding: $HOME/.config/waybar/style-dark.css
[2025-10-19 18:37:46.320] [debug] Try expanding: $HOME/.config/waybar/style.css
[2025-10-19 18:37:46.320] [debug] Found config file: /home/diamond/.config/waybar/style.css
[2025-10-19 18:37:46.320] [info] Using CSS file /home/diamond/.config/waybar/style.css
[2025-10-19 18:37:46.326] [debug] Output detection done: eDP-1 (Lenovo Group Limited - 0x403D - eDP-1)
[2025-10-19 18:37:47.006] [debug] network: new default route via 192.168.0.1 on if3 metric 600
[2025-10-19 18:37:47.006] [debug] network: wlan0, new addr 192.168.0.111/24
[2025-10-19 18:37:47.006] [debug] network: wlan0, new addr 192.168.0.111/24
[2025-10-19 18:37:47.009] [debug] battery: worker interval is 60
[2025-10-19 18:37:47.052] [trace] Sink name alsa_output.pci-0000_05_00.6.HiFi__Headphones__sink Running:[true] Idle:[false]
[2025-10-19 18:37:47.052] [trace] Sink name alsa_output.pci-0000_05_00.6.HiFi__Headphones__sink Running:[true] Idle:[false]
[2025-10-19 18:37:47.090] [debug] Task (0) setting app_id to unknown
[2025-10-19 18:37:47.090] [debug] Using 'desktop' search path prefix:
[2025-10-19 18:37:47.090] [debug] Using 'desktop' search path prefix: /home/diamond/.local/share/
[2025-10-19 18:37:47.090] [debug] Using 'desktop' search path prefix: /usr/share/
[2025-10-19 18:37:47.090] [debug] Using 'desktop' search path prefix: /usr/local/share/
[2025-10-19 18:37:47.240] [debug] Task (0) setting title to
[2025-10-19 18:37:47.269] [debug] Task (0) overwriting app_id 'unknown' with 'com.mitchellh.ghostty'
[2025-10-19 18:37:47.271] [debug] Task (0) journalctl -f [com.mitchellh.ghostty] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.271] [debug] Task (0) journalctl -f [com.mitchellh.ghostty] <amif> now visible on eDP-1
[2025-10-19 18:37:47.271] [debug] Task (0) journalctl -f [com.mitchellh.ghostty] <amif> changed
[2025-10-19 18:37:47.272] [debug] Task (1) setting app_id to unknown
[2025-10-19 18:37:47.273] [debug] Task (1) setting title to
[2025-10-19 18:37:47.277] [debug] Task (1) overwriting app_id 'unknown' with 'org.kde.elisa'
[2025-10-19 18:37:47.284] [debug] Task (1) My Old Ways — Elisa [org.kde.elisa] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.284] [debug] Task (1) My Old Ways — Elisa [org.kde.elisa] <amif> now visible on eDP-1
[2025-10-19 18:37:47.284] [debug] Task (1) My Old Ways — Elisa [org.kde.elisa] <amif> changed
[2025-10-19 18:37:47.285] [debug] Task (2) setting app_id to unknown
[2025-10-19 18:37:47.286] [debug] Task (2) setting title to
[2025-10-19 18:37:47.293] [debug] Task (2) overwriting app_id 'unknown' with 'zen'
[2025-10-19 18:37:47.299] [debug] Task (2) Default keyboard-state module causes segfault after finding keyboard · Issue #4566 · Alexays/Waybar — Zen Browser [zen] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.299] [debug] Task (2) Default keyboard-state module causes segfault after finding keyboard · Issue #4566 · Alexays/Waybar — Zen Browser [zen] <amif> now visible on eDP-1
[2025-10-19 18:37:47.299] [debug] Task (2) Default keyboard-state module causes segfault after finding keyboard · Issue #4566 · Alexays/Waybar — Zen Browser [zen] <amif> changed
[2025-10-19 18:37:47.299] [debug] Task (3) setting app_id to unknown
[2025-10-19 18:37:47.301] [debug] Task (3) setting title to
[2025-10-19 18:37:47.309] [debug] Task (3) overwriting app_id 'unknown' with 'com.mitchellh.ghostty'
[2025-10-19 18:37:47.310] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <Amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.310] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <Amif> now visible on eDP-1
[2025-10-19 18:37:47.310] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <Amif> changed
[2025-10-19 18:37:47.310] [debug] Task (4) setting app_id to unknown
[2025-10-19 18:37:47.312] [debug] Task (4) setting title to
[2025-10-19 18:37:47.316] [debug] Task (4) overwriting app_id 'unknown' with 'com.obsproject.Studio'
[2025-10-19 18:37:47.320] [debug] Task (4) OBS 32.0.1 - Profile: Untitled - Scenes: Untitled [com.obsproject.Studio] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.321] [debug] Task (4) OBS 32.0.1 - Profile: Untitled - Scenes: Untitled [com.obsproject.Studio] <amif> now visible on eDP-1
[2025-10-19 18:37:47.321] [debug] Task (4) OBS 32.0.1 - Profile: Untitled - Scenes: Untitled [com.obsproject.Studio] <amif> changed
[2025-10-19 18:37:47.321] [debug] Task (5) setting app_id to unknown
[2025-10-19 18:37:47.323] [debug] Task (5) setting title to
[2025-10-19 18:37:47.333] [debug] Task (5) overwriting app_id 'unknown' with 'org.kde.dolphin'
[2025-10-19 18:37:47.333] [debug] Task (5) [2025] Deadbeat — Dolphin [org.kde.dolphin] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.333] [debug] Task (5) [2025] Deadbeat — Dolphin [org.kde.dolphin] <amif> now visible on eDP-1
[2025-10-19 18:37:47.333] [debug] Task (5) [2025] Deadbeat — Dolphin [org.kde.dolphin] <amif> changed
[2025-10-19 18:37:47.334] [debug] Task (6) setting app_id to unknown
[2025-10-19 18:37:47.335] [debug] Task (6) setting title to
[2025-10-19 18:37:47.343] [debug] Task (6) overwriting app_id 'unknown' with 'org.kde.dolphin'
[2025-10-19 18:37:47.344] [debug] Task (6) .config — Dolphin [org.kde.dolphin] <amif> entered output 0x55bcfe079e60
[2025-10-19 18:37:47.344] [debug] Task (6) .config — Dolphin [org.kde.dolphin] <amif> now visible on eDP-1
[2025-10-19 18:37:47.344] [debug] Task (6) .config — Dolphin [org.kde.dolphin] <amif> changed
[2025-10-19 18:37:47.345] [debug] GTK widget tree:
window#waybar..background.top.eDP-1.mode-default:dir(ltr)
decoration:dir(ltr)
box.horizontal:dir(ltr)
box.horizontal.modules-left:dir(ltr)
widget:dir(ltr)
label#custom-launch_fuzzel.module:dir(ltr)
widget:dir(ltr)
box#taskbar.horizontal.module:dir(ltr)
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat.active:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
button.flat:dir(ltr)
box.horizontal:dir(ltr)
[label:dir(ltr)]
image:dir(ltr)
[label:dir(ltr)]
widget:dir(ltr)
label#mpris.module:dir(ltr)
widget:dir(ltr)
label#cava.module:dir(ltr)
box.horizontal.modules-center:dir(ltr)
widget:dir(ltr)
label#clock.module:dir(ltr)
box.horizontal.modules-right:dir(ltr)
widget:dir(ltr)
box#tray.horizontal.module:dir(ltr)
widget:dir(ltr)
label#network.module:dir(ltr)
widget:dir(ltr)
label#bluetooth.module:dir(ltr)
widget:dir(ltr)
label#battery.module:dir(ltr)
widget:dir(ltr)
label#backlight.module:dir(ltr)
widget:dir(ltr)
label#pulseaudio.module:dir(ltr)
widget:dir(ltr)
label#pulseaudio.microphone.module:dir(ltr)
widget:dir(ltr)
label#custom-lock_screen.module:dir(ltr)
widget:dir(ltr)
label#custom-power_btn.module:dir(ltr)
[2025-10-19 18:37:47.349] [debug] mpris[elisa]: artist = Tame Impala
[2025-10-19 18:37:47.349] [debug] mpris[elisa]: album = Deadbeat
[2025-10-19 18:37:47.349] [debug] mpris[elisa]: title = My Old Ways
[2025-10-19 18:37:47.349] [debug] mpris[elisa]: mpris:length = 298784000
[2025-10-19 18:37:47.350] [debug] mpris[elisa]: position = 171292000
[2025-10-19 18:37:47.350] [debug] mpris[elisa]: running update
[2025-10-19 18:37:47.355] [error] Host: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/StatusNotifierWatcher'
[2025-10-19 18:37:47.355] [debug] Received SIGCHLD in signalThread
[2025-10-19 18:37:47.419] [info] Bar configured (width: 1536, height: 41) for output: eDP-1
[2025-10-19 18:37:53.368] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <amif> changed
[2025-10-19 18:37:53.368] [debug] Task (1) My Old Ways — Elisa [org.kde.elisa] <Amif> changed
[2025-10-19 18:37:55.323] [debug] mpris: player-play callback
[2025-10-19 18:37:55.325] [trace] Sink name alsa_output.pci-0000_05_00.6.HiFi__Headphones__sink Running:[true] Idle:[false]
[2025-10-19 18:37:55.325] [trace] Sink name alsa_output.pci-0000_05_00.6.HiFi__Headphones__sink Running:[true] Idle:[false]
[2025-10-19 18:37:55.327] [debug] mpris[elisa]: artist = Tame Impala
[2025-10-19 18:37:55.327] [debug] mpris[elisa]: album = Deadbeat
[2025-10-19 18:37:55.327] [debug] mpris[elisa]: title = My Old Ways
[2025-10-19 18:37:55.327] [debug] mpris[elisa]: mpris:length = 298784000
[2025-10-19 18:37:55.328] [debug] mpris[elisa]: position = 171388000
[2025-10-19 18:37:55.328] [debug] mpris[elisa]: running update
[2025-10-19 18:37:57.879] [debug] Task (1) My Old Ways — Elisa [org.kde.elisa] <amif> changed
[2025-10-19 18:37:57.879] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <Amif> changed
[2025-10-19 18:38:07.650] [debug] Task (3) waybar -l trace [com.mitchellh.ghostty] <amif> changed
[2025-10-19 18:38:07.650] [debug] Task (6) .config — Dolphin [org.kde.dolphin] <Amif> changed
[2025-10-19 18:38:07.928] [debug] Task (6) .config — Dolphin [org.kde.dolphin] <amif> changed
[2025-10-19 18:38:07.928] [debug] Task (2) Default keyboard-state module causes segfault after finding keyboard · Issue #4566 · Alexays/Waybar — Zen Browser [zen] <Amif> changed
(waybar:83502): GLib-GObject-CRITICAL **: 18:38:15.122: object_ref: assertion '!object_already_finalized' failed
zsh: segmentation fault (core dumped) waybar -l trace
Hi @DaDiamondArmor, From the log I don't see anything is referring on cava as a cause of the failure. May you be more concrete, why did you decide cava is a reason ? May you provide more details on that ? Thank you
Hi there @LukashonakV, I came upon the conclusion that cava was the cause of failure by process of elimination. Building waybar normally did not cause it to segfault for 30 minutes and counting, but the cava built variant (from AUR, if that narrows anything down) crashes every 5 minutes on average. I was also led to think so due to issue #3910 and pull request #4551. If the data I provided is not enough, please let me know what I can provide to help with this issue.
@LukashonakV and @DaDiamondArmor, I maintain the AUR packages waybar-cava and libcava and recently bumped both packages to add the latest changes.
I observed since then that waybar stalls/crash after several minutes if the cava module is active (hence audio is playing). wayar does not stall/crash if I doesn't use audio.
I post this here just as an 'FYI, I've seen similar things' but didn't find time yet to take a deeper look yet.
@mutoroglin , @DaDiamondArmor may I ask you to help to collect necessary logs please ? Can you please install valgrind - it's a tool that can automatically detect many memory management and threading bugs Then please run
valgrind --log-file="valgrind.log" --leak-check=full --show-leak-kinds=all waybar
Once waybar is appeared, please do you usual stuff till crashing is happened. Then please provide valgrind.log Thank you
@LukashonakV here we go: valgrind.log
Setup and observations:
- I had two instances of waybar running, one is started automatically and the other was launched with valgrind inspecting it.
- I ran your valgring command, had youtube playing some random file with audio, after a few minutes waybar stalled/crashed (it is not updated anymore, the cava-bars 'froze'
- I stopped valgrind with Crtl-C; this stopped flushed a lot of data into the log file (~670 Bytes before Ctrl-C)
Good luck and please let me know if I can further support you with any other tests.
@mutoroglin can you please also provide cava config is used when test was performed ?
This cava config has been used for my first valgrind test:
"cava": { "framerate": 10, "autosens": 1, "bars": 12, "hide_on_silence": true, "sleep_timer": 1, "method": "pipewire", "source": "auto", "stereo": true, "reverse": false, "bar_delimiter": 0, // 32, // =SPACE "monstercat": false, "waves": false, "noise_reduction": 0.77, "input_delay": 0.1, "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], "actions": { "on-click-right": "mode" } },
don't know why the formatting of the config snippet is dropped
@LukashonakV here is my valgrind.log. After starting valgrind, I turned on some music and it took less than a minute to crash and restart (i have systemd restart it everytime it crashes) After it crashed and restarted, I closed valgrind and the log dumped a hot mess of data (as you can see)
Here is also the config I use for my cava widget:
"cava": {
// "cava_config": "/home/diamond/.config/cava/config",
"framerate": 60,
"autosens": 0,
"sensitivity":10,
"bars": 14,
"lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000,
"sleep_timer": 4,
"hide_on_silence": true,
// "format_silent": "quiet",
"method": "pulse",
"source": "auto",
"stereo": true,
"reverse": false,
"bar_delimiter": 0,
"monstercat": false,
"waves": false,
"noise_reduction": 0.25,
"input_delay": 2,
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
"actions": {
"on-click-right": "mode"
}
},
Thank you @DaDiamondArmor , @mutoroglin . @DaDiamondArmor unfortunately nothing valuable is in your valgrind log. For some reason necessary information is absent. @mutoroglin according your logs there is a writing buffer mismatch. Need to wait till karlstav/cava#698 . Once it's done I can backport this to libcava and rebuild waybar cava module
Hi there @LukashonakV, It appears that I didn't record my waybar logs properly, apologies for the misunderstanding. I waited until a second waybar popped up for me like @mutoroglin's did, (which took a whole 4 minutes to start up for some reason) At some point eventually, the waybar froze and didn't update. One minute after this happened, I force closed my terminal (Ctrl+C wasn't working) and these logs are the result of that. (I have no clue why this is 16 freaking megabytes) The config for this log remains the same. valgrind.log
@DaDiamondArmor and @mutoroglin may I ask you to test cavaIssue#4567 ?
came here to say i have the same issues.
That's interesting. Even with this I encountered the same situation. Past 1 minute of the listening cava stopped working. Let me check this.
Hi there @LukashonakV, when I try to build your patch, it throws this error at me and refuses to build:
ninja -C build
ninja: Entering directory `build'
[1/2] Compiling C++ object waybar.p/src_modules_cava_cava_backend.cpp.o
FAILED: waybar.p/src_modules_cava_cava_backend.cpp.o
c++ -Iwaybar.p -I. -I.. -I../include -Iresources/icons -Iprotocol -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/gtkmm-3.0 -I/usr/lib/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/lib/atkmm-1.6/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/gdkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/gtk-3.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/libdbusmenu-gtk3-0.4 -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/libnl3 -I/usr/include/libupower-glib -I/usr/include/polkit-1 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/wireplumber-0.5 -I/usr/include/libevdev-1.0 -I/usr/include/gtk-layer-shell -I/usr/include/libxml2 -I/usr/include/cava -I/usr/include/cava/input -I/usr/include/cava/output -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++20 -O3 '-DVERSION="0.9.13-2236-ga009d1b9 (branch '"'"'cavaIssue#4567'"'"')"' -DHAVE_LANGINFO_1STDAY '-DSYSCONFDIR="/usr/local/etc"' -DHAVE_CPU_LINUX -DHAVE_MEMORY_LINUX -DHAVE_SYSTEMD_MONITOR -DHAVE_SWAY -DHAVE_WLR_TASKBAR -DHAVE_EXT_WORKSPACES -DHAVE_RIVER -DHAVE_DWL -DHAVE_HYPRLAND -DHAVE_NIRI -DHAVE_WAYFIRE -DHAVE_LOGIN_PROXY -DHAVE_LIBNL -DHAVE_GAMEMODE -DHAVE_LOGIND_INHIBITOR -DHAVE_UPOWER -DHAVE_PIPEWIRE -DHAVE_LIBPULSE -DHAVE_LIBJACK -DHAVE_LIBWIREPLUMBER -DHAVE_DBUSMENU -DHAVE_LIBUDEV -DHAVE_LIBEVDEV -DHAVE_LIBINPUT -DHAVE_LIBMPDCLIENT -DHAVE_LIBSNDIO -DHAVE_CHRONO_TIMEZONES -DHAVE_LIBCAVA -DHAVE_LIBGPS -pthread -D_REENTRANT -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -MD -MQ waybar.p/src_modules_cava_cava_backend.cpp.o -MF waybar.p/src_modules_cava_cava_backend.cpp.o.d -o waybar.p/src_modules_cava_cava_backend.cpp.o -c ../src/modules/cava/cava_backend.cpp
../src/modules/cava/cava_backend.cpp: In constructor ‘waybar::modules::cava::CavaBackend::CavaBackend(const Json::Value&)’:
../src/modules/cava/cava_backend.cpp:21:36: warning: the address of ‘waybar::modules::cava::CavaBackend::error_’ will never be NULL [-Waddress]
21 | if (!load_config(cfgPath, &prm_, &error_)) {
| ^~~~~~~
In file included from ../src/modules/cava/cava_backend.cpp:1:
../include/modules/cava/cava_backend.hpp:48:26: note: ‘waybar::modules::cava::CavaBackend::error_’ declared here
48 | struct ::cava::error_s error_{}; // cava errors
| ^~~~~~
../src/modules/cava/cava_backend.cpp:21:19: error: too few arguments to function ‘bool cava::load_config(char*, config_params*, bool, error_s*, int)’
21 | if (!load_config(cfgPath, &prm_, &error_)) {
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/cava/common.h:4,
from ../include/modules/cava/cava_backend.hpp:15:
/usr/include/cava/config.h:140:6: note: declared here
140 | bool load_config(char configPath[PATH_MAX], struct config_params *p, bool colorsOnly,
| ^~~~~~~~~~~
../src/modules/cava/cava_backend.cpp: In destructor ‘virtual waybar::modules::cava::CavaBackend::~CavaBackend()’:
../src/modules/cava/cava_backend.cpp:123:3: error: ‘free_config’ was not declared in this scope
123 | free_config(&prm_);
| ^~~~~~~~~~~
ninja: build stopped: subcommand failed.
I reinstalled all of the dependencies required to build waybar thrice, and even reinstalled cava and libcava twice. Please let me know if this is an issue on my part or not.
EDIT: I just built the master branch of waybar and that builds fine, so this error is excluisive to your patch.
@DaDiamondArmor no need for more. Thanks. Issue is reproducible. I need some time to investigate.
So .. finally I got news. The first one: issue looks like identified. waybar cava code itself working quite well. Even waybar itself is stuck... backend thread keeps going work.. and notifies front end about the changes needs to be reflected in the UI. In the same time frontend as it should be in that case tries to update UI with the new input. The second one: looks like the problem somewhere in GTK code belongs to Label object. Each time I'm trying to utilize CPU capacity fot 100% GTK waybar itself stuck with the internal critical error. In the same time cava threads still working well and trying to push relevant input. Let me contact to gtkmm developers for that.
Upd: the issue due to not thread safe callbacks are using... thinking how to rewrite.
Hi @LukashonakV, Firstly, I would like to thank you for working on this issue. Secondly, I've been testing the PR for about an hour and I'm happy to report that:
- Waybar works smoother than ever.
- Cross referencing with btop, I can see that the idle CPU usage (with waybar running and music playing) is significantly lower than what I had before. In turn this just means I'll probably get even more battery on my laptop than I did before.
Let me know if I can provide any more data from this PR before I close this issue. Thanks again.
Hi,
i also came here because of the issue - thank you so much for fixing this . Please excuse me if this question is inappropriate in this context, I just wasn’t sure how else to ask - but when will be the fix released?
@HANCORE-linux I have been using the current build of waybar-cava from the AUR. It works great, with none of the issues specified.