Re: [osg-users] crash in frame(); in the multithreading

2008-07-22 Thread Robert Osfield
Hi Xiaodong, 2008/7/22 Wu Xiaodong [EMAIL PROTECTED]: Based on your opinion that the crash is a straight iterator invalidation issue due to your add/removing stuff from the scene graph. , can you give me some suggestions on fix the bug? Moving the add/remove out of the callback and into

Re: [osg-users] crash in frame(); in the multithreading

2008-07-21 Thread Wu Xiaodong
Based on your opinion that the crash is *a straight iterator invalidation issue due to your add/removing stuff from the scene graph.* , can you give me some suggestions on fix the bug? the codes was so huge that i can't paste it in mail. Thanks a lot. Xiaodong. On

Re: [osg-users] crash in frame(); in the multithreading

2008-07-21 Thread Wu Xiaodong
I debug my code once more. Your judgment was right. In the single thread, it crashed also. Thanks. Xiaodong 2008/7/22 Wu Xiaodong [EMAIL PROTECTED]: Based on your opinion that the crash is *a straight iterator invalidation issue due to your add/removing stuff from the scene graph.* ,

Re: [osg-users] crash in frame(); in the multithreading

2008-07-18 Thread Robert Osfield
Hi Xiadong, If you are updating StateSet/StateAttribute or Drawables/Geometry in your update then you should mark their DataVariance to DYNAMIC so that the draw traversal knows not to release the current frame till they are all done. Robert. 2008/7/18 Wu Xiaodong [EMAIL PROTECTED]: Hi.

Re: [osg-users] crash in frame(); in the multithreading

2008-07-18 Thread Wu Xiaodong
In my case, I added some new child-node to a group-node, then it crashed some times; Could the bug be fixed if i call osg::Group::setDataVariancefile:///E:/Oil/OpenSceneGraphReferenceDocs/a01315.html#a11( )? thanks. 2008/7/18 Robert Osfield [EMAIL PROTECTED]: Hi

Re: [osg-users] crash in frame(); in the multithreading

2008-07-18 Thread Robert Osfield
2008/7/18 Wu Xiaodong [EMAIL PROTECTED]: In my case, I added some new child-node to a group-node, then it crashed some times; Could the bug be fixed if i call osg::Group::setDataVariance ( )? Setting DataVariance on the Group will have no effect, it only is critical for StateSet and Drawable.

[osg-users] crash in frame(); in the multithreading

2008-07-17 Thread Wu Xiaodong
Hi. I begin a new thread for osg::Viewer()::frame(); I create a simple scene , then call osg::Viewer::frame() ; it all works well; while I add some chilld-nodes to a group node, then it crashed in frame(); Is the error generated because of the