Hi,
We have an application that is outputting a number of osgText::Text objects as
well as some osgLabel objects.
Everything appears to be working fine when compiled against OSG 3.3.1
On the current trunk as of yesterday, I am getting a segfault in osgText
Text.cpp drawImplementation() function.
Code:
if ( !_textureGlyphQuadMap.empty() )
{
const GlyphQuads& glyphquad = (_textureGlyphQuadMap.begin())->second;
if ( glyphquad._transformedCoords[contextID]->empty() )
{
computePositions(contextID);
}
}
In the snippet above, the glyphquad._transformedCoords has 3 items in it.
Items 0 and 1 contain what appear to be valid pointers, but item 2 contains a
NULL pointer. So when the contextID for the current incoming state is 2, we
get the segfault.
I have gone back and looked at the Text and Label objects and they are all
setup with a datavariance of Dynamic since the text can change based on user
selection during runtime, just as something I thought might be related.
I know this is a long shot with such little information, but is there anything
that anyone can tell me that might cause something like this to occur? Has
something changed in this area since OSG release 3.3.1 that we possibly need to
account for now?
Sorry about the code snippet output, not sure what is causing the ?? output in
the code area, as they are just spaces in there.
Thank you,
Cheers
Curtis
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63572#63572
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org