Hi Robert, Have this crash on Windows as well.
The problem is that the stats object gets deleted while the 'h' command is processed and there is still a pending reference to this object in the BlockDrawCallback object. The next time this one uses its _stats object, bang. The declaration of the _BlockDrawCallback::_stats member variable is not a ref_ptr. If you change the declaration to a ref_ptr it will work. I'm not sure this is what you want in this context though, as I have not looked at the reason the stats object gets recreated. André -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: February-14-07 2:20 PM To: osg users Subject: Re: [osg-users] Please test CVS version of OpenSceneGraph Hi Stephan, On 2/14/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote: > > Could you do a cvs update and see if the above now work? > > I did a cvs-update and made a clean compile -- I am sorry, your fix does > not work > > osgviewer cow.osg --DrawThreadPerContext will crash after pressing 2 x > 's' and 1 x 'h' Aaarrghghgghghgg!!! I really thought that this was a race condidtion fixable by a Mutex. There is a possibility that that I've missed something in protecting the Stats object, put I thought I was quite thorough. Perhaps this isn't a thread issue at all?|[EMAIL PROTECTED] I really don't have a ideas what to try next. The mutex solved the crash I was seeing before, I'm tempted to comment out the changes and see if I still get the original crash. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
