HI Stephan, Its frustrating to here my fixes didn't cure things under OSX. From the stack traces its clear there is a deadlock, but as to the cause... well I don't know. I have a dual core machine here, and aren't able to reproduce the problem.
At the beginning of June I'll be doing some pair wise programming with a student, he'll be bringing along his G5 so we will hopefully be able to doing some serious testing on it. This is rather later in the day for 2.0, but there a chance I might be able to find a 11th hour fix then. BTW, what happens when apps like osgwindows run? Robert. On 5/21/07, Stephan Huber <[EMAIL PROTECTED]> wrote:
Hi Robert, Robert Osfield schrieb: > Could peeps do svn update and test things and let me know how you get on. Here are my observations on OS X: osgcamera -s -2 cow.osg works as expected now -- after closing the last window, the app terminates osgcamera -d -2 cow.osg same problem as reported previously: osg::OperationsThread::cancel() called from the main-thread is waiting, and the other threads are waiting inside a mutex.lock() called from : #2 0x000b4db9 in OpenThreads::Mutex::lock at PThreadMutex.c++:122 #3 0x204befae in OpenThreads::ScopedLock<OpenThreads::Mutex>::ScopedLock at ScopedLock:31 #4 0x204dd16c in ViewerDoubleBufferedRenderingOperation::draw at Viewer.cpp:368 #5 0x204dda3c in ViewerDoubleBufferedRenderingOperation::operator() at Viewer.cpp:556 #6 0x010a19f6 in osg::GraphicsContext::runOperations at GraphicsContext.cpp:426 #7 0x204d5544 in ViewerRunOperations::operator() at Viewer.cpp:986 #8 0x010a445b in osg::OperationsThread::run at GraphicsThread.cpp:290 #9 0x000b51b0 in OpenThreads::ThreadPrivateActions::StartThread at PThread.c++:158 here's the output of ogs::notifyLevel(INFO): close(1)0x5139e0 Cancelling OperationsThred 0x56dfd0 isRunning()=1 Doing cancel 0x56dfd0 Waiting for OperationsThread to cancel 0x56dfd0 Waiting for OperationsThread to cancel 0x56dfd0 Waiting for OperationsThread to cancel 0x56dfd0 Waiting for OperationsThread to cancel 0x56dfd0 . . . osgcamera -g -2 cow.osg seme problem as -d, after closing one window the app is locked: main thread: #2 0x000b4458 in OpenThreads::Barrier::block at PThreadBarrier.c++:182 #3 0x204aaad5 in osgViewer::Viewer::renderingTraversals at Viewer.cpp:2106 #4 0x204af52f in osgViewer::Viewer::frame at Viewer.cpp:1702 #5 0x000046f5 in main at osgcamera.cpp:326 rendering threads: #2 0x000b4458 in OpenThreads::Barrier::block at PThreadBarrier.c++:182 #3 0x010a3d9e in osg::BarrierOperation::operator() at GraphicsThread.cpp:339 #4 0x010a445b in osg::OperationsThread::run at GraphicsThread.cpp:290 #5 0x000b51b0 in OpenThreads::ThreadPrivateActions::StartThread at PThread.c++:158 #6 0x90024987 in _pthread_body here's the output with INFO: close(1)0x5139e0 Cancelling OperationsThred 0x56e160 isRunning()=1 Doing cancel 0x56e160 Waiting for OperationsThread to cancel 0x56e160 exit loop 0x56e160 isRunning()=1 OperationsThread::cancel() thread cancelled 0x56e160 isRunning()=0 Cancelling OperationsThred 0x56e160 isRunning()=0 OperationsThread::cancel() thread cancelled 0x56e160 isRunning()=0 Releasing GL objects for Camera=0x200e800 _state=0x513cd0 Closing still viable window 0 _state->getContextID()=5 Doing Flush Done Flush 100 GraphicsContext::decrementContextIDUsageCount(5) to 0 osgcamera -c cow.osg: hangs on startup -- the stack-traces are similar to -g: main thread: #2 0x000b4458 in OpenThreads::Barrier::block at PThreadBarrier.c++:182 #3 0x204aade1 in osgViewer::Viewer::renderingTraversals at Viewer.cpp:2152 #4 0x204af52f in osgViewer::Viewer::frame at Viewer.cpp:1702 #5 0x000046f5 in main at osgcamera.cpp:326 threads 2-7 #2 0x000b4458 in OpenThreads::Barrier::block at PThreadBarrier.c++:182 #3 0x010a3d9e in osg::BarrierOperation::operator() at GraphicsThread.cpp:339 #4 0x010a445b in osg::OperationsThread::run at GraphicsThread.cpp:290 #5 0x000b51b0 in OpenThreads::ThreadPrivateActions::StartThread at PThread.c++:158 #6 0x90024987 in _pthread_body threads 8-12 #2 0x000b4db9 in OpenThreads::Mutex::lock at PThreadMutex.c++:122 #3 0x204befae in OpenThreads::ScopedLock<OpenThreads::Mutex>::ScopedLock at ScopedLock:31 #4 0x204dd16c in ViewerDoubleBufferedRenderingOperation::draw at Viewer.cpp:368 #5 0x204dda3c in ViewerDoubleBufferedRenderingOperation::operator() at Viewer.cpp:556 #6 0x010a19f6 in osg::GraphicsContext::runOperations at GraphicsContext.cpp:426 #7 0x204d5544 in ViewerRunOperations::operator() at Viewer.cpp:986 #8 0x010a445b in osg::OperationsThread::run at GraphicsThread.cpp:290 #9 0x000b51b0 in OpenThreads::ThreadPrivateActions::StartThread at PThread.c++:158 #10 0x90024987 in _pthread_body Hope that helps to narrow it down, Stephan _______________________________________________ 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/
