Hi Robert,
Robert Osfield schrieb:
On 2/14/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote:
Robert Osfield schrieb:
> So please please test the CVS version of the OSG,
On OS X osgviewer crashes:
show the stats via "s" and then show the help via "h" -> bang. Here are
some stacktraces for the various threading-modes:
If you show first the help and then the stats it works, even if you hide
and show the help again.
I am aware of a threading issue with osg::Stats when running SceneView
double buffered which is the case with DrawThreadPerContext or
CullThreadPerCameraDrawTheadPerContext, but there shouldn't be a
thread issue otherwise..
Could you double check the thread models that are active when the
crash happens? How are you setting the thread model?
I am switching the threading-model via 'm'. Regardless, what
threading-model I chose, showing the help after stats will crash. But I
have to show full stats, showing only the fps will work.
I did a quick test and set the threading model to SingleThreaded via
OSG_THREADING, but the crash occurs also.
> my configuration: osg-current, OS X 10.4.8., gcc 4, MacPro quad-core,
NVidia 7300GT
Gotta say you system is totally inbalanced for graphics, huge compute,
tiny graphics...
So its probably best that you sent it along for me to test :-)
:D I would if I have a second inbalanced model next to this.
Another note:
osgpick crashes for me also when hovering the mouse over the quads, but
only if the CullThreadPerCameraDrawThreadPerContext threading-model is
active, all other threading-models work fine.
Here's an example stack trace. It differs from run to run, but it
crashes reliably in osgText::Text::renderOnlyForegroundText
#0 0x01151d45 in osg::StateAttribute::getTypeMemberPair at
StateAttribute:219
#1 0x0116385c in osg::State::applyTextureAttribute at State:328
#2 0x0113b1cd in osgText::Text::renderOnlyForegroundText at Text.cpp:1957
#3 0x0113d6bb in osgText::Text::drawImplementation at Text.cpp:1569
#4 0x0113ddf6 in osgText::Text::drawImplementation at Text.cpp:1460
#5 0x01320505 in osg::Drawable::draw at Drawable:871
#6 0x012753c0 in osgUtil::RenderLeaf::render at RenderLeaf.cpp:60
#7 0x01273202 in osgUtil::RenderBin::drawImplementation at
RenderBin.cpp:407
#8 0x012730af in osgUtil::RenderBin::draw at RenderBin.cpp:370
#9 0x0127345b in osgUtil::RenderBin::drawImplementation at
RenderBin.cpp:457
#10 0x0127861a in osgUtil::RenderStage::drawImplementation at
RenderStage.cpp:982
#11 0x012730af in osgUtil::RenderBin::draw at RenderBin.cpp:370
#12 0x0127a4f6 in osgUtil::RenderStage::drawInner at RenderStage.cpp:718
#13 0x0127a225 in osgUtil::RenderStage::draw at RenderStage.cpp:872
#14 0x01275bf3 in osgUtil::RenderStage::drawPostRenderStages at
RenderStage.cpp:996
#15 0x0127a3b6 in osgUtil::RenderStage::draw at RenderStage.cpp:913
#16 0x01283fcf in osgUtil::SceneView::draw at SceneView.cpp:1305
#17 0x204d46e8 in ViewerDoubleBufferedRenderingOperation::draw at
Viewer.cpp:402
#18 0x204d4cac in ViewerDoubleBufferedRenderingOperation::operator()
at Viewer.cpp:532
#19 0x0029be3c in osg::GraphicsContext::runOperations at
GraphicsContext.cpp:426
#20 0x204cda70 in ViewerRunOperations::operator() at Viewer.cpp:944
#21 0x0029f3d8 in osg::OperationsThread::run at GraphicsThread.cpp:290
#22 0x000d41b8 in OpenThreads::ThreadPrivateActions::StartThread at
PThread.c++:157
#23 0x90023d87 in _pthread_body
Hope that helps to narrow down the problem.
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/