Robert Osfield wrote:
HI Tugkan,

The most likely cause is state or drawables being updated while the
draw thread is still reading from them, the mechanism to prevent the
them overlapping this is based on the use of DataVariance being set to
DYNAMIC.  See my previous posts on this topic.



Hi Robert,

I've worked more on the subject and repeated the crash in a simple application derived from osgviewer. You can find it attached. Unlike our application it also happens in SingleTreaded mode here. As far as I understand the new threading system it should be safe to access the scene graph outside the frame() method. And anyway it is single threaded mode here.

As I was working on this problem I ran into another problem also. If I call viewer.getCamera()->getOrCreateStateSet()->setDataVariance( osg::Object::DYNAMIC ) before the main loop and switch to DrawThreadPerContext mode using 'm' application freezes.

See if blocks at the end of the main(). First block is for freezing and the second block is for crash.



Tugkan

-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463640
fax      +49.8031.463645
email    [EMAIL PROTECTED]
internet www.vires.com
-------------------------------------
Sitz der Gesellschaft: Rosenheim
Handelsregister Traunstein  HRB 10410
Geschaeftsfuehrer: Marius Dupuis
                   Wunibald Karl
-------------------------------------

Attachment: osgviewer.cpp.tar.gz
Description: GNU Zip compressed data

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to