This is a discussion on My opengl application hangs... - Motif ; Hi All, I have an Opengl application which hangs completely and I need to reboot the system to make it up again. I was able to further investigate by debugging and found that at the call glutBitmapCharacter with the font ...
I have an Opengl application which hangs completely and I need to
reboot the system to make it up again. I was able to further
investigate by debugging and found that at the call glutBitmapCharacter
with the font GLUT_BITMAP_HELVETICA_10 is hanging. With other font like
GLUT_BITMAP_TIMES_ROMAN_24 the problem was not seen.
Also note that the application hangs with ATI RADEON 7500 and transport
TCPIP. I checked with ELSA-GLORIA and ATI RADEON 7000 with which the
application does not hang.
At the time of hang i analyzed the server process and could observe
that it was in routiene radeon_do_wait_for_idle, but in usual case the
applications keeps switching from routine radeon_do_wait_for_fifo and
Can somebody explain me why the application is hung only for that
I deeply appreciate any suggestions given in this regard...
Thanks in advance...
Code snippet for reference...
static void printstring(void *font, char *string)
/* clear window */
/* draw unit square polygon */
/* flush GL buffers */
/* set clear color to black */
/* glClearColor (0.0, 0.0, 0.0, 0.0); */
/* set fill color to white */
/* glColor3f(1.0, 1.0, 1.0); */
/* set up standard orthogonal view with clipping */
/* box as cube of side 2 centered at origin */
/* This is default view and these statement could be removed */
/* glMatrixMode (GL_PROJECTION);
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); */
int main(int argc, char** argv)
/* Initialize mode and open a window in upper left corner of
/* Window title is name of program (arg) */
/* You must call glutInit before any other OpenGL/GLUT calls */
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);