[osg-users] DatabasePager::DatabaseThread is crashing when DatabasePager has been deleted

Robert Osfield robert.osfield at gmail.com
Sun Mar 25 04:42:15 PDT 2018

Hi Hartwig et. al,

On 25 March 2018 at 11:29, Robert Osfield <robert.osfield at gmail.com> wrote:
> I think there are two bugs here - first of DatabasePager.cpp is
> calling startThead twice, secondly OpenThreads itself isn't catching
> this.
> OpenThreads::Thread::startThread() needs to be modified so that it
> doesn't start a thread that has already been started.  And
> DatabasePager needs to fixed so it doesn't start a thread twice.  Both
> fixes are needed.  I will now have a think about what is the cleanest
> way to implement these fixes.

I have now checked in fixes for OpenThreads and DatabasePager, these
are merged with master, OpenSceneGraph-3.4 and OpenSceneGraph-3.6

Changes are:

Could you test this out with your applications and let me know how you get on.

If it looks good I'll create a 3.6.0-rc2 to wrap them up.

Thanks for pinpointing the bug,

More information about the osg-users mailing list