Hi,
Ok I have done the following:
Rolled back OSG to 13049: Worked Great with all shaders.
Rolled forward to 13050: Crash Occurs, so its looking like those
changes/driver/GL4.2 that is causing the crash, not mine or Torben's system.
I don't want to rebuild mine either ;)
I see no Nvdia dll in the call stack, not sure if I should, so am thinking
an OSG problem(please take with a pinch of salt).
So I have had a go at debugging, its beyond me but a couple of questions to
help me in my pursuit.
The call before the crash in the vector stl lib is:
if (_extensions->isShaderAtomicCounterSupported())
{
std::vector<GLint> bufferIndex( atomicCounterMap.size(), 0 );
std::vector<GLuint> uniformIndex;
for (AtomicCounterMap::iterator it = atomicCounterMap.begin(), end =
atomicCounterMap.end();
it != end; ++it)
{
uniformIndex.push_back(it->first);
}
_extensions->glGetActiveUniformsiv( _glProgramHandle,
uniformIndex.size(),
&(uniformIndex[0]),
GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX,
&(bufferIndex[0]) );
The above is doing a for loop and pushing the first item back, whilst
debugging the 'end' has a bad_ptr, is this correct?
Also why ++it and not it++ ?
It's something in the above code(or related changes) which is causing the
crash as if I try a simpleton fix by changing 'if
(_extensions->isShaderAtomicCounterSupported())' to be a if not statement it
works fine.
Any pointers (no pun intended) would be much appreciated.
Thanks
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Torben
Dannhauer
Sent: 04 April 2012 12:47
To: [email protected]
Subject: Re: [osg-users] problem with svn (atomic counter?)
Hi Martin,
yes, my error also claims to happen in the vector header, but the question
is what causes it, the code inthat file is used for longer times.
regarding the 4.2 and older graphics you may be right! Anyway, I'm happy I
still have a chance to avoid a complete reinstall of my machine :)
I'm looking forward to your results! Unfortunately I'll be on the road for
the next 10 days (starting tomorrow) and have only my notebook with me. For
that days I cannot run test on my machine but I'm still available for
discussion!
Thank you!
Cheers,
Torben
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46794#46794
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org