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

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Jan 30 15:27:03 PST 2020

On Wednesday, January 29, 2020 at 11:02:48 AM UTC+1, Robert Osfield wrote:
> 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:
>    osgDB::Registry::instance()->getObjectCache()->clear();
> 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.
> Cheers,
> Robert.
Hi Robert,
Thank you for the help.
Manually clearing the registry fixed my crash on exit.
I will continue testing the next rc, so far so good.


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/9062cb33-09fa-496a-8852-c7ffc1e826ac%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200130/af8d4fb2/attachment.html>

More information about the osg-users mailing list