[osg-users] ref null pointer in Group::traverse

Sebastian Schmidt herrdersuppen at gmail.com
Thu Mar 16 08:06:30 PDT 2017


Sometimes my app is crashing in 

Code:

void Group::traverse(NodeVisitor& nv)
{
    for(NodeList::iterator itr=_children.begin();
        itr!=_children.end();
        ++itr)
    {
        (*itr)->accept(nv);
    }
}



where the first element of children is present (a MatrixTransform node), but the _ptr of the second child is 0x0.

It always happens during the initialization of my scene.

Its also mentionable that im using osg 3.0.1 with ThreadPerCamera and a separate ReaderWriter plugin that is drawing texture to PagedLOD objects.

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








More information about the osg-users mailing list