Hi Robert, On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > We are trying to port an osg 1.2 app to 2.0, and we > frequently get crashes when one thread (which is > building an osg scene that is not yet being rendered) > tries to access fonts while the rendering thread is > rendering text.
Another user recently reported problems with loading text in a background thread, which fits your problem too. This was recently and with the SVN version of the OSG so it looks like the problem persists. I suspect the problem is either in src/osgText/Font.cpp or the freetype plugin, or freetype itself. If we can pinpoint where the problem it should be easy to fix - something like adding a mutex to serialize the freetype API access. I don't have an app that recreates this problem with rather limits my ability to reproduce and fix it. So I either need an example that reproduces the problem or for others to dig into the relevant code and fix it. > Also, on a possibly related note, what happened to > "viewer.sync()" in osg 2.0? There doesn't seem to be > anything to replace it. Is it no longer necessary? viewer.sync() is no longer required. The sync is effectively done inside the Viewer::renderingTraversals() method which is dispatched by Viewer:frame(). The updateTraversal() is also could from within frame() as well so one needn't call this either unless you want to replace frame() call by it consitient parts. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

