[osg-users] OSG 2.1.10 crash in osgText / osgdb_freetyped

Robert Osfield robert.osfield at gmail.com
Fri Sep 14 02:36:43 PDT 2007


Hi Gert,

Is this in your own application or one of the OSG examples?

Are you creating text and then updating per frame?

Are you running osgViewer multi-threaded?  If so which threading model?

One possibility is that the new DrawThreadPerContext threaded model is
overlapping the drawing of the text with any updating of the text.
The way to prevent problems like this is to explictly set the data
variance on the text to DYNAMIC so that the draw traversal knows to
hold back the next frame till all the dynamic objects have been
dispatched.  You can ensure this via:

     myText->setDataVariance(osg::Object::DYNAMIC);

Robert.

On 9/14/07, Gert van Maren <gert at k2vi.com> wrote:
> Hi guys,
>
> Still getting crashes on dual core machines in osg21-osgTextd.dll /
> osg21-osgd.dll (with 2.1.10 (also 2.1.9)). It seems to do with the
> osgdb_freetyped.dll because when we disable all osgText in our app -> the
> osgdb_freetyped.dll does not get loaded hence no crashes. If I disable
> dual core in the bios, I can have text -> no crashes.
>
> So when running dual core -> still osgText crashes.
>
> below: the 'windows' output for 2 crashes and I have attached a call stack
> as well.
>
> 'v3_viewerd.exe': Loaded
> 'D:\OpenSceneGraph-2.1.10\OpenSceneGraph\bin\osgplugins-2.1.10\osgdb_freetyped.dll',
> Symbols loaded.
> First-chance exception at 0x00cd1161 (osg21-osgTextd.dll) in
> v3_viewerd.exe: 0xC0000005: Access violation reading location 0x00000000.
> First-chance exception at 0x7c812a5b in v3_viewerd.exe: Microsoft
> C++ exception: [rethrow] @ 0x00000000.
>
> 'v3_viewerd.exe': Loaded
> 'D:\OpenSceneGraph-2.1.10\OpenSceneGraph\bin\osgplugins-2.1.10\osgdb_freetyped.dll',
> Symbols loaded.
> First-chance exception at 0x008b4232 (osg21-osgd.dll) in v3_viewerd.exe:
> 0xC0000005: Access violation reading location 0x0006ffff.
>
> Hopefully this points to the bug.
>
> Gert
>
>
> --
> Gert van Maren
>
> Head of Research & Development
> K2Vi Virtual Reality Software
> Data Interface Technologies Ltd
>
> Phone: +64 21 2855581
> Email: gert at k2vi.com
> Web: http://www.k2vi.com
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>



More information about the osg-users mailing list