gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.48k stars 774 forks source link

Crash in FeatureImage Layer #2439

Closed gwaldron closed 2 months ago

gwaldron commented 7 months ago

Describe the bug FeatureImage is causing a crash, somewhat repeatable, after running a path for a while. The crash may be related to what appears to be an "orphaned" oe.rex.loadtile thread.

To Reproduce

  1. Download the attached earth file and animation path
  2. Run osgearth_viewer a.earth --path saved_animation.log
  3. Attach with your debugger (e.g. VS2022)

Screenshots Shot of the VS2022 Parallel Stacks window showing the orphaned thread: image

Desktop (please complete the following information): Windows 11, VS2022, RTX2070

Additional context Neither the progressive setting nor the presence of imgui affect the outcome.

Earth file (a.earth):

<map>
    <XYZFeatures name="data:osm-water">
        <url>http://readymap.org/readymap/mbtiles/osm-water/{z}/{x}/{-y}.pbf</url>
        <min_level>0</min_level>
        <max_level>12</max_level>
        <profile>spherical-mercator</profile>
        <format>pbf</format>
    </XYZFeatures>

    <FeatureImage name="Water" features="data:osm-water" max_level="11" open="true">
        <styles>
            <style type="text/css">
                default {
                   fill: #ff0000;
                }
            </style>
        </styles>
    </FeatureImage>    
</map>

saved_animation.log