Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Robert Osfield
Hi Nick, How are you removing the view? From an event handler from within the view? If so then this will crash as you'll be deleting the object you are doing the work from. The right way remove a view is outside of frame(). Robert. On Wed, Dec 23, 2009 at 12:56 PM, Trajce Nikolov

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Trajce Nikolov
Hi Robert, now I did it outside frame. Id doesnt crash anymore ... but, it hangs at _endDynamicDrawBlock-block(); void ViewerBase::renderingTraversals() after view removal I have composite viewer with setThreadingModel(osgViewer::CompositeViewer::CullThreadPerCameraDrawThreadPerContext); any

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Robert Osfield
Hi Nick, Try calling stopThreading() before you remove the view, and startThreading() after you've done it. Robert. On Wed, Dec 23, 2009 at 3:46 PM, Trajce Nikolov nikolov.tra...@gmail.com wrote: Hi Robert, now I did it outside frame. Id doesnt crash anymore ... but, it hangs at

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Trajce Nikolov
Hi Robert, now it hangs at // dispatch the rendering threads if (_startRenderingBarrier.valid()) _startRenderingBarrier-block(); the same method Nick http://www.linkedin.com/in/tnick Sent from Istanbul, 34, Turkey On Wed, Dec 23, 2009 at 6:04 PM, Robert Osfield

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Robert Osfield
HI Nick, On Wed, Dec 23, 2009 at 4:27 PM, Trajce Nikolov nikolov.tra...@gmail.com wrote: Hi Robert, now it hangs at // dispatch the rendering threads     if (_startRenderingBarrier.valid()) _startRenderingBarrier-block(); the same method Is this during the the stopThreading() call? After?

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Trajce Nikolov
here is the code snippet mLib-getViewer()-stopThreading(); mLib-getViewer()-removeView(view); mLib-getViewer()-startThreading(); it is called before viewer-frame() let me investigate this a bit more. I tried to reproduce the problem with osgcompositeviewer example, but there is works Nick

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Trajce Nikolov
I figured out the conditions. In the scene, I have a model that has cameras (pre-render) attached to some portion of the models via textures. When I load that model, then it hangs. Without this model, everything looks just fine Nick http://www.linkedin.com/in/tnick On Wed, Dec 23, 2009 at

Re: [osg-users] CompositeViewer::removeView crashes

2009-12-23 Thread Trajce Nikolov
I had to setSceneData(0) before removing the view to make it work,. If you areintersted I can put a sample test case reproducing the problem Nick http://www.linkedin.com/in/tnick On Wed, Dec 23, 2009 at 8:47 PM, Trajce Nikolov nikolov.tra...@gmail.comwrote: I figured out the conditions. In