Closed oniGino closed 4 months ago
[2022-09-25 19:41:39.502] [debug] network: default route deleted wlan0/if3 metric 1024
[2022-09-25 19:41:39.550] [debug] Output removed: Sharp Corporation 0x1484
(waybar:78793): GLib-GIO-WARNING **: 19:41:39.597: Invalid id 2 passed to g_bus_unwatch_name()
Segmentation fault (core dumped)
here is waybar -log debug output
This seems very similar to #1168
I have the same issue on Hyprland.
Here is the root of my issue, it is a bug in waybar but I think its solvable if I can get a maintainer to look at this 🙏🏾
in my sway config i had the following
bindswitch --reload --locked lid:on output eDP-1 disable
bindswitch --reload --locked lid:off output eDP-1 enable
This if referenced from https://github.com/swaywm/sway/issues/4224
Basically when i close my lid I want my workspaces moved to my larger docked monitor and this is a hack for that. When lid is closed and undocked sway has no enabled monitors (outputs) and waybar crashes if no outputs exist
so please make waybar not crash when the list of outputs is empty
As a work around I think https://github.com/swaywm/sway/issues/5553 might work but comes with its own set of issues This bug can hopefully just be solved here.... sadly I've had no maintainer feedback yet.
I think my problem with Hyprland is more or less the same. I described the issue and what I have here https://github.com/hyprwm/Hyprland/issues/804#issuecomment-1295645936 . It talks about Hyprland crashing, but basically Waybar seems to crash for the same reasons.
This happens for me as well. Is there any workaround for this?
What i do as work as workaround is to only disable laptop screen when there is another active screen.
config:
bindswitch --reload --locked lid:on exec sway-disable-if.sh $laptop
bindswitch --reload --locked lid:off output $laptop enable
sway-disable-if.sh
display=${1:-eDP-1}
nActive=$(swaymsg -t get_outputs -r | jq '.[]| select(.active==true).name' |wc -l )
if [ "$nActive" -gt 1 ]
then
sway output "$display" disable
fi
Either on sleep or wake waybar crashes
running Gentoo sway-1.7-r2 waybar-0.9.13
I can't tell if its happening on sleep or on wake