[osg-users] OpenSceneGraph-3.6.5 release candidate 2 tagged, please test

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Jan 29 02:02:47 PST 2020

Hi Fabian,

On Wednesday, 29 January 2020 00:24:35 UTC, Fabian Roth wrote:
> Hi Chris,
> I am using the latest openmw master with the compatibility patch from the 
> pull request cherry picked, my build changes and minor other tweaks.
> I use the osg rc with a only a cmake version change.
> The branches are here:
> https://github.com/Eli2/openmw/tree/eli2-openmw-static
> https://github.com/Eli2/OpenSceneGraph/tree/eli2-openmw-static
> By now i strongly suspect i run into the "Static Initialization Order 
> Fiasco", as described here:
> https://cryptopp.com/wiki/Static_Initialization_Order_Fiasco
> I am currently looking into why my build uses the default font.

The way that the singleton methods are done is an attempt to resolve the 
construction order issue, but l don't recall a focus on the destruction 
side.  It could well be an issue.

One workaround might be to add a mutex directly to the Font objects that 
are being destructed rather than using the global one.  Or, to explicitly 
clear the ObjectCache on destruction rather than leaving it to static clean 
up.  The later would be my preferred approach.

A call to:


In application clean up should be sufficient, or force the destruction of 
the Registry singleton:

   osgDB::Registry::instance(true);   // passing in true forces the 
destruction, yes a bit hacky... the OSG has a long history so can't recall 
the circumstances of that addition...

I will hold the 3.6.5 release back till we have some conclusion on this 
issue, in case we need to make changes to the core OSG.



You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/dff4e0d7-343b-4893-bdeb-23e60528f42d%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200129/34d3139a/attachment.html>

More information about the osg-users mailing list