polybar: Can't run example

After typing polybar example I get the following error:

terminate called after throwing an instance of 'xpp::x::error::name'
  what():  XCB_NAME (15)
Aborted (core dumped)

Here is the output for my version:

polybar 2.4.6 

Features: +alsa +curl +i3 +mpd +network 

Build type: Release
Compiler: /usr/bin/c++
Compiler flags:  -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors
Linker flags: 

ALSA_SOUNDCARD              default
BSPWM_SOCKET_PATH           /tmp/bspwm_0_0-socket
BSPWM_STATUS_PREFIX         W
BUILDER_SPACE_TOKEN         %__
CONNECTION_TEST_IP          8.8.8.8
PATH_ADAPTER                /sys/class/power_supply/%adapter%
PATH_BACKLIGHT_MAX          /sys/class/backlight/%card%/max_brightness
PATH_BACKLIGHT_VAL          /sys/class/backlight/%card%/brightness
PATH_BATTERY                /sys/class/power_supply/%battery%
PATH_CPU_INFO               /proc/stat
PATH_MEMORY_INFO            /proc/meminfo
PATH_TEMPERATURE_INFO       /sys/class/thermal/thermal_zone%zone%/temp

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

Are you able to build the project manually? Then you can compile a debug build which will enable trace messages.

$ cd /path/to/polybar/source
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug -DVERBOSE_TRACELOG=ON ..
$ make 
$ ./bin/polybar example