Hi Robert,
Attached is a fix for a crash that occurs in the statshandler.cpp when no
scene is added to the viewer, but the scene statistics are requested. (Press
's' four times). Also attached is a minimal program that reproduces the
problem. Change is based on SVN rev 9169.
As a side note, I took the liberty to change whitespace in several places in
the source file. What is your policy towards whitespace changes?
Cheers,
Erik den Dekker
// OSG includes
#include <osg/Node>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
// To reproduce crash press 's' four times to show scene statistics
int main(int argc, char* argv[])
{
osgViewer::Viewer viewer;
viewer.addEventHandler(new osgViewer::StatsHandler);
//viewer.setSceneData(new osg::Node); // Crash disappears when minimal scene
data is added to the viewer
viewer.run();
return 0;
}
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org