-
-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waybar sometimes crashing when HDMI cable is disconnected (might be MPRIS?), also some debug dmesg lines. #2808
Comments
How does your bar config looks like? I'm constantly connecting/disconnecting my monitor's cable and never had such issue, so I'm supposing it's specific to some module. Also a question for @dangerdyke, who opened a duplicate in #2835 |
here's my config: https://gist.github.com/dangerdyke/121e2f1228fb775c2d5ccb38c72eee5b |
worth noting that I use MPD and not MPRIS, so it's certainly not that |
Now we wait for @mrpingo's config. Given that mine doesn't crash and yours do, there may be common modules between you two that I don't use that could be causing the crash. If I had to take a guess, it could be related to Sway, since that's the most likely module that wants to do something when the number of monitors change (and I personally don't use it). If you wanted to try it, maybe you could install Hyprland and use Hyprland's equivalent modules instead of Sway's and see if the issue persists? |
issue persists in hyprland, with the sway-specific modules commented out of the config. no WM-specific modules were active |
Hello and sorry guys for waiting, work is keeping me busy theese days. I use almost identical configuration files for different laptops, I have the same issue on both: ConfigA ConfigB Please @Syndelis, can you share your config so we can see which modules already work so we can chase it faster? also can you say if you use Wayland with mixed Xlibs and also if you use specifically SwayWM? I am very curious about what is going on here. Many thanks in advance and for all your patience. |
the idle inhibitor module sticks out to me as something we both use that might be tied into monitor events. I'll give it a try with the idle inhibitor inactive |
no dice, same issue with no idle inhibitor 😔 |
Here you go //
// "states": [
// "low": 40,
// "mid": 60,
// "high": 80,
// "crit": ""
// ],
{
"layer": "top",
"position": "left",
"spacing": 0,
"modules-left": [
"custom/arch",
"hyprland/workspaces"
],
"modules-right": [
"group/group-control",
"group/group-power",
],
"group/group-control": {
"orientation": "inherit",
"modules": [
"group/group-upper",
"group/group-lower",
"tray",
]
},
"group/group-upper": {
"orientation": "inherit",
"modules": [
"network",
"group/group-audio",
"group/group-backlight",
"battery",
]
},
"group/group-lower": {
"orientation": "inherit",
"modules": [
"clock",
]
},
"group/group-power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "",
"transition-left-to-right": false,
},
"modules": [
"custom/power",
"custom/quit",
"custom/lock",
"custom/reboot",
]
},
"group/group-audio": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "",
"transition-left-to-right": false,
},
"modules": [
"pulseaudio",
"pulseaudio/slider",
]
},
"group/group-backlight": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "",
"transition-left-to-right": false,
},
"modules": [
"backlight",
"backlight/slider",
]
},
"hyprland/workspaces": {
"show-special": true,
"all-outputs": false,
"format": "<span line_height=\"1.8\">{icon}</span>\n<span line_height=\"1.15\">{windows}</span>",
"format-window-separator": "\n",
"window-rewrite-default": "",
"window-rewrite": {
"title<.*youtube.*>": "",
"class<firefox>": "",
"class<thunderbird>": "",
"class<foot>": "",
"class<code(-url-handler)?>": "",
"class<org\\.telegram\\.desktop>": "",
"class<libreoffice-calc>": "",
"class<xarchiver>": "",
"class<jetbrains-datagrip>": "",
"class<DBeaver>": "",
"class<beekeeper-studio>": "",
"class<Calculadora>": "",
"class<Transmission>": "",
"class<vlc>": "",
"class<com\\.obsproject\\.studio>": "",
"class<pavucontrol>": "",
"class<blueman>": "",
"class<alacritty>": "",
"class<google-chrome>": "",
"class<google-chrome-stable>": "",
"class<Google-chrome>": "",
"class<thunar>": "",
"class<ranger>": "",
"class<(foot|yazi)> title<yazi.*>": "",
"class<imv>": "",
"class<mpv>": "",
"class<rofi>": "",
"class<sirula>": "",
"class<firefox> title<.*Slack.*>": "",
"class<Steam> title<.+>": "",
"class<Spotify>": "",
"class<MuPDF>": "",
"class<obsidian>": "",
"title<.*discord.*>": "",
"calibre-gui": "",
"org\\.pwmt\\.zathura": ""
},
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"scratchpad": ""
},
"ignore-workspaces": [
"(special:)?hell"
],
"commented-out-persistent-workspaces": {
"eDP-1": [7, 8, 9],
}
},
"pulseaudio": {
"scroll-step": 2,
"format": "{icon}",
"format-muted": "",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"speaker": "",
"hdmi": "",
"headphone": "",
"hands-free": "?",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ""
},
"on-click-right": "pavucontrol",
"on-click": "swayosd-client --output-volume=mute-toggle",
"on-scroll-up": "swayosd-client --output-volume=raise",
"on-scroll-down": "swayosd-client --output-volume=lower"
},
"pulseaudio/slider": {
"orientation": "vertical"
},
"idle_inhibitor": {
"format": "{icon:^3}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"clock": {
"tooltip-format": "<big>{:%B %d}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H\n%M}"
},
"tray": {
"icon-size": 20,
},
"battery": {
"format": "{icon}\n{capacity:0>2}",
"format-charging": "\n{capacity:0>2}",
"format-icons": [
"", "", "", "", ""
],
"states": { // Below!
"warning": 20, // 0 - 20
"good": 70, // 20 - 70
"great": 98, // 70 - 98
"full": 100, // 98 - 100
},
},
"custom/quit": {
"format": "",
"tooltip": false,
"on-click": "hyprctl dispatch exit"
},
"custom/lock": {
"format": "",
"tooltip": false,
"on-click": "swaylock"
},
"custom/reboot": {
"format": "",
"tooltip": false,
"on-click": "reboot"
},
"custom/power": {
"format": "",
"tooltip": false,
"on-click": "shutdown now"
},
"network": {
"format": "{icon}",
"format-icons": [
"", "", "", ""
],
"format-ethernet": "",
"format-disconnected": "",
"format-disabled": "",
"tooltip-format": "{essid}\n{ipaddr}",
"tooltip-format-disconnected": "Not Connected",
"tooltip-format-disabled": "Disabled",
"on-click": "foot --title nmtui -e nmtui",
},
"backlight": {
"tooltip": false,
"format": "{icon}",
"format-icons": [
"", "", ""
],
},
"backlight/slider": {
"orientation": "vertical"
},
"commentedout": {
"backlight/on-scroll-up": "swayosd-client --output-brightness=raise",
},
"custom/arch": {
"format": "",
"tooltip": false,
"on-click": "sirula"
},
"commentedout/privacy": {
"icon-spacing": 4,
"icon-size": 14,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 14
},
]
},
}
I'm running Hyprland, so no Sway, but I'm not sure of what you mean by "mixed Xlibs"; perhaps you meant running apps on Xwayland? If so, I've got some, such as VS Code, Obsidian and a couple others. |
Well, I've been chasing down the issue and I 've realised that waybar crashes (not always) when the HDMI cable is removed when in suspend state. So it probably is due to the WM. Didn't register any logs so far. Can you gus reproduce the crash? |
Might be fixed with #3215 |
Hello! I issued some time ago
Same here without crashing it keeps printing log messages:
sway.log:
EDIT: I tracked those "LIBDBUSMENU-GLIB-WARNING" messages down to the Blueman-applet (bluetooth tray icon).
But almost always crashing when HDMI cable is disconnected from the laptop:
dmesg:
[ 1176.557530] waybar[12583]: segfault at 704c00000001 ip 0000704cc7cd1fd3 sp 00007fffa638d178 error 6 in libstdc++.so.6.0.32[704cc7c9c000+159000] likely on CPU 2 (core 0, socket 0) [ 1176.557545] Code: fa 7f 02 48 39 c7 75 e7 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 8b 46 08 c4 e1 f9 6e ce c4 e3 f1 22 c0 01 c5 fa 7f 07 <48> 89 38 48 89 7e 08 c3 0f 1f 44 00 00 48 8b 07 48 8b 57 08 48 89
The text was updated successfully, but these errors were encountered: