[GtkGLExt] Simple.cc ends with a BadValue X Window System error



I have downloaded simple.cc from the gtkglext web site and compiled it with this command line:

g++ $(pkg-config gtkmm-2.0 gtkglextmm-1.0 --cflags --libs) -ggdb3 -fno-inline -march=i386 -o simple simple.cc

When I quit the application I get this error:

The program 'simple' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 381 error_code 2 request_code 144 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

When I force indirect rendering this doesn't happen.

When I try to debug the program in gdb, it get's a SIGFPE on initialization (no where near where the actual problem is):
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 16384 (LWP 7723)]
0x40e4b638 in _mesa_test_os_sse_exception_support () from /usr/X11R6/lib/modules/dri/radeon_dri.so
(gdb) bt
#0 0x40e4b638 in _mesa_test_os_sse_exception_support () from /usr/X11R6/lib/modules/dri/radeon_dri.so #1 0x40e4b341 in check_os_sse_support () from /usr/X11R6/lib/modules/dri/radeon_dri.so

I have a Sharp Actius MM20 running Gentoo Linux, kernel 2.6.8, gcc 3.3.4, x.org 6.8, gtkglext 1.0.5, gtkglextmm 1.0.0, gtk+ 2.4.13, gtkmm 2.2.12.

The gdk/gtk-gl debug messages don't seem to exciting. Here is the last bit of them:

GdkGLExt-Message:  -- Window: screen number = 0
GdkGLExt-Message:  -- Window: visual id = 0x27
GdkGLExt-Message:  ** glXMakeCurrent ()
GdkGLExt-Message:  -- _gdk_gl_context_set_gl_drawable ()
GtkGLExt-Message:  -- gtk_gl_widget_realize ()
GdkGLExt-Message:  -- Window: screen number = 0
GdkGLExt-Message:  -- Window: visual id = 0x27
GdkGLExt-Message:  ** glXMakeCurrent ()
GdkGLExt-Message:  -- _gdk_gl_context_set_gl_drawable ()
GdkGLExt-Message:  ** glXSwapBuffers ()
GtkGLExt-Message:  -- gtk_gl_widget_unrealize ()
GdkGLExt-Message:  - gdk_window_unset_gl_capability ()
GdkGLExt-Message:  -- _gdk_gl_window_destroy ()
GdkGLExt-Message:  ** glXMakeCurrent ()
GdkGLExt-Message:  - GLX_MESA_release_buffers - not supported
GdkGLExt-Message:  - gdk_gl_get_GLX_MESA_release_buffers () - not supported
GdkGLExt-Message:  -- gdk_gl_window_impl_x11_finalize ()
GdkGLExt-Message:  -- _gdk_gl_window_destroy ()
GdkGLExt-Message:  -- gdk_gl_window_finalize ()
GtkGLExt-Message:  -- gtk_gl_widget_destroy_gl_context ()
GdkGLExt-Message:  -- _gdk_gl_context_destroy ()
GdkGLExt-Message:  -- gdk_gl_context_remove ()
GdkGLExt-Message:  -- Destroy GL context hash table.
GdkGLExt-Message:  ** glXDestroyContext ()

Any help would be appreciated, as my program has this problem as well.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]