HI Tugkan,

The most likely cause is state or drawables being updated while the
draw thread is still reading from them, the mechanism to prevent the
them overlapping this is based on the use of DataVariance being set to
DYNAMIC.  See my previous posts on this topic.


Robert.

On 2/21/07, Tugkan Calapoglu <[EMAIL PROTECTED]> wrote:

Hi,

I've run into a problem regarding DrawThreadPerContext mode. At the
moment our application is stable with other threading modes but in
DrawThreadPerContext mode it crashes in a few seconds.

I've updated OSG from SVN today in the morning. Platform is SusE9.3,
Intel Core 2 Duo.

Stack trace is at the end of the email. Note the 'attribute=0x0' in the
beginning (#0)

osgviewer alone works well with the same models. So something that is
done in runtime should be the reason. However I can not see what can be
done wrong to have a NULL attribute there ( StateSet::setAttribute*
methods check whether the input argument is NULL so I think that
possiblity is ruled out).

I've simplified our application to such a degree that it does not render
anything. It just starts a viewer and thats it. Still it crashes.



#0  0x40ddbf9e in osg::State::applyAttribute (this=0x813e750,
attribute=0x0, [EMAIL PROTECTED]) at ../../../include/osg/State:927
#1  0x40e88cfc in osg::State::applyAttributeList (this=0x813e750,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at
../../../include/osg/State:1422
#2  0x40e84981 in osg::State::apply (this=0x813e750, dstate=0xa4c4848)
at ../State.cpp:301
#3  0x4124fbe2 in osgUtil::RenderLeaf::render (this=0x8105648,
[EMAIL PROTECTED], previous=0x0) at ../RenderLeaf.cpp:71
#4  0x412461f4 in osgUtil::RenderBin::drawImplementation
(this=0xf14ebf8, [EMAIL PROTECTED], [EMAIL PROTECTED]) at
../RenderBin.cpp:427
#5  0x41245f45 in osgUtil::RenderBin::draw (this=0xf14ebf8,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at ../RenderBin.cpp:370
#6  0x4124638c in osgUtil::RenderBin::drawImplementation
(this=0x80de7e8, [EMAIL PROTECTED], [EMAIL PROTECTED]) at
../RenderBin.cpp:457
#7  0x41256400 in osgUtil::RenderStage::drawImplementation
(this=0x80de7e8, [EMAIL PROTECTED], [EMAIL PROTECTED]) at
../RenderStage.cpp:1004
#8  0x41245f45 in osgUtil::RenderBin::draw (this=0x80de7e8,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at ../RenderBin.cpp:370
#9  0x412556c6 in osgUtil::RenderStage::drawInner (this=0x80de7e8,
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED])
at ../RenderStage.cpp:718
#10 0x41255e5a in osgUtil::RenderStage::draw (this=0x80de7e8,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at ../RenderStage.cpp:880
#11 0x41264864 in osgUtil::SceneView::draw (this=0xbf526d8) at
../SceneView.cpp:1305
#12 0x41709776 in ViewerDoubleBufferedRenderingOperation::draw
(this=0x8104bf8) at ../Viewer.cpp:411
#13 0x4170765b in ViewerDoubleBufferedRenderingOperation::operator()
(this=0x8104bf8, object=0x80f9a78) at ../Viewer.cpp:544
#14 0x40e1ba0f in osg::GraphicsContext::runOperations (this=0x80f9a78)
at ../GraphicsContext.cpp:426
#15 0x41707ca3 in ViewerRunOperations::operator() (this=0xf1fbba8,
object=0x80f9a78) at ../Viewer.cpp:969
#16 0x40e21416 in osg::OperationsThread::run (this=0x91b7910) at
../GraphicsThread.cpp:290
#17 0x414528f5 in OpenThreads::ThreadPrivateActions::StartThread () from
/usr/local/lib/libOpenThreads.so
#18 0x414fdaa7 in start_thread () from /lib/tls/libpthread.so.0
#19 0x40b96c2e in clone () from /lib/tls/libc.so.6


--
Tugkan Calapoglu

-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463640
fax      +49.8031.463645
email    [EMAIL PROTECTED]
internet www.vires.com
-------------------------------------
Sitz der Gesellschaft: Rosenheim
Handelsregister Traunstein  HRB 10410
Geschaeftsfuehrer: Marius Dupuis
                    Wunibald Karl
-------------------------------------
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to