Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Rick Irons
: OpenSceneGraph Users Subject: Re: [osg-users] CullVisitor object not getting properly deleted Hi Rick, Just tried, static_cast<> isn't usable in this instance thank to the use of virtual inheritance. So the solution I have gone for is refactor the RenderStageCache so that it uses a map> i

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Robert Osfield
gt; osg::ref_ptr. Perhaps doing so will delay the freeing of the CullVisitor >> object long enough within the CullVisitor destructor so that the problematic >> dynamic cast will succeed. I am open to any other suggestions as well. I >> may have to resort to just creating a small exampl

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Robert Osfield
ay have to resort to just creating a small example program that reproduces > the issue. > > > > Thanks, > > Rick > > > > -Original Message- > From: Rick Irons > Sent: Wednesday, May 25, 2016 5:56 AM > To: OpenSceneGraph Users > Subjec

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-26 Thread Rick Irons
sitor object not getting properly deleted Hi Robert, Thanks for the update. I will try out the fix. Rick > On May 24, 2016, at 3:53 PM, Robert Osfield > mailto:robert.osfi...@gmail.com>> wrote: > > Hi Rick, > > After a preplexing day looking at how the

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-25 Thread Rick Irons
Hi Robert, Thanks for the update. I will try out the fix. Rick > On May 24, 2016, at 3:53 PM, Robert Osfield wrote: > > Hi Rick, > > After a preplexing day looking at how the osgUtiil::CullVisitor, > osg::Camera and RenderStageCache were all interacting via the > osg::Observer system I fina

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-24 Thread Robert Osfield
Hi Rick, After a preplexing day looking at how the osgUtiil::CullVisitor, osg::Camera and RenderStageCache were all interacting via the osg::Observer system I finally fixed the problem with the crash that I've see with the osgoit and osgprerender examples. As the crash looks similar to what you

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-24 Thread Rick Irons
Hi Robert, Thanks for the update. Rick From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Tuesday, May 24, 2016 5:11 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CullVisitor object not getting properly deleted Hi Rick, On 23 May

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-24 Thread Robert Osfield
Hi Rick, On 23 May 2016 at 20:33, Rick Irons wrote: > The code where the static cast is failing is OSG code > (openscenegraph\src\osgUtil\CullVisitor.cpp). I believe it is fairly > recent code that was added just prior to the release of 3.4.0. Here is the > OSG 3.5.1 version of the changeā€¦ > h

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-23 Thread Rick Irons
/changeset/14578#file0 Thanks, Rick From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, May 23, 2016 2:02 PM To: OpenSceneGraph Users Subject: Re: [osg-users] CullVisitor object not getting properly deleted Hi Rick, The Object that your

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-23 Thread Robert Osfield
Hi Rick, The Object that your observer is trying to dynamic_cast<> on is in the throws of being destructed - have a look at the stack trace, I'm not surprised this fails. Try removing the use of the dynamic_cast<>, replacing it with a static_cast<>. As long as you don't dereference and just use

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-23 Thread Julien Valentin
Hi Your problem is weird, further I don't understand why you would have to create yourself a cullvisitor... Give us the minimum code to reproduce the error please (and use code section to keep indentation) Rick Irons wrote: > Hi all, > > I am encountering an issue with a CullVisitor object not

[osg-users] CullVisitor object not getting properly deleted

2016-05-23 Thread Rick Irons
Hi all, I am encountering an issue with a CullVisitor object not being properly deleted in version 3.4.0. I am encountering this issue when updating from version 3.0.1. The source of the problem is a failed Referenced to CullVisitor dynamic cast that occurs in the code below... virtu