Are you doing this in the same thread ? You might want to post more of the code your using, to give folks a chance to see what may at issue
__________________________________________________________ Gordon Tomlinson Email : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __________________________________________________________ "Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival" -Master Tambo Tetsura -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz Sent: 30 May 2008 04:02 To: OpenSceneGraph Users Subject: Re: [osg-users] Error in Viewer.Frame() 1) If there was a call stack in that email, I missed it. 2) Does the problem occur on SVN head? 3) Can you post an .osg file that reproduces the problem in osgviewer? -Paul On May 29, 2008, at 8:40 PM, Mike Greene wrote: > Using Windows XP, VS2005 debug, OSG 2.3.7. > > Getting an exception in viewer.frame(OSGSimTime); the first > time through the render loop. Looking at the auto variable values, it > appears that BoundingSphere has returned an error. > > I do call : > terrainGroup->addChild(terrainNode); > const osg::BoundingSphere bs = terrainNode->getBound(); > > but not in the actual render loop. Its value seem OK. > > The actual exception occurs > in > <vector> > > at this line here: > > _Myt& operator++() > { // preincrement > --> this line _SCL_SECURE_VALIDATE(this->_Mycont != NULL); > _SCL_SECURE_VALIDATE_RANGE(_Myptr < ((_Myvec *)(this- > >_Mycont))->_Mylast); > ++_Myptr; > return (*this); > }- > > VStudio Auto variable values: > > _Mycont 0x00000000 {_Myfirstiter=??? } const > std::_Container_base * > _Myfirstiter CXX0017: Error: symbol "" not found > - this {_ptr=0xffffffff } > std > ::_Vector_const_iterator > <osg::ref_ptr<osg::Node>,std::allocator<osg::ref_ptr<osg::Node> > > > * const > - ptr {_ptr=0xffffffff } osg::ref_ptr<osg::Node> > - _ptr 0xffffffff {_initialBound={...} > _computeBoundCallback={...} _boundingSphere={...} ...} osg::Node * > + osg::Object {_name={...} _dataVariance=??? > _userData={...} } osg::Object > + _initialBound {_center={...} _radius=??? } > osg::BoundingSphere > + _computeBoundCallback {_ptr=??? } > osg::ref_ptr<osg::Node::ComputeBoundingSphereCallback> > - _boundingSphere {_center={...} _radius=??? } > osg::BoundingSphere > - _center {_v=0x0000004b } osg::Vec3f > - _v 0x0000004b float [3] > [0] CXX0030: Error: expression cannot be evaluated > [1] CXX0030: Error: expression cannot be evaluated > [2] CXX0030: Error: expression cannot be evaluated > _radius CXX0030: Error: expression cannot be evaluated > _boundingSphereComputed CXX0030: Error: expression cannot > be evaluated > _parents {_Myfirst=??? _Mylast=??? _Myend=??? } > std::vector<osg::Group *,std::allocator<osg::Group *> > > + _updateCallback {_ptr=??? } > osg::ref_ptr<osg::NodeCallback> > _numChildrenRequiringUpdateTraversal CXX0030: Error: > expression cannot be evaluated > + _eventCallback {_ptr=??? } > osg::ref_ptr<osg::NodeCallback> > _numChildrenRequiringEventTraversal CXX0030: Error: > expression cannot be evaluated > + _cullCallback {_ptr=??? } > osg::ref_ptr<osg::NodeCallback> > _cullingActive CXX0030: Error: expression cannot be > evaluated > _numChildrenWithCullingDisabled CXX0030: Error: > expression cannot be evaluated > _numChildrenWithOccluderNodes CXX0030: Error: expression > cannot be evaluated > _nodeMask CXX0030: Error: expression cannot be evaluated > _descriptions {_Myfirst=??? _Mylast=??? _Myend=??? } > std > ::vector > <std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > ,std > ::allocator > <std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > > > + _stateset {_ptr=??? } osg::ref_ptr<osg::StateSet> > > > > > > > Stack Trace : > > > osg33-osgd.dll! > std > ::_Vector_const_iterator > <osg::ref_ptr<osg::Node>,std::allocator<osg::ref_ptr<osg::Node> > > >::operator++() Line 117 + 0x33 bytes C++ > osg33-osgd.dll! > std > ::_Vector_iterator > <osg::ref_ptr<osg::Node>,std::allocator<osg::ref_ptr<osg::Node> > > >::operator++() Line 337 C++ > osg33-osgd.dll!osg::Group::traverse(osg::NodeVisitor & > nv={...}) Line 60 + 0x8 bytes C++ > osg33-osgd.dll!osg::NodeVisitor::traverse(osg::Node & > node={...}) Line 181 + 0x1c bytes C++ > osg33-osgUtild.dll!osgUtil::GLObjectsVisitor::apply(osg::Node & > node={...}) Line 36 + 0xf bytes C++ > osg33-osgd.dll!osg::NodeVisitor::apply(osg::Group & > node={...}) Line 236 + 0x22 bytes C++ > osg33-osgd.dll!osg::Group::accept(osg::NodeVisitor & nv={...}) > Line 38 + 0x41 bytes C++ > osg33-osgd.dll!osg::Group::traverse(osg::NodeVisitor & > nv={...}) Line 62 + 0x25 bytes C++ > osg33-osgd.dll!osg::NodeVisitor::traverse(osg::Node & > node={...}) Line 181 + 0x1c bytes C++ > osg33-osgUtild.dll!osgUtil::GLObjectsVisitor::apply(osg::Node & > node={...}) Line 36 + 0xf bytes C++ > osg33-osgd.dll!osg::NodeVisitor::apply(osg::Group & > node={...}) Line 236 + 0x22 bytes C++ > osg33-osgd.dll!osg::NodeVisitor::apply(osg::Transform & > node={...}) Line 248 + 0x22 bytes C++ > osg33-osgd.dll!osg::NodeVisitor::apply(osg::Camera & > node={...}) Line 249 + 0x22 bytes C++ > osg33-osgd.dll!osg::Camera::accept(osg::NodeVisitor & > nv={...}) Line 46 + 0x41 bytes C++ > osg33-osgUtild.dll!osgUtil::GLObjectsOperation::operator() > (osg::GraphicsContext * context=0x033a6dc0) Line 174 + 0x2f > bytes C++ > osg33-osgd.dll!osg::GraphicsOperation::operator()(osg::Object * > object=0x033a6dc0) Line 50 + 0x19 bytes C++ > osg33-osgd.dll!osg::OperationThread::run() Line 413 + 0x26 > bytes C++ > osg33-osgd.dll!osg::GraphicsThread::run() Line 40 C++ > ot10-OpenThreadsd.dll! > OpenThreads::ThreadPrivateActions::StartThread(void * > data=0x032b29b8) Line 112 + 0xf bytes C++ > msvcr80d.dll!_callthreadstartex() Line 348 + 0xf bytes C > msvcr80d.dll!_threadstartex(void * ptd=0x0320de50) Line 331 C > kernel32.dll!7c80b50b() > [Frames below may be incorrect and/or missing, no symbols loaded > for kernel32.dll] > kernel32.dll!7c8399f3() > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org