Crashing while loading the cache

classic Classic list List threaded Threaded
4 messages Options
DanielMartin DanielMartin
Reply | Threaded
Open this post in threaded view
|

Crashing while loading the cache

Hello, I have a .earth file that contains some larger files as well as a filesystem cache option:
  
  <options>
    <cache>
      <type>filesystem</type>
      <path>\mapdata\cache</path>
    </cache>
  </options>
If I delete my filesystem cache, I get a crash on startup - and I suspect it is because the filesystem cache is being built & loaded before it is ready to be rendered. If I put in a sleep (about 2.5 seconds) or I do not delete this file system cache, then it works just fine. Is there a way to setup a callback, or some kind of querying mechanism, to tell when the filesystem cache is built and fully loaded before I start to render?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Crashing while loading the cache

Daniel,
Please tell us your osgEarth/OSG versions, and please provide a debug stack trace of the crash. Thanks.
Glenn Waldron / Pelican Mapping
DanielMartin DanielMartin
Reply | Threaded
Open this post in threaded view
|

Re: Crashing while loading the cache

I am using osgEarth 2.7 and osg 3.4.0

The stack trace on the crash is slightly different each time, but it seems that these 3 are the most common:



gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Crashing while loading the cache

Daniel,
Not sure what the issue may be - but I highly recommend you upgrade to a more recent version of both SDKs and see if you have better luck.
Glenn Waldron / Pelican Mapping