I believe this has been fixed in the trunk. But there is no official
release containing this fix just yet.
It happens with just about any osg::Program/Shader.

/A

On Wed, Feb 24, 2016 at 7:42 PM, Trajce Nikolov NICK <
[email protected]> wrote:

> Hi Community,
>
> I've been fighting with cleaning of ref_ptrs when using osgShadow. It
> crashes in deleting the pointer. This is odd but attached is very simple
> example, osgviewer just with adding it to a shadowed scene with some
> technique.
>
> Any clue? Sample attached
>
>
> Thanks a bunch as always !
>
> Cheers,
> Nick
>
> void Referenced::signalObserversAndDelete(bool signalDelete, bool
> doDelete) const
> {
> #if defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
>     ObserverSet* observerSet =
> static_cast<ObserverSet*>(_observerSet.get());
> #else
>     ObserverSet* observerSet = static_cast<ObserverSet*>(_observerSet);
> #endif
>
>     if (observerSet && signalDelete)
>     {
>         observerSet->signalObjectDeleted(const_cast<Referenced*>(this));
>     }
>
>     if (doDelete)
>     {
>         if (_refCount!=0)
>             OSG_NOTICE<<"Warning Referenced::signalObserversAndDelete(,,)
> doing delete with _refCount="<<_refCount<<std::endl;
>
>         if (getDeleteHandler()) deleteUsingDeleteHandler();
>         CRASHES HERE -----> else delete this;
>     }
> }
>
> --
> trajce nikolov nick
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
__________________________________________
Anders Backman, HPC2N
90187 UmeƄ University, Sweden
[email protected] http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to