[osg-users] [osgOcean] osgOcean and osgSim::LOS segmentation fault.

Dario Minieri paradox at cheapnet.it
Fri Oct 28 09:20:43 PDT 2016


Hi, 

I'm experiencing some problem using LOS with osgOcean. To understand the problem, I have modified the OceanExample inserting a thread which call a series of LOS. There are some strange segmentation fault that speak about LOS intersection visitor and osgOcean main traverse. Is something like that: 

[code]
0x00007ffff7748f12 in osg::Geometry::accept(osg::PrimitiveFunctor&) const () from /usr/local/lib/libosg.so.100
(gdb) bt
#0  0x00007ffff7748f12 in osg::Geometry::accept(osg::PrimitiveFunctor&) const () from /usr/local/lib/libosg.so.100
#1  0x00007ffff630a1e1 in osgUtil::LineSegmentIntersector::intersect(osgUtil::IntersectionVisitor&, osg::Drawable*) ()
   from /usr/local/lib/libosgUtil.so.100
#2  0x00007ffff62f1b13 in osgUtil::IntersectorGroup::intersect(osgUtil::IntersectionVisitor&, osg::Drawable*) () from /usr/local/lib/libosgUtil.so.100
#3  0x00007ffff62f19ca in osgUtil::IntersectionVisitor::apply(osg::Geode&) () from /usr/local/lib/libosgUtil.so.100
#4  0x0000000000417d42 in osg::Geode::accept(osg::NodeVisitor&) ()
#5  0x00007ffff7773623 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/local/lib/libosg.so.100
#6  0x00007ffff62f4e30 in osgUtil::IntersectionVisitor::apply(osg::Transform&) () from /usr/local/lib/libosgUtil.so.100
#7  0x00007ffff77e0425 in osg::MatrixTransform::accept(osg::NodeVisitor&) () from /usr/local/lib/libosg.so.100
#8  0x00007ffff7773623 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/local/lib/libosg.so.100
#9  0x00007ffff7b97440 in osgOcean::OceanScene::traverse(osg::NodeVisitor&) () from /usr/local/lib/libosgOcean.so
#10 0x00007ffff62f20b4 in osgUtil::IntersectionVisitor::apply(osg::Group&) () from /usr/local/lib/libosgUtil.so.100
#11 0x00007ffff7b98672 in osg::Group::accept(osg::NodeVisitor&) () from /usr/local/lib/libosgOcean.so
#12 0x00007ffff665827d in osgSim::LineOfSight::computeIntersections(osg::Node*, unsigned int) () from /usr/local/lib/libosgSim.so.100
#13 0x00007ffff6659139 in osgSim::LineOfSight::computeIntersections(osg::Node*, osg::Vec3d const&, osg::Vec3d const&, unsigned int) ()
   from /usr/local/lib/libosgSim.so.100
#14 0x000000000040fd39 in MyThread::run() ()
#15 0x00007ffff6032862 in OpenThreads::ThreadPrivateActions::StartThread(void*) () from /usr/local/lib/libOpenThreads.so.20
#16 0x00007ffff433b184 in start_thread (arg=0x7fffed67a700) at pthread_create.c:312
#17 0x00007ffff554337d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
[code]

Is sufficient to move a little the camera to raise up the problem. Seems to be some side-effect interaction among visitors when ocean make an init() because surface become dirty. Masking the Ocean Surface to the LOS doesn't help. Right now I'm not able to fix the problem. Can you addressing me? Maybe a wrong "style" to make that? Example is attached.

Thank you! 

Cheers, 
Dario

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgOceanEXAMPLE_WITH_LOS.zip
Type: application/zip
Size: 22186 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161028/bffde7db/attachment-0002.zip>


More information about the osg-users mailing list