Hi Gianni, The stack trace for OSG-3.2 suggests that removed View's Camera is still assigned to the Geometry context, and you change to setGraphicsContext(0) address this. The CompositeViewer::removeView(..) should probably do the reset of the Camera so they are no longer assigned to GraphicsContext's, however, this would force applications to have to reassign the view's Camera to the GraphicsContext. The other alternative would be to reset the NodeMask of the Camera to 0x0 so it's not rendered.
The OSG-3.1.4 crash looks likely to be a dangling pointer or an accessing an empty array, this code no longer exists so unlikely to be an issue for OSG-3.2 and svn/trunk. Robert. On 5 December 2013 16:09, Gianni Ambrosio <[email protected]> wrote: > Hi All, > in case this solution may be useful for others, I fixed the crash just > setting the graphics context of the removing view to 0: > > view->getCamera()->setGraphicsContext(0); > > I also tried to stop camera threads but I got a null OperationThread so > that would not help much. > > Waiting for Robert's opinion, I would leave with this fix in my > application. > > Regards, > Gianni > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=57560#57560 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

