LemonBoy/bar

Could not allocate the color "black"

Closed this issue · 7 comments

Trying to troubleshoot my installation and I am getting this when running lemonbar from terminal:

Could not allocate the color "black"
Could not allocate the color "white"

running panel from terminal yields:

Could not allocate the color "black"
Could not allocate the color "white"
Could not load font ""

I've heard that orange is the new black.
Can you please give more informations such as your OS (and version) ?

My wife mentioned something along those lines.
And yes!
4.1.3-1-ARCH
lemonbar version a390ef6

This is weird, to be honest I've never managed to replicate this damn problem.
How are you invoking lemonbar ?

Since invoking it in ~/.config/bspwm/bspwmrc didn't show anything, I tried seeing what error messages I would get if I invoked panel and lemonbar from my terminal.

I ran into this on Debian Sid and bisected it to this:

4d5f9b6 is the first bad commit
commit 4d5f9b6
Author: LemonBoy thatlemon@gmail.com
Date: Mon Feb 24 12:35:56 2014 +0000

    Use 32bit visuals when available
:100644 100644 6f3be149894e60502c7332290f3d77a8b8951167 412e0bde088922d03ff78e391c8cf5ed163117ab M  README.pod
:100644 100644 636a94637d5b608c0e343bc416c2b3eac990280f 5d17968db4b5ffcc5b33668c1ec184e4b57c6fc8 M  bar.c

So looks like it's related to alpha? Any ideas what to look at?

jvvv commented

The error message about color allocation failure here is not related to rgba. It's outside the 'Hex representation' block and happens at the named color allocation. I suspect the trouble has something to do with the colormap. I tried changing the alloc parameter of the xcb_create_colormap call in xconn(); from XCB_COLORMAP_ALLOC_NONE to XCB_COLORMAP_ALLOC_ALL. After that change, I see the same error. This feels like a heisenbug. Tracking it down could be interestingly frustrating.

Named colors aren't parsed anymore, hence this should be fixed. Please re-open it if it's not.