[osg-submissions] FW: osgViewer/Viewer causing crash with threading
Sir Magic
sirmagic at hotmail.com
Mon Jul 30 09:55:30 PDT 2007
I am working with OpenSceneGraph version 2.0 but the same problem
exists in 2.1.1.
Sorry if this is my mistake, but
I am realizing a viewer before my scene has been added.
In single threaded mode I have no problem.
I when I set threading to DrawThreadPerContext I get a crash.
I have reviewed the code and the problem occurs in
Viewer::startThreading
Early on there is a
if (getSceneData())
test and special processing for is the scene is present.
The next reference to getSceneData - the statement :
getSceneData()->accept(sodv);
is unprotected and will crash if scene data has not been loaded.
In order to get past this crash I have added a test
if (getSceneData())
around the allocation of the StaticObjectDetectionVisitor and the
getSceneData()->accept.
Leo
_________________________________________________________________
Windows Live Hotmail is the next generation of MSN Hotmail. Its fast,
simple, and safer than ever and best of all its still free. Try it today!
www.newhotmail.ca?icid=WLHMENCA146
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Viewer.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070730/70a2d418/attachment-0001.pot
More information about the osg-submissions
mailing list