Open Sporif opened 5 years ago
I've noticed polybar crashing from time to time when switching between ttys but was never able to reliably reproduce it. Looks like it should be easy to fix.
@patrick96 This commit https://github.com/Lomadriel/polybar/commit/98fc04f7cca8866304b0ac425f57179036694929 fixes the missing part of your PR (#1590) if you want to extract the code from my PR.
Describe the issue
If pulseaudio is killed while polybar is already running any future mouse interaction with the pulseaudio module causes a crash of polybar.
To Reproduce
I can reproduce with the stock config with everything but pulseaudio and the example bar removed.
polybar example
pulseaudio -k
Config:
Polybar Log
Environment:
polybar -vvv
:Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) -render -damage -sync +composite +xkb +xrm +xcursor
Build type: RelWithDebInfo Compiler: /usr/lib/ccache/bin/c++ Compiler flags: -march=native -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Werror -Wno-noexcept-type -pedantic -pedantic-errors Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now