polybar: xcb fatal error[Bug]:
Checklist
- I have read the appropriate section in the contributing guidelines
- I believe this issue is a problem with polybar itself and not a misconfiguration on my part
- I have checked the known issues page for this problem.
- I have followed the debugging guide to narrow down the problem to a minimal config.
Steps to reproduce
polybar
Minimal config
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[colors]
BG = #0C0E14
BG1 = #263035
BG2 = #2B353A
BG3 = #303A3F
BG4 = #353F44
BG5 = #3A4449
BG6 = #3F494E
BGA = #5C6F7B
FG = #C4C7C5
AC = #4DD0E1
BLACK = #000000
WHITE = #FFFFFF
RED = #EC7875
GREEN = #61C766
YELLOW = #FDD835
BLUE = #42A5F5
PURPLE = #BA68C8
CYAN = #4DD0E1
TEAL = #00B19F
AMBER = #FBC02D
ORANGE = #E57C46
BROWN = #AC8476
GRAY = #8C8C8C
BLUEGRAY = #6D8895
PINK = #EC407A
LIME = #B9C244
INDIGO = #6C77BB
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[bar/mybar]
monitor = eDP-1
width = 100%
height = 24pt
radius = 6
;screenchange-reload = true
pseudo-transparency = true
transparency = true
; dpi = 96
background = ${colors.BG}
foreground = ${colors.FG}
line-size = 3pt
;border-size = 1pt
;border-color = #FFFFFF
padding-left = 0
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.BG}
font-0 = monospace;2
font-1 = FontAwesome:size=10;1
font-2 = Iosevka Nerd Font:size=10;1
font-3 = Material Design Icons Desktop:size=10;1
modules-left = xworkspaces xwindow
modules-center = date brightness
modules-right = filesystem pulseaudio cpu memory wlan eth
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
; tray-position = right
; wm-restack = generic
; wm-restack = bspwm
; wm-restack = i3
; override-redirect = true
[module/xworkspaces]
type = internal/xworkspaces
pin-workspaces = true
enable-click = true
enable-scroll = true
icon-0 = 1;
icon-1 = 2;
icon-2 = 3;
icon-3 = 4;
icon-4 = 5;
icon-default =
format = <label-state>
format-background = ${colors.BG}
format-font = 1
label-monitor = %name%
label-active =
label-active-foreground = ${colors.PINK}
label-occupied =
label-occupied-foreground = ${colors.CYAN}
label-urgent =
label-urgent-foreground = ${colors.GREEN}
label-empty = %icon%
label-empty-foreground = ${colors.CYAN}
label-active-padding = 1
label-urgent-padding = 1
label-occupied-padding = 1
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
format-mounted-background = ${colors.BG}
format-mounted-prefix =
format-mounted-prefix-font = 2
format-mounted-prefix-foreground = ${colors.ORANGE}
format-unmounted-prefix =
format-unmounted-prefix-font = 2
format-unmounted-background = ${colors.BG1}
format-unmounted-prefix-foreground = ${colors.ORANGE}
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
format-volume-background = ${colors.BG}
format-muted = <label-muted>
format-muted-prefix =
format-muted-prefix-font = 2
format-muted-prefix-foreground = ${colors.BGA}
format-muted-background = ${colors.BG}
label-muted = MUTE
label-muted-foreground = ${colors.BGA}
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
ramp-volume-3 =
ramp-volume-font = 2
ramp-volume-foreground = ${colors.INDIGO}
label-volume = %percentage%%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.BLUE}
label = " %mb_used%"
[module/cpu]
type = internal/cpu
interval = 2
format = <label>
format-prefix =
format-prefix-font = 2
format-prefix-foreground = ${colors.YELLOW}
format-background = ${colors.BG}
label = %percentage:2%%
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %{F#F0C674}%{F-} %essid% %downspeed%%{A}
interval = 1.0
accumulate-stats = true
unknown-as-up = true
format-connected = <ramp-signal> <label-connected>
format-connected-background = ${colors.BG}
format-disconnected = <label-disconnected>
format-disconnected-prefix = " "
format-disconnected-prefix-font = 2
format-disconnected-foreground = ${colors.BGA}
format-disconnected-background = ${colors.BG}
label-disconnected = %{ifname%%essid% }
; Only applies if <ramp-signal> is used
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
ramp-signal-foreground = ${colors.PURPLE}
ramp-signal-font = 2
[module/eth]
inherit = network-base
interface-type = wired
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
[module/date]
type = internal/date
interval = 1
time = %I:%M %p
time-alt = %b %d, %G
format = <label>
format-prefix = " "
format-prefix-font = 2
format-prefix-foreground = ${colors.CYAN}
format-background = ${colors.BG}
label = %time%
[module/brightness]
type = internal/backlight
; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
;card = ${system.graphics_card}
card = intel_backlight
enable-scroll = true
format = <ramp> <label>
;format-prefix=
label = %percentage%%
ramp-0 =
ramp-1 =
ramp-2 =
ramp-3 =
ramp-4 =
ramp-5 =
ramp-6 =
ramp-7 =
ramp-8 =
ramp-9 =
ramp-foreground = ${colors.TEAL}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini
Polybar log
notice: Parsing config file: /home/dreaming/.config/polybar/config.ini
notice: Listening for IPC messages (PID: 4684)
notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'date' of type 'internal/date'
notice: Loading module 'brightness' of type 'internal/backlight'
notice: Loading module 'filesystem' of type 'internal/fs'
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1f.3.analog-stereo
notice: Loading module 'cpu' of type 'internal/cpu'
notice: Loading module 'memory' of type 'internal/memory'
notice: Loading module 'wlan' of type 'internal/network'
notice: module/wlan: Discovered wireless interface wlp1s0
notice: Loading module 'eth' of type 'internal/network'
error: Disabling module "eth" (reason: No interface found for type 'wired')
notice: Loaded 9 modules
notice: Loaded font "monospace" (name=Noto Sans Mono, offset=2, file=/usr/share/fonts/noto/NotoSansMono-Regular.ttf)
notice: Loaded font "FontAwesome:size=10" (name=FontAwesome, offset=1, file=/usr/share/fonts/awesome-terminal-fonts/fontawesome-regular.ttf)
notice: Loaded font "Iosevka Nerd Font:size=10" (name=Iosevka, offset=1, file=/usr/share/fonts/TTF/Iosevka Nerd Font Complete.ttf)
notice: Loaded font "Material Design Icons Desktop:size=10" (name=Noto Sans, offset=1, file=/usr/share/fonts/noto/NotoSans-Regular.ttf)
error: background_manager: Failed to copy slice of root pixmap (XCB_MATCH (8))
error: Fatal Error in eventloop: XCB_MATCH (8)
notice: Termination signal received, shutting down...
error: /home/main-builder/pkgwork/src/polybar/src/components/eventloop.cpp:187: libuv error for 'uv_loop_close(m_loop.get())': resource busy or locked
➜ ~
➜ ~ polybar
notice: Parsing config file: /home/dreaming/.config/polybar/config.ini
notice: Listening for IPC messages (PID: 4700)
notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'date' of type 'internal/date'
notice: Loading module 'brightness' of type 'internal/backlight'
notice: Loading module 'filesystem' of type 'internal/fs'
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1f.3.analog-stereo
notice: Loading module 'cpu' of type 'internal/cpu'
notice: Loading module 'memory' of type 'internal/memory'
notice: Loading module 'wlan' of type 'internal/network'
notice: module/wlan: Discovered wireless interface wlp1s0
notice: Loading module 'eth' of type 'internal/network'
error: Disabling module "eth" (reason: No interface found for type 'wired')
notice: Loaded 9 modules
notice: Loaded font "monospace" (name=Noto Sans Mono, offset=2, file=/usr/share/fonts/noto/NotoSansMono-Regular.ttf)
notice: Loaded font "FontAwesome:size=10" (name=FontAwesome, offset=1, file=/usr/share/fonts/awesome-terminal-fonts/fontawesome-regular.ttf)
notice: Loaded font "Iosevka Nerd Font:size=10" (name=Iosevka, offset=1, file=/usr/share/fonts/TTF/Iosevka Nerd Font Complete.ttf)
notice: Loaded font "Material Design Icons Desktop:size=10" (name=Noto Sans, offset=1, file=/usr/share/fonts/noto/NotoSans-Regular.ttf)
error: background_manager: Failed to copy slice of root pixmap (XCB_MATCH (8))
error: Fatal Error in eventloop: XCB_MATCH (8)
notice: Termination signal received, shutting down...
error: /home/main-builder/pkgwork/src/polybar/src/components/eventloop.cpp:187: libuv error for 'uv_loop_close(m_loop.get())': resource busy or locked
Expected behavior
polybar should work with bars launched
Actual behavior
I don’t fully know how but it gives error about xcb error
Window Manager and Version
xfwm4 4.16.1-3
Linux Distribution
Arch linux
Polybar version
polybar 3.6.3-60-g6ccecbfc
Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor
Build type: Release
Compiler: /usr/sbin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Wsuggest-override
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wall -Wextra -Wpedantic -Wsuggest-override -Wall -Wextra -Wpedantic -Wsuggest-override
Additional Context / Screenshots

About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 24 (11 by maintainers)
Commits related to this issue
- fix: Crash on root pixmap and window depth mismatch The background_manager used the root window depth for creating its pixmaps, but when the root pixmap has a different depth, this causes the copy_ar... — committed to patrick96/polybar by patrick96 2 years ago
- fix: Crash on root pixmap and window depth mismatch The background_manager used the root window depth for creating its pixmaps, but when the root pixmap has a different depth, this causes the copy_ar... — committed to patrick96/polybar by patrick96 2 years ago
- fix: Crash on root pixmap and window depth mismatch (#2813) The background_manager used the root window depth for creating its pixmaps, but when the root pixmap has a different depth, this causes th... — committed to polybar/polybar by patrick96 2 years ago
@patrick96, we’re encountered the same issue in picom. if you’re interested, it’s because
xfdesktop(a part of xfce) always sets root pixmap’s depth to 32. see linked above pull request for more details.It was working last night. I updated and it just broke