Open sanga opened 5 years ago
Actually this repros 100% of the time when running swaybar as part of the regular sway session. Doesn't repro running swaybar from a shell in Sway though.
I have the same issue. Not running i3status-rs. Have had this for some time, not sure when I first noticed it unfortunately.
Same thing, but i think that was issue of i3status-rs, now seems - no https://github.com/greshake/i3status-rust/issues/420
So I’d guess that when whatever statusline program behaves unexpectedly ie crashes then that causes swaybar to crash. So i3statusrs needs to be fixed but swaybar should also arguably be hardened to account for crashy statusline progs
This not only happens with pavucontrol but also nm-connection-editor
Is this still a problem? Could someone provide minimal reproduction steps please?
repros here on:
sway version 1.4-9c93e1c0 (Jan 24 2020, branch 'master')
wlroots=3ff6a5def349db21c9f7d83c0406ce5cebfa9a09
Repro steps are:
bar {
status_command $HOME/.local/bin/i3status-rs $HOME/.config/i3/i3statusrs.toml
}
and the following conf (excerpt) for i3statusrs
[[block]]
block = "sound"
on_click = "pavucontrol"
pavucontrol
=> observe swaybar dieSorry, that's a bit involved but I don't have nicer steps than that at the moment
Are you running i3status-rust master? I think there was an issue a little while back that fixed this (issue was i3status-rust printing the commands output to stdin)
Ah I missed the comment above about hardening swaybar regardless
Doesn't appear to be fixed in either sway or i3status-rs. I still get the swaybar crash when running i3status-rs from master updated just a moment ago. And yeah, as mentioned earlier, even if i3status-rs is fixed the bug would still presumably be in swaybar that it crashes on unexpected input.
Thinking about it now I wonder if one could crash swaybar just by making a simple program that dumps a stacklike block of text to swaybar. I wonder if it's that simple...
i3 version 4.18 (2020-02-17) sway version 1.4-b34c198f (Mar 22 2020) i3status-rs 0.13.0 (git)
Here are my findings: | i3rs on-click cmd | sway | i3 |
---|---|---|---|
pavucontrol | crashes swaybar | no issue | |
swaymsg exec pavucontrol | no issue | - |
thank you @ammgws ! To confirm switching from raw pavucontrol
to swaymsg exec pavucontrol
in i3statusrs' "fixes" the crash for me too (double-quotes as presumably the bug is still there it's just not triggered that way).
I'm using i3status-rs and I recently configured that to open
pavucontrol
when clicking the sound block. Today I think was the first time I've actually used that and swaybar immediately crashed (well pavucontrol opened and then swaybar crashed). Might be a timing related thing or something. At least I haven't managed to repro the crash just now whilst running swaybar and opening pavucontrol a few more times.version info
stack