X Error (BadFont)

Wawrzyniec Niewodniczański wawrzek at gmail.com
Fri Aug 29 10:40:11 CEST 2008


Hello,

We have finally been able to resolve this problem. It turned out that the
call to XLoadQueryFont was correct all along - it was checking for success.
And the call to glXUseXFont was also correct. This is where we had focussed
all our efforts on.

However, the cause of the problem was that the function which called the
above then went on to call XCloseDisplay, long before the application had
finished. As documented in the following, this was a seriously bad idea:

http://tronche.com/gui/x/xlib/display/XCloseDisplay.html

Re-arranging the code to remove the call to XCloseDisplay solved the
problem.

We were fooled for a long time over this because on most local displays, and
with Mesa, somehow the code still worked OK and drew labels. And we just got
away with it.

Thanks,
Wawrzek

-- 
 Wawrzyniec Niewodniczañski vel Wawrzek Larry or LarryN
 Linux User #177124 E-MAIL: wawrzek at gmail.com
 PhD in Quantum Chemistry WWW: http://wawrzek.name
 MSc in Molecular Engineering JID: larryn at chrome.pl



More information about the CLUG mailing list