Hello, 

I'm getting a segmentation fault in Group::traverse() and have no idea how to 
even start debugging this.  The stack trace looks like this: 


> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x9e23eb90 (LWP 13804)]
> 0x006783f8 in osg::Group::traverse () from /usr/lib/libosg.so.55
> (gdb) bt
> #0  0x006783f8 in osg::Group::traverse () from /usr/lib/libosg.so.55
> #1  0x003bd88c in osgUtil::GLObjectsVisitor::apply () from 
> /usr/lib/libosgUtil.so.55
> #2  0x006bc028 in osg::NodeVisitor::apply () from /usr/lib/libosg.so.55
> #3  0x0067a3bd in osg::Group::accept () from /usr/lib/libosg.so.55
> #4  0x00918d3c in osgViewer::Renderer::compile () from 
> /usr/lib/libosgViewer.so.55
> #5  0x0091d933 in osgViewer::Renderer::draw () from 
> /usr/lib/libosgViewer.so.55
> #6  0x00917cb8 in osgViewer::Renderer::operator() () from 
> /usr/lib/libosgViewer.so.55
> #7  0x0066e4c9 in osg::GraphicsContext::runOperations () from 
> /usr/lib/libosg.so.55
> #8  0x00675fbd in osg::RunOperations::operator() () from /usr/lib/libosg.so.55
> #9  0x006760c7 in osg::GraphicsOperation::operator() () from 
> /usr/lib/libosg.so.55
> #10 0x006c8598 in osg::OperationThread::run () from /usr/lib/libosg.so.55
> #11 0x00676149 in osg::GraphicsThread::run () from /usr/lib/libosg.so.55
> #12 0x00c5ec2b in OpenThreads::ThreadPrivateActions::StartThread () from 
> /usr/lib/libOpenThreads.so.11
> #13 0x00c4749b in start_thread () from /lib/libpthread.so.0
> #14 0x010c242e in clone () from /lib/libc.so.6
> 


I am running multiple threads, one creates the scene graph and there are 4 
camera threads that render it with different perspectives.  I noticed that OSG 
has mutex's built in, but I haven't been able to find much documentation on 
them and don't know how to use them correctly.  I would appreciate any help 
that could get me going in the right direction.  

Thanks!

-vinay

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16149#16149





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to