Describe the bug
Every once in a while, waybar crashes. I still haven't found the root cause; opening an issue to collect information in one place.
To reproduce
Unclear thus far.
Environment
- Waybar version: Waybar v0.15.0
- Installed from: Alpine Linux
- Compositor and version: swaywm
Debug output
#0 __restore_sigs (set=set@entry=0x7fffee535950) at ./arch/x86_64/syscall_arch.h:40
#1 0x00007ffff7fb60f5 in raise (sig=sig@entry=6) at src/signal/raise.c:11
#2 0x00007ffff7f996de in abort () at src/exit/abort.c:11
#3 0x00007ffff66cb51f in __gnu_cxx::__verbose_terminate_handler() () at /lib/libstdc++.so.6
#4 0x00007ffff66c9228 in __cxxabiv1::__terminate(void (*)()) () at /lib/libstdc++.so.6
#5 0x00007ffff66b057c in std::terminate() () at /lib/libstdc++.so.6
#6 0x00007ffff66c94d8 in __cxa_throw () at /lib/libstdc++.so.6
#7 0x00005555555e4828 in waybar::modules::Battery::refreshBatteries (this=0x7ffff4024020)
at /usr/include/c++/15.2.0/bits/allocator.h:189
#8 0x00005555555e5501 in operator() (__closure=0x7ffff3f96290) at ../src/modules/battery.cpp:94
#9 std::__invoke_impl<void, waybar::modules::Battery::worker()::<lambda()>&> (__f=...) at /usr/include/c++/15.2.0/bits/invoke.h:63
#10 std::__invoke_r<void, waybar::modules::Battery::worker()::<lambda()>&> (__fn=...) at /usr/include/c++/15.2.0/bits/invoke.h:113
#11 std::_Function_handler<void(), waybar::modules::Battery::worker()::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...)
at /usr/include/c++/15.2.0/bits/std_function.h:292
#12 0x00005555555a7533 in std::function<void()>::operator() (this=0x7ffff3f96290) at /usr/include/c++/15.2.0/bits/std_function.h:593
#13 waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}::operator()() const (__closure=0x7ffff3f96288)
at ../include/util/sleeper_thread.hpp:48
#14 std::__invoke_impl<void, waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}>(std::__invoke_other, waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}&&) (__f=...) at /usr/include/c++/15.2.0/bits/invoke.h:63
#15 std::__invoke<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}>(waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}&&) (__fn=...) at /usr/include/c++/15.2.0/bits/invoke.h:98
#16 std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) (this=0x7ffff3f96288) at /usr/include/c++/15.2.0/bits/std_thread.h:303
#17 std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> >::operator()()
(this=0x7ffff3f96288) at /usr/include/c++/15.2.0/bits/std_thread.h:310
#18 std::thread::_State_impl<std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> > >::_M_run() (this=0x7ffff3f96280) at /usr/include/c++/15.2.0/bits/std_thread.h:255
#19 0x00007ffff66fa680 in ??? () at /lib/libstdc++.so.6
#20 0x00007ffff7fbef6d in start (p=<optimized out>) at src/thread/pthread_create.c:207
#21 0x00007ffff7fc08c0 in __clone () at src/thread/x86_64/clone.s:22
Additional context
The timing seems to align with my mouse disconnecting for unknown reasons; unclear if there's a correlation.
Describe the bug
Every once in a while, waybar crashes. I still haven't found the root cause; opening an issue to collect information in one place.
To reproduce
Unclear thus far.
Environment
Debug output
Additional context
The timing seems to align with my mouse disconnecting for unknown reasons; unclear if there's a correlation.