[osg-submissions] [osg-users] Thread safety improvements and CullThreadPerCameraDrawThreadPerContext now working

Stephan Maximilian Huber ratzfatz at digitalmind.de
Thu Aug 23 06:49:25 PDT 2007


Hi Robert,

Robert Osfield schrieb:
> Could users that have seen problems with crash on exit, or with the
> CullThreadPerCameraDrawThreadPerContext threading model do a svn
> update and let me know how you get on.

ON OS X CullThreadPerCameraDrawThreadPerContext didn't work at all, 
after starting the app, the app hang without rendering a frame. Today I 
did a update und rerun osgcamera -2 -c and it worked! Nice job :)

But: after toggling the stats via pressing 2x "s" and then try to quit I 
got a crash here:

#0    0x00243757 in osg::ref_ptr<osg::State>::get at ref_ptr:71
#1    0x002504eb in osg::RenderInfo::getState at RenderInfo:52
#2    0x0025a8ba in osgUtil::SceneView::getState at SceneView:173
#3    0x0022db52 in osgViewer::Renderer::draw at Renderer.cpp:309
#4    0x0022e56f in osgViewer::Renderer::operator() at Renderer.cpp:562
#5    0x010a3fd0 in osg::GraphicsContext::runOperations at 
GraphicsContext.cpp:654
#6    0x010a7495 in osg::RunOperations::operator() at GraphicsThread.cpp:134
#7    0x010a6d6e in osg::GraphicsOperation::operator() at 
GraphicsThread.cpp:50
#8    0x010b2a29 in osg::OperationThread::run at OperationThread.cpp:413
#9    0x010a6cdd in osg::GraphicsThread::run at GraphicsThread.cpp:38
#10    0x000211b0 in OpenThreads::ThreadPrivateActions::StartThread at 
PThread.c++:158

Attached you'll find a fix for this crash.

When the osgcamera starts I get sometimes a crash (not always) I'll post 
some stack traces if I find some more time.

cheers + thanks :)

Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Renderer.cpp.zip
Type: application/x-zip-compressed
Size: 3899 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070823/5a3374b9/attachment.bin 


More information about the osg-submissions mailing list