Hi Marco,

On Wed, 2004-12-08 at 10:32, Marco Spatz wrote:
> Hi Dirk,
> 
> thanks for your help. I changed my working machine, but I still get the 
> same errors (The linux distribution is still the same).
> Here are the requested system infos:
> 
> uname -a
> Linux dhcp27 2.6.8-24-default #1 Wed Oct 6 09:16:23 UTC 2004 i686 i686 
> i386 GNU/Linux
> 
> cat /etc
> SuSE Linux 9.2 (i586)
> VERSION = 9.2

I assume that's a stock Suse 9.2.

> glxinfo
> name of display: :0.0
...
> OpenGL renderer string: Quadro4 750 XGL/AGP/SSE2
> OpenGL version string: 1.5.1 NVIDIA 61.11
> OpenGL extensions:
...
>     GL_EXT_compiled_vertex_array, GL_EXT_draw_range_elements,

OK, the extensions is here.

...
> 
> ls -l /usr/lib/*GL*
> lrwxrwxrwx  1 root root      21 2004-12-07 17:33 /usr/lib/libGLcore.so.1 
> -> libGLcore.so.1.0.6111
> -rwxr-xr-x  1 root root 7132152 2004-12-07 17:33 
> /usr/lib/libGLcore.so.1.0.6111
> -rw-r--r--  1 root root     653 2004-12-07 17:33 /usr/lib/libGL.la
> lrwxrwxrwx  1 root root      10 2004-12-07 17:33 /usr/lib/libGL.so -> 
> libGL.so.1
> lrwxrwxrwx  1 root root      17 2004-12-07 17:33 /usr/lib/libGL.so.1 -> 
> libGL.so.1.0.6111
> -rwxr-xr-x  1 root root  423832 2004-12-07 17:33 /usr/lib/libGL.so.1.0.6111
> -rw-r--r--  1 root root  666770 2004-10-04 19:55 /usr/lib/libGLU.a
> lrwxrwxrwx  1 root root      13 2004-12-07 16:38 /usr/lib/libGLU.so -> 
> libGLU.so.1.3
> lrwxrwxrwx  1 root root      13 2004-12-07 16:21 /usr/lib/libGLU.so.1 -> 
> libGLU.so.1.3
> -rwxr-xr-x  1 root root  573295 2004-10-04 19:55 /usr/lib/libGLU.so.1.3
> lrwxrwxrwx  1 root root       7 2004-12-07 16:38 /usr/lib/libMesaGL.a -> 
> libGL.a
> lrwxrwxrwx  1 root root       8 2004-12-07 16:38 /usr/lib/libMesaGL.so 
> -> libGL.so
> lrwxrwxrwx  1 root root      10 2004-12-07 16:21 /usr/lib/libMesaGL.so.3 
> -> libGL.so.1
> lrwxrwxrwx  1 root root       8 2004-12-07 16:38 /usr/lib/libMesaGLU.a 
> -> libGLU.a
> lrwxrwxrwx  1 root root       9 2004-12-07 16:38 /usr/lib/libMesaGLU.so 
> -> libGLU.so
> lrwxrwxrwx  1 root root      11 2004-12-07 16:21 
> /usr/lib/libMesaGLU.so.3 -> libGLU.so.1
>                                                                               
>                                                           
> 
> /usr/lib/GL:
> insgesamt 596
> lrwxrwxrwx  1 root root     12 2004-12-07 16:21 libGL.so.1 -> libGL.so.1.2
> -rwxr-xr-x  1 root root 603462 2004-10-04 19:55 libGL.so.1.2

Hm, ok so you do have the old, non-nVidia OpenGL libs still there. That
shouldn't be a problem, but just in case, can you try calling ldd on
your executable?

> We'd like to change the used GUI-lib if we want to (currently, we're 
> only using QT, but that might change), therefore we don't use QGLWidget.

OK, makes sense.


> I'm using a quite actual version (CVS Tree updated last week)

OK, there are no changes after that.

> That's the output of OSG_LOG_LEVEL=7 right before the crash
> 
> DEBUG: Window 0x0x83a6660 (event 163,ri:36,rf:36): Validating object 2: 
> last reinit:0, last validate:0 last refresh: 10 => init
> INFO: Window::getFunction: function "glLockArraysEXT" is NULL!
...
> DEBUG: Window 0x83a6660: GL Extensions: GL_ARB_depth_texture 
...
> GL_EXT_blend_subtract GL_EXT_compiled_vertex_array 
...
> WARNING: Window::getFunctionByName: Couldn't get function 
> 'glProgramStringARB' f
> or Window 0x83a6660.
... (not a single extension function is found!)
> WARNING: Window::getFunctionByName: Couldn't get function 
> 'glDrawRangeElementsEX
> T' for Window 0x83a6660.
> DEBUG: Window(0x83a6660): Constant 0x84e2 value is 4.000 -inf
> DEBUG: Window(0x83a6660): Constant 0x8872 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x8871 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x84e2 value is 4.000 -inf
> DEBUG: Window(0x83a6660): Constant 0x8872 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x8871 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x84e2 value is 4.000 -inf
> DEBUG: Window(0x83a6660): Constant 0x8872 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x8871 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x84e2 value is 4.000 -inf
> DEBUG: Window(0x83a6660): Constant 0x8872 value is -inf -inf
> DEBUG: Window(0x83a6660): Constant 0x8871 value is -inf -inf
> WARNING: Constant Registration failed: invalid enumerant (0x500)
> WARNING: MatrixPerspective: fovy 0 very small!
> 
> WARNING: MatrixPerspective: near 0 ~= far 0!
> 
> WARNING: MatrixPerspective: fovy 0 very small!

I'm stumped! The driver is reasonably up-to-date, and it says that the
usual extensions are supported, but then when you ask for any actual
function all you get is NULL! This doesn't make sense at all!

Can you run any other OpenSG applications, or any other applications
that use extensions? Is anybody else using a Suse 9.2 with a Quadro 4
that could confirm this problem?

I attached a small patch for OSGWindow.cpp, can you please apply that
and try it again, it should give a little more information about what's
going on.

Thanks

        Dirk

Index: OSGWindow.cpp
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/Window/OSGWindow.cpp,v
retrieving revision 1.39
diff -u -3 -p -r1.39 OSGWindow.cpp
--- OSGWindow.cpp	24 Nov 2004 23:37:52 -0000	1.39
+++ OSGWindow.cpp	10 Dec 2004 01:31:46 -0000
@@ -1250,6 +1250,11 @@ OSG::Window::GLExtensionFunction OSG::Wi
             FWARNING(("Error in dlopen: %s\n",dlerror())); 
             abort(); 
         } 
+        else
+        {
+            FDEBUG(("Opened lib %s for GL extension handling.\n", 
+                    (_glLibraryName==NULL)?"(executable)":_glLibraryName));
+        }
     } 
 
     if(__GetProcAddress == NULL) 
@@ -1268,7 +1273,15 @@ OSG::Window::GLExtensionFunction OSG::Wi
                 _availExtensions.clear();
                 _availExtensions.resize(_registeredExtensions.size(), false);
             } 
+            else
+            {
+                FDEBUG(("Using glXGetProcAddressARB for GL extension handling.\n"));
+            }
         } 
+        else
+        {
+            FDEBUG(("Using glXGetProcAddress for GL extension handling.\n"));
+        }
     } 
 
     if(__GetProcAddress != NULL) 

Reply via email to