Hello,
When I run walktest and blocks from Crystal Space with "-video=opengl" 
they crush with the following message:
t_imm_api.c:316: _tnl_end: Assertion `ctx->Driver.NeedFlush & 0x1' failed

I run CS version 0.95 on linux (i386). The video driver used is dri mga 
build 20020910 on a Matrox G400 16Mb.
I suppose that the crush is from the dri drivers, not from CS.
The trace from the gdb is:
for walktest:
#0  0x400e12f1 in kill () from /lib/libc.so.6
#1  0x40031052 in pthread_kill () from /lib/libpthread.so.0
#2  0x40031531 in raise () from /lib/libpthread.so.0
#3  0x400e27cb in abort () from /lib/libc.so.6
#4  0x400db39b in __assert_fail () from /lib/libc.so.6
#5  0x4089c6cf in _tnl_end (ctx=0x8282928) at t_imm_api.c:316
#6  0x4089c7c3 in _tnl_End () at t_imm_api.c:363
#7  0x40563290 in GLFontCache::Write (this=0x83461c8, font=0x8270fb0, 
x=1, y=472,
   text=0x82714f8 "crystalspace.system: Crystal Space version 0.95 rdev 
[Linux-X86-GCC] (Wed 2-Apr-2002).")
   at plugins/video/canvas/openglcommon/gl2d_font.cpp:371
#8  0x40564828 in csGraphics2DGLCommon::Write (this=0x8265448, 
font=0x8270fb0, x=1, y=0, fg=65535, bg=-1,
   text=0x82714f8 "crystalspace.system: Crystal Space version 0.95 rdev 
[Linux-X86-GCC] (Wed 2-Apr-2002).")
   at plugins/video/canvas/openglcommon/glcommon2d.cpp:298
#9  0x40410033 in csSimpleConsole::Draw2D (this=0x8233840, 
area=0xbfffdb24) at plugins/console/output/simple/simpcon.cpp:467
#10 0x4040f4fa in csSimpleConsole::PutTextV (this=0x8233840,
   iText2=0x83667c0 "crystalspace.system: No iPerfStats plugin: you will 
have no performance statistics!\n",
   args=0xbfffeb8c) at plugins/console/output/simple/simpcon.cpp:342
#11 0x404106fb in csSimpleConsole::PutText (this=0x8233840,
   iText=0x83667c0 "crystalspace.system: No iPerfStats plugin: you will 
have no performance statistics!\n")
   at plugins/console/output/simple/simpcon.h:117
#12 0x4051aec5 in csReporterListener::Report (this=0x8260c30, 
severity=2, msgID=0x8181030 "crystalspace.system",
   description=0xbfffec9c "No iPerfStats plugin: you will have no 
performance statistics!") at plugins/stdrep/stdrep.cpp:174
#13 0x4051bb70 in csReporterListener::ReporterListener::Report 
(this=0x8260c94, reporter=0x8260858, severity=2,
   msgId=0x8181030 "crystalspace.system",
   description=0xbfffec9c "No iPerfStats plugin: you will have no 
performance statistics!") at plugins/stdrep/stdrep.h:91
#14 0x4050fd89 in csReporter::ReportV (this=0x8260858, severity=2, 
msgId=0x8181030 "crystalspace.system",
   description=0x8181a40 "No iPerfStats plugin: you will have no 
performance statistics!", arg=0xbffff110)
   at plugins/reporter/reporter.cpp:88
#15 0x0807a84e in WalkTest::Report (this=0x82230c0, severity=2,
   msg=0x8181a40 "No iPerfStats plugin: you will have no performance 
statistics!") at apps/walktest/walktest.cpp:220
#16 0x0807fc82 in WalkTest::Initialize (this=0x82230c0, argc=2, 
argv=0xbffff794,
   iConfigName=0x8181ce8 "/config/walktest.cfg") at 
apps/walktest/walktest.cpp:1375
#17 0x08081b29 in main (argc=2, argv=0xbffff794) at 
apps/walktest/walktest.cpp:1655
#18 0x400d017d in __libc_start_main () from /lib/libc.so.6

and for blocks:
#0  0x400e12f1 in kill () from /lib/libc.so.6
#1  0x40031052 in pthread_kill () from /lib/libpthread.so.0
#2  0x40031531 in raise () from /lib/libpthread.so.0
#3  0x400e27cb in abort () from /lib/libc.so.6
#4  0x400db39b in __assert_fail () from /lib/libc.so.6
#5  0x409386cf in _tnl_end (ctx=0x80fde60) at t_imm_api.c:316
#6  0x409387c3 in _tnl_End () at t_imm_api.c:363
#7  0x406c1290 in GLFontCache::Write (this=0x81c1be8, font=0x81dc8a0, 
x=10, y=12, text=0xbffff3f0 "0")
   at plugins/video/canvas/openglcommon/gl2d_font.cpp:371
#8  0x406c2828 in csGraphics2DGLCommon::Write (this=0x80e5c88, 
font=0x81dc8a0, x=10, y=460, fg=65535, bg=0,
   text=0xbffff3f0 "0") at 
plugins/video/canvas/openglcommon/glcommon2d.cpp:298
#9  0x0805c2eb in Blocks::SetupFrame (this=0x80a5820) at 
apps/blocks/blocks.cpp:2682
#10 0x0804ad52 in BlocksEventHandler (ev=@0xbffff524) at 
apps/blocks/blocks.cpp:412
#11 0x08067dac in csAppEventHandler::HandleEvent (this=0x80b21a0, 
e=@0xbffff524) at libs/cstool/initapp.cpp:352
#12 0x0806f088 in csEventQueue::Notify (this=0x80a6b38, e=@0xbffff524) 
at libs/csutil/cseventq.cpp:162
#13 0x0806f1b6 in csEventQueue::Process (this=0x80a6b38) at 
libs/csutil/cseventq.cpp:180
#14 0x08083462 in csDefaultRunLoop (r=0x80b2bc0) at 
libs/cssys/general/runloop.cpp:81
#15 0x0805fa38 in main (argc=2, argv=0xbffff794) at 
apps/blocks/blocks.cpp:3258
#16 0x400d017d in __libc_start_main () from /lib/libc.so.6

In gl2d_font.cpp at line 371 there is a glEnd().

PS: I am not subscribed at the list from this address but I can read the 
list. (That account is "read-only" :) ).

Thank you,
Mihai Ganea






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to