Re: [osg-users] svn trunk osgsimulation

2010-02-20 Thread Robert Osfield
Hi Martin,

I'm getting a crash with osgsimulation as well, with the same strack
trace as well.  Now investigating...

Robert.

On Sat, Feb 20, 2010 at 10:53 AM, Martin Naylor
martin.nay...@dsl.pipex.com wrote:
 Hi all,

 I am getting a crash when running osgsimulation.

 Attached is a screen shot, sorry for the binary, I compressed it the best I
 can.

 Here is the call stack below if it helps.

 Every other example is working ok, I had to disable the aero desktop to make
 osgshadow and prerender examples or use alt-tab to bring it back into focus,
 for some reason those examples lose focus when aero is switched on.







     osg63-osgd.dll!osg::computeLocalToWorld(const
 std::vectorosg::Node *,std::allocatorosg::Node *  
 nodePath=[1](0x {_initialBound={...} _computeBoundCallback={...}
 _boundingSphere={...} ...}), bool ignoreCameras=true)  Line 98    C++


 osg63-osgViewerd.dll!ViewerCoordinateFrameCallback::getCoordinateFrame(const
 osg::Vec3d  position={...})  Line 114 + 0x15 bytes C++


 osg63-osgGAd.dll!osgGA::MatrixManipulator::getCoordinateFrame(const
 osg::Vec3d  position={...})  Line 77 + 0x37 bytes  C++


 osg63-osgGAd.dll!osgGA::DriveManipulator::computeHomePosition()  Line 123 +
 0x13 bytes  C++

     osg63-osgGAd.dll!osgGA::DriveManipulator::setNode(osg::Node
 * node=0x002f4a18)  Line 80 + 0x1e bytes   C++


 osg63-osgGAd.dll!osgGA::KeySwitchMatrixManipulator::setNode(osg::Node *
 node=0x002f4a18)  Line 85 + 0x28 bytes C++


 osg63-osgViewerd.dll!osgViewer::View::setCameraManipulator(osgGA::MatrixManipulator
 * manipulator=0x003619b8, bool resetPosition=true)  Line 349 + 0x32
 bytes    C++

     osgsimulationd.exe!main(int argc=1, char * *
 argv=0x002d44b0)  Line 488 + 0x1c bytes   C++

     osgsimulationd.exe!__tmainCRTStartup()  Line 586 + 0x19
 bytes   C

     osgsimulationd.exe!mainCRTStartup()  Line 403
 C



 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] svn trunk osgsimulation

2010-02-20 Thread Robert Osfield
Hi Martin,

On Sat, Feb 20, 2010 at 4:32 PM, Robert Osfield
robert.osfi...@gmail.com wrote:
 I'm getting a crash with osgsimulation as well, with the same strack
 trace as well.  Now investigating...

I have replaced the local adhoc std::vectorosg::obsever_ptr with
the new osg::ObserverNodePath with a thread safe container for
observing node path and now it works just fine.

Could you please do an svn update and let me know how your get on.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] svn trunk osgsimulation

2010-02-20 Thread Martin Naylor
Hi Robert,
That works great now.

Thanks

Martin.



-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: 20 February 2010 17:39
To: OpenSceneGraph Users
Subject: Re: [osg-users] svn trunk osgsimulation

Hi Martin,

On Sat, Feb 20, 2010 at 4:32 PM, Robert Osfield
robert.osfi...@gmail.com wrote:
 I'm getting a crash with osgsimulation as well, with the same strack
 trace as well.  Now investigating...

I have replaced the local adhoc std::vectorosg::obsever_ptr with
the new osg::ObserverNodePath with a thread safe container for
observing node path and now it works just fine.

Could you please do an svn update and let me know how your get on.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] svn trunk osgsimulation

2010-02-20 Thread Robert Osfield
On Sat, Feb 20, 2010 at 6:55 PM, Martin Naylor
martin.nay...@dsl.pipex.com wrote:
 Hi Robert,
 That works great now.

Excellent news.

I believe the crash was paradoxically down to a problem elsewhere in
the OSG (to osgGA) meant that a bug in the coordinate frame code went
unnoticed, once the other problem was fixed the coordinate frame code
bug was revealed.  The fix was to replace the node path tracking code
in osgViewer::View with the new dedicated osg::ObserverNodePath which
properly detects deletion of nodes.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org