Skip to content
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

Error initializing xcb after Arch xorgproto 2018.1-1 update #9

Closed
tuncenator opened this issue Feb 12, 2018 · 11 comments
Closed

Error initializing xcb after Arch xorgproto 2018.1-1 update #9

tuncenator opened this issue Feb 12, 2018 · 11 comments

Comments

@tuncenator
Copy link

Upon updating the system including xorgproto 2018.1-1 which replaces [bigreqsproto, compositeproto, damageproto, dmxproto, dri2proto, dri3proto, fixesproto, fontsproto, glproto, inputproto, kbproto, presentproto, printproto, randrproto, recordproto, renderproto, resourceproto, scrnsaverproto, videoproto, xcmiscproto, xextproto, xf86dgaproto, xf86driproto, xf86miscproto, xf86vidmodeproto, xineramaproto, xproto], easyfocus no longer functions.

The package detail can be found here: https://www.archlinux.org/packages/extra/any/xorgproto/

The error received is:

tunc@BEER ~/.i3/easyfocus$ ./i3-easyfocus                                                                                             
error initializing xcb

Any ideas on how to resolve this?
Thanks

@cornerman
Copy link
Owner

Hmm, I am also on arch, but it is still working for me.

Can you manually compile with debug flag and see whether the output gives any additional information?
You can do this: make clean debug.

@tuncenator
Copy link
Author

Thanks for the quick reply! That's what I got:

tunc@BEER ~/.i3/i3-easyfocus$ make clean debug                                                                                      master   12/02 [14:05] 
Cleaning
CC src/win.c
CC src/i3-easyfocus.c
CC src/ipc.c
CC src/xcb.c
CC src/map.c
Link i3-easyfocus
tunc@BEER ~/.i3/i3-easyfocus$ lsd                                                                                                   master   12/02 [14:06] 
total 92K
▕ drwxr-xr-x ▏tunc:users│<  sec │   4K│src
▕ -rw-r--r-- ▏tunc:users│35 sec │  35K│LICENSE
▕ -rw-r--r-- ▏tunc:users│35 sec │ 564B│Makefile
▕ -rw-r--r-- ▏tunc:users│35 sec │ 1.2K│README.md
▕ -rwxr-xr-x ▏tunc:users│<  sec │  31K│i3-easyfocus
▕ -rw-r--r-- ▏tunc:users│35 sec │  11K│screenshot.png
tunc@BEER ~/.i3/i3-easyfocus$ ./i3-easyfocus                                                                                        master   12/02 [14:06] 
[src/xcb.c:23] request failed: cannot open font. error code: 15
error initializing xcb

A font issue?

@cornerman
Copy link
Owner

Indeed sounds like a font issue. According to the manpage of xcb_open_font, it can only return a name error, which means the font was not found on the system.

The font is defined in config.h. Can you check with xlsfonts (install xorg-xlsfonts) whether this font is available on your system?

xlsfonts -fn "-Misc-Fixed-Bold-R-Normal--18-120-100-100-C-90-ISO10646-1"

If it is not available, please try a different font. xlsfonts returns a list of supported fonts if no argument is provided. Please let me know, whether this helps.

@tuncenator
Copy link
Author

Helpful indeed. Thank you very much. I don't know what happened to the other font, though still this is resolved.

Panicked a bit there as I really have gotten used to using easyfocus 😄

@cornerman
Copy link
Owner

Great that it works again :)

@AdamSLevy
Copy link

How can I install the proper font on Arch? What font package would this be in?

@cornerman
Copy link
Owner

cornerman commented Feb 24, 2018

How can I install the proper font on Arch? What font package would this be in?

That is a good question. It seemed like a good default at that time because it was available on all machines I tested. Maybe we need a different one?

Otherwise, you can still configure a different font in config.h. Or we could add an option to choose the font at runtime

@AdamSLevy
Copy link

I'm not familiar with programming applications for xorg but it seems to me that there should be a way to dynamically determine an available system font. If it were me I wouldn't consider this issue closed until you have a solution that works out of the box more robustly.

However recompiling with a different font in config.h is not a big deal for me. Thank you

@cornerman
Copy link
Owner

@AdamSLevy There you go :)

@AdamSLevy
Copy link

Brilliant! Thank you so much!

@cornerman
Copy link
Owner

You can now set the font via argument, for example:

i3-easyfocus -f "-misc-fixed-medium-r-normal--20-*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants