LoadImageFont and fullscreen

BlitzMax Forums/BlitzMax Programming/LoadImageFont and fullscreen

danvari(Posted 2008) [#1]
hey!

i have a problem with drawing text in a different font. i am using archlinux 64bit and am running blitzmax 1.30 in a archlinux 32bit chroot. everything runs perfect...until now ^^. i can load ttf fonts via loadimagefont, set them via setimagefont and can draw them via drawtext.
BUT my game crashes if i try to draw a different font in fullscreen. here is an example code:

Graphics 1024, 768
'Graphics 1024, 768, 32

Local font:TImageFont = LoadImageFont("dejavu.ttf", 12)
SetImageFont font

Repeat
	Cls()
	DrawText "test", 0, 0
	Flip()
Until KeyDown(KEY_ESCAPE)


but if i compile it in fullscreen, then i have a black screen only (also if i draw some pictures or so) and i get the following output:

Building font
Compiling:font.bmx
flat assembler  version 1.64
3 passes, 3223 bytes.
Linking:font.debug
Executing:font.debug
X Error of failed request:  GLXUnsupportedPrivateRequest
  Major opcode of failed request:  144 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Serial number of failed request:  52
  Current serial number in output stream:  804
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xf7b79767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xf7b7981e]
#2 /usr/lib/libX11.so.6 [0xf7f15ba9]
#3 /usr/lib/libX11.so.6(XFlush+0x29) [0xf7eeed99]
#4 /home/stephan/Programmierung/mtex/font.debug [0x8071ad1]
#5 /home/stephan/Programmierung/mtex/font.debug [0x80f9d2f]
#6 /home/stephan/Programmierung/mtex/font.debug [0x80f92fc]
#7 /home/stephan/Programmierung/mtex/font.debug [0x80f7d50]
#8 /home/stephan/Programmierung/mtex/font.debug [0x80f7916]
#9 /home/stephan/Programmierung/mtex/font.debug [0x80f6ebb]
#10 /lib/libc.so.6(exit+0x89) [0xf7bac6c9]
#11 /usr/lib/libX11.so.6 [0xf7f0e54e]
#12 /usr/lib/libX11.so.6(_XError+0xd9) [0xf7f0e629]
#13 /usr/lib/libX11.so.6 [0xf7f16548]
#14 /usr/lib/libX11.so.6(_XReply+0x152) [0xf7f168f2]
#15 /usr/lib/libGL.so.1 [0xf7e9c163]
#16 /usr/lib/libGL.so.1 [0xf7e9e43a]
#17 /home/stephan/Programmierung/mtex/font.debug [0x80d947d]
#18 /home/stephan/Programmierung/mtex/font.debug [0x80d9ac5]
#19 /home/stephan/Programmierung/mtex/font.debug [0x80da6d3]


so is font loading buggy in linux build 1.30 ?