Hello Johannes, On 08/22/2013 09:27 AM, Johannes Brunen wrote: > after sync with the current git repository I'm facing regressions. > Before sync I used > 07f0f9932c1cc3b76467e970d88da7fe816d1e21 refs/remotes/origin/master > and now I have > e2968e3610a39dac56eddcc308b94ef8f9498b79 refs/remotes/origin/master > > After creation of to geometry solids and changing the color of one of > them I get a crash in either > > OSGShaderValueVariable.cpp at line 114 > or i > OSGStateOverride.inl at line 10 > depending of the program method I use for material color change. > ######################################################################## > ###########################
> In the first case I have the following callstack: [SNIP] > with > -parentsIt {_posIt=5 } > OSG::ParentMFieldConstIterator<OSG::ParentPointerMField<OSG::FieldContai > ner *,OSG::NoRefCountPolicy,1> > > > -std::_Vector_const_iterator<OSG::FieldContainer > *,std::allocator<OSG::FieldContainer *> > > 0x00000000081efa40 {_pAspectStore=0x0000000000000000 > _pFieldFlags=0x0000000000000000 _mfChangedFunctors={...} ...} > std::_Vector_const_iterator<OSG::FieldContainer > *,std::allocator<OSG::FieldContainer *> > > > -ptr 0x00000000081efa40 {_pAspectStore=0x0000000000000000 > _pFieldFlags=0x0000000000000000 _mfChangedFunctors={...} ...} > OSG::FieldContainer * > > +OSG::ReflexiveContainer {_bvChanged=18446744073709551615 > _pContainerChanges=0x0000000000000000 _uiContainerId=1073745672 } > OSG::ReflexiveContainer > > +_pAspectStore 0x0000000000000000 {_vAspects=[...]() > _uiSpinLock=??? _refCount=??? } OSG::AspectStore * > > +_pFieldFlags 0x0000000000000000 {_bSyncFlags=??? > _bThreadLocalFlags=??? _bClusterLocalFlags=??? ...} > OSG::FieldFlags * > > +_mfChangedFunctors {_values={...} _uiSharedWith=0 } > OSG::MField<OSG::ChangedFunctorCallback,0,std::allocator<OSG::ChangedFun > ctorCallback> > > > _iRefCount 0 long > > _iWeakRefCount 0 > long > > +_posIt 5 > std::_Vector_const_iterator<unsigned short,std::allocator<unsigned > short> > hmm, this looks like the object is dead (both ref counts are 0)... > ######################################################################## > ########################### > > > > In the second case I have the following callstack: > > > > OSGSystemD.dll!std::vector<OSG::ShaderProgramVariableChunk * > __ptr64,std::allocator<OSG::ShaderProgramVariableChunk * __ptr64> >> ::_Orphan_range(OSG::ShaderProgramVariableChunk * * > _First=0x000000000bc30ca0, OSG::ShaderProgramVariableChunk * * > _Last=0x000000000bc30ca8) Line 1279 + 0xd bytes C++ > > OSGSystemD.dll!std::vector<OSG::ShaderProgramVariableChunk * > __ptr64,std::allocator<OSG::ShaderProgramVariableChunk * __ptr64> >> ::erase(std::_Vector_const_iterator<OSG::ShaderProgramVariableChunk > *,std::allocator<OSG::ShaderProgramVariableChunk *> > * > _First_arg=0x000000000e25d180 {_uiVarId=1 _uiChunkId=165 }, > std::_Vector_const_iterator<OSG::ShaderProgramVariableChunk > *,std::allocator<OSG::ShaderProgramVariableChunk *> > * > _Last_arg=0x000000001477dd40 {_uiChunkId=1 }) Line 1048 C++ > > OSGSystemD.dll!std::vector<OSG::ShaderProgramVariableChunk * > __ptr64,std::allocator<OSG::ShaderProgramVariableChunk * __ptr64> >> ::clear() Line 1060 + 0xd1 bytes C++ > > OSGSystemD.dll!OSG::StateOverride::reset() Line 107 C++ since it crashes in std::vector<>::clear() I'd suspect that this also operates on a dead object. > ######################################################################## > ########################### > > As OSGShaderValueVariable.cpp does have changed between the two versions > and because my code seems to work stable until recently, I suspect that > something bogus has slipped in? :-) > Below you can also find the logging to the two cases. > > Any idea what goes wrong here? > Sorry for this noisy mail but I have no clue what is actually happening. Hmm, unfortunately neither do I and I'm not even sure how I should go about looking for the source of the problem :( Cheers, Carsten ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users