Hello again,

> And I am using exactly the same libs at school as at home for my program, so
> I'm
> running out of ideas... Perhaps OpenSG 1.6.0 has a problem with shaders on
> ATI
> cards? I'll try one of the daily builds to see if that changes anything.

I tried the daily build as of today (2005/11/14) and the program still
segfaults. The backtrace from gdb is :

#0  0x002f2b6f in std::_Rb_tree_decrement () from /usr/lib/libstdc++.so.6
#1  0x0256e3a6 in std::_Rb_tree<std::string, std::string,
std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::insert_unique ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#2  0x07e1a893 in TATILinker::CreateUniformList () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#3  0x07e17496 in TATILinker::link () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#4  0x07e049dd in ShLink () from /usr/X11R6/lib/modules/dri/fglrx_dri.so
#5  0x07a6fec3 in __glslATILinkShaders () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#6  0x07b4ee11 in __R300GLSLLinkProgram () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#7  0x07af6f97 in __glslLinkProgram () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#8  0x07af764d in __glim_LinkProgramARB () from
/usr/X11R6/lib/modules/dri/fglrx_dri.so
#9  0x025bb9c8 in osg::SHLChunk::updateProgram ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#10 0x025c12a7 in osg::SHLChunk::handleGL ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#11 0x0233c832 in osg::Window::validateGLObject ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#12 0x025ade11 in osg::SHLChunk::activate ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#13 0x021f1913 in osg::State::changeFrom ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#14 0x01b7f073 in osg::RenderAction::draw ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#15 0x01b6bf8c in osg::RenderAction::stop ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#16 0x01b5ffb3 in osg::Action::apply ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#17 0x01b6066c in osg::Action::apply ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#18 0x022ac8a8 in osg::PassiveViewport::render ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#19 0x0233880f in osg::Window::renderAllViewports ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#20 0x023379ae in osg::Window::render ()
   from /usr/local/vrjuggler-2.0.1-linux-fc4-i686-deps/lib/libOSGSystem.so
#21 0x0807954f in WaveriderOpenSGApp::draw (this=0x90a7c40) at
./WaveriderOpenSGApp.h:302
#22 0x08067d43 in Waverider::draw (this=0x90a7c40) at waverider.cpp:454
[...]

fglrx_dri is the ATI driver, so I think this confirms that the problem at least
involves ATI's Linux driver. Seems it makes the program segfault when it tries
to link the shaders.

Now, I've done some shader coding on my own (without OpenSG) and I think that
most things (especially a minimal shader like the one I tried here) should work
both on nVidia and ATI in Linux. So I'm not sure what the problem is here.

Also, on the very same machine, vred works and draws the shader correctly! (for
the same scene, as well as other shaders in the examples that come with vred)
That's what's got me stumped...

To recap:
vred:         works
my program:   segfaults
OpenSG tests: segfault

I tried using the libOSG*.so libs that came in the vred archive I downloaded,
but they are linked against libstdc++.so.5, and they cause the program to
segfault as soon as it is run (right at the start). So I can't check if that
would work, but I imagine it would. What would be different between the OpenSG
libs used by vred and the ones in the 2005/11/14 daily build?

Thanks again in helping me pinpoint this...

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to