[osg-users] Please test OpenSceneGraph master in prep for 3.5.6 dev release

Remo Eichenberger osgforum at tevs.eu
Tue Apr 4 06:51:35 PDT 2017


Hi 

I have sometimes crashes on stats (osgText) with Windows:

Expression: vector iterator not dereferencable at


Code:

void Text::accept(osg::PrimitiveFunctor& pf) const
{
    pf.setVertexArray(_coords->size(), &(_coords->front()));
    for(TextureGlyphQuadMap::const_iterator titr=_textureGlyphQuadMap.begin();
        titr!=_textureGlyphQuadMap.end();
        ++titr)
    {
        const GlyphQuads& glyphquad = titr->second;
        if (!glyphquad._primitives.empty())
        {
>>>            pf.drawElements(GL_TRIANGLES, glyphquad._primitives[0]->size(), &(glyphquad._primitives[0]->front()));
        }
    }
}




Code:

>>> reference front() { return _impl.front(); }




It means:


Code:

glyphquad._primitives[0]




Sorry, I have this on a large application. I can't reproduce it on a simpler setup.

Cheers,
Remo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70657#70657








More information about the osg-users mailing list