Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Core dump with the Upower module

Open StayPirate opened this issue 11 months ago • 13 comments

When I try to use the newly introduced Upower feature https://github.com/Alexays/Waybar/pull/2229, I get a core dump. Tagging @LukashonakV as the father of the new implemented feature.

> waybar -l trace
[2023-07-05 12:38:02.043] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2023-07-05 12:38:02.043] [debug] Found config file: $XDG_CONFIG_HOME/waybar/config
[2023-07-05 12:38:02.043] [info] Using configuration file /home/crazybyte/.config/waybar/config
[2023-07-05 12:38:02.043] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2023-07-05 12:38:02.043] [debug] Found config file: $XDG_CONFIG_HOME/waybar/style.css
[2023-07-05 12:38:02.043] [info] Using CSS file /home/crazybyte/.config/waybar/style.css
[2023-07-05 12:38:02.052] [debug] Output detection done: eDP-1 (Chimei Innolux Corporation 0x150C)
zsh: segmentation fault (core dumped)  waybar -l trace
Device: /org/freedesktop/UPower/devices/headphones_dev_04_52_C7_7E_67_82
  native-path:          /org/bluez/hci0/dev_04_52_C7_7E_67_82
  model:                Crazybyte QC35
  serial:               04:52:C7:7E:67:82
  power supply:         no
  updated:              Wed 05 Jul 2023 12:09:06 CEST (1593 seconds ago)
  has history:          yes
  has statistics:       no
  headphones
    warning-level:       none
    percentage:          70%
    icon-name:          'battery-missing-symbolic'
// -*- mode: json -*-

[{
	"layer": "top",
	"position": "top",

	"modules-left": [
		"sway/workspaces",
		"custom/right-arrow-dark"
	],
	"modules-right": [
		"custom/left-arrow-dark",
		"cpu",
		"temperature#cpu",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"disk",
		"temperature#disk",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"memory",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"battery",
		"upower#boseqc35",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"pulseaudio",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"bluetooth",
		"network#wifi",
		"network#eth",
		"network#tun",
		"network#tap",
		"custom/left-arrow-light",
		"custom/left-arrow-dark",
		"custom/notification"
	],

[...]

	"battery": {
		"states": {
			"full": 100,
            "good": 90,
			"warning": 30,
			"critical": 10
		},
		"format": "<b>{icon}</b> {capacity:3}%",
		"format-icons": [
			"",
			"",
			"",
			"",
			""
		]
	},
	"upower#boseqc35": {
		"native-path": "/org/bluez/hci0/dev_04_52_C7_7E_67_82",
		"icon-size": 20,
		"hide-if-empty": true,
		"tooltip": true,
		"tooltip-spacing": 20
	},

[...]
> pacman -Qii waybar
Name            : waybar
Version         : 0.9.19-1
Description     : Highly customizable Wayland bar for Sway and Wlroots based compositors
Architecture    : x86_64
URL             : https://github.com/Alexays/Waybar/
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : gtkmm3  libjsoncpp.so=25-64  libsigc++  fmt  jack  libjack.so=0-64  wayland  libdate-tz.so=3-64  libspdlog.so=1.11-64  gtk-layer-shell  libupower-glib.so=3-64  upower  libevdev  libinput
                  libpulse  libnl  libappindicator-gtk3  libdbusmenu-gtk3  libmpdclient  libsndio.so=7-64  libxkbcommon  libwireplumber  playerctl
Optional Deps   : otf-font-awesome: Icons in the default configuration
Required By     : None
Optional For    : sway
Conflicts With  : None
Replaces        : None
Installed Size  : 1567.09 KiB
Packager        : Brett Cornwall <[email protected]>
Build Date      : Wed 05 Jul 2023 03:19:24 CEST
Install Date    : Wed 05 Jul 2023 12:15:49 CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
Backup Files    :
UNMODIFIED      /etc/xdg/waybar/config
UNMODIFIED      /etc/xdg/waybar/style.css

StayPirate avatar Jul 05 '23 13:07 StayPirate