vector iterator not incrementable

classic Classic list List threaded Threaded
2 messages Options
lher86 lher86
Reply | Threaded
Open this post in threaded view
|

vector iterator not incrementable

When I remove a ElevationLayer and add a new Elevation layer I get an error "vector iterator not incrementable" in the next osgEarth code:

void Group::traverse(NodeVisitor& nv)
{
    for(NodeList::iterator itr=_children.begin();
        itr!=_children.end();
        ++itr)
    {
        (*itr)->accept(nv);
    }
}

The trace is:

////////////////////////////////////////////////////////////////////////////////////////
....
[osgEarth]  [RexTerrainEngineNode] Creating 1 root keys.
[osgEarth]  [TileNode] notify (create) key 0/0/0
[osgEarth]  Intersection of SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [ImageLayer] "C:\Users\USUARIO\Downloads\pruebatrazado.jp2" create image for "0/0/0", ext= SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N
[osgEarth]  GET ISECTING TILES for key 0/0/0 -----------------
[osgEarth]    Dest Tiles: 0,0 => 1,1
[osgEarth]  [Profile] GIT, key=0/0/0, localLOD=1, resulted in 4 tiles
[osgEarth]  Intersection of SW=712294.443905,4668897.01383 NE=718475.360757,4672660.9485, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712294.443905,4668897.01383 NE=718475.360757,4672660.9485, SRS=ETRS89 / UTM zone 30N
[osgEarth]  Intersection of SW=712294.443905,4668897.01383 NE=718475.360757,4672660.9485, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712294.443905,4668897.01383 NE=718475.360757,4672660.9485, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [GDAL driver] ReadWindow 0,0 1b3fx1098
[osgEarth]  [GDAL driver] DestWindow 0,0 100x100
[osgEarth]  [GDAL driver] Could not determine bands based on color interpretation, using band count
[osgEarth]  Intersection of SW=712294.443905,4665133.07916 NE=718475.360757,4668897.01383, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712294.443905,4665133.07916 NE=718475.360757,4668897.01383, SRS=ETRS89 / UTM zone 30N
[osgEarth]  Intersection of SW=712294.443905,4665133.07916 NE=718475.360757,4668897.01383, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712294.443905,4665133.07916 NE=718475.360757,4668897.01383, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [GDAL driver] ReadWindow 0,1097 1b3fx1098
[osgEarth]  [GDAL driver] DestWindow 0,0 100x100
[osgEarth]  [GDAL driver] Could not determine bands based on color interpretation, using band count
[osgEarth]  Intersection of SW=718475.360757,4668897.01383 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=718475.360757,4668897.01383 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N
[osgEarth]  Intersection of SW=718475.360757,4668897.01383 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=718475.360757,4668897.01383 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [GDAL driver] ReadWindow 1b3f,0 1b3fx1098
[osgEarth]  [GDAL driver] DestWindow 0,0 100x100
[osgEarth]  [GDAL driver] Could not determine bands based on color interpretation, using band count
[osgEarth]  Intersection of SW=718475.360757,4665133.07916 NE=724656.277609,4668897.01383, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=718475.360757,4665133.07916 NE=724656.277609,4668897.01383, SRS=ETRS89 / UTM zone 30N
[osgEarth]  Intersection of SW=718475.360757,4665133.07916 NE=724656.277609,4668897.01383, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=718475.360757,4665133.07916 NE=724656.277609,4668897.01383, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [GDAL driver] ReadWindow 1b3f,1097 1b3fx1098
[osgEarth]  [GDAL driver] DestWindow 0,0 100x100
[osgEarth]  [GDAL driver] Could not determine bands based on color interpretation, using band count
[osgEarth]  [GeoImage] Source image is 200x200 in PROJCS["ETRS89 / UTM zone 30N",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System_1989",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4258"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-3],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","25830"]]
[osgEarth]  Creating warped output of 100x100 in PROJCS["ETRS89 / UTM zone 30N",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System_1989",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4258"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-3],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","25830"]]
[osgEarth]  Reprojected image in 42.981300
[osgEarth]  [ImageLayer] "C:\Users\USUARIO\Downloads\pruebatrazado.jp2" 0/0/0 result OK
[osgEarth]  [TerrainTileModelFactory] No HF at key 0/0/0, making placeholder
[osgEarth]  [LoadTileData] apply 0/0/0
[osgEarth]  [Layer] Layer "TerrainSource" ~Layer
[osgEarth]  [SpatialReference] allocating new OCT Transform
[osgEarth]  hashConfFinal = {
   "" : {
      "max_level" : 2.0
   }
}

[osgEarth]  [TerrainLayer] Layer "TerrainSource" Override profile: [srs=UTM Zone 30, Northern Hemisphere, min=712588.48,4666205.539 max=724360.8100000001,4671589.19 lod0=1,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "TerrainSource" Get Profile from tile source
[osgEarth]  [TerrainLayer] Layer "TerrainSource" Profile=[srs=UTM Zone 30, Northern Hemisphere, min=712588.48,4666205.539 max=724360.8100000001,4671589.19 lod0=1,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "TerrainSource" cache=none; policy=read-write; bin=no
[osgEarth]  [RexTerrainEngineNode] Creating 1 root keys.
[osgEarth]  [TileNode] notify (create) key 1/0/0
[osgEarth]  [TileNode] notify (create) key 0/0/0
[osgEarth]  Intersection of SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N and SW=712294.443905,4665133.07916 NE=724656.277609,4672660.9485, SRS=ETRS89 / UTM zone 30N is: SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N
[osgEarth]  [ImageLayer] "C:\Users\USUARIO\Downloads\pruebatrazado.jp2" create image for "0/0/0", ext= SW=712588.48,4666205.539 NE=724360.81,4671589.19, SRS=ETRS89 / UTM zone 30N
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9BA0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9F78.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-0.99611 0.86946, -1 0.930125) and LINESTRING (-1 0.930125, -1 0.867863) at -1 0.93012511397932929 1.7976931348623157e+308
[osgEarth] [TrianTileSource] 0/0/0
[osgEarth]  [LoadTileData] apply 0/0/0
[osgEarth]  [TileNode] notify (create) key 1/1/0
[osgEarth]  [TileNode] notify (create) key 1/0/1
[osgEarth]  [TileNode] notify (create) key 1/1/1
[osgEarth]  [TileNode] notify (create) key 2/0/0
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-0.99611 0.799585, -1 0.86025) and LINESTRING (-1 0.86025, -1 0.797988) at -1 0.86025022795865858 1.7976931348623157e+308
[osgEarth]  [TileNode] notify (create) key 2/1/0
[osgEarth]  [TileNode] notify (create) key 2/0/1
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-0.99611 1.79958, -1 1.86025) and LINESTRING (-1 1.86025, -1 1.79799) at -1 1.8602502279586586 1.7976931348623157e+308
[osgEarth]  [TileNode] notify (create) key 2/1/1
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-1.99611 0.799585, -2 0.86025) and LINESTRING (-2 0.86025, -2 0.797988) at -2 0.86025022795865858 1.7976931348623157e+308
[osgEarth]  [TileNode] notify (create) key 2/2/0
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-2.99611 0.799585, -3 0.86025) and LINESTRING (-3 0.86025, -3 0.797988) at -3 0.86025022795865858 1.7976931348623157e+308
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [TileNode] Tile 2/3/0 is empty.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-1.99611 1.79958, -2 1.86025) and LINESTRING (-2 1.86025, -2 1.79799) at -2 1.8602502279586586 1.7976931348623157e+308
[osgEarth]  [TileNode] notify (create) key 2/2/1
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F98D0.
Excepción producida en 0x00007FF9BCA39129 en curvado.exe: excepción de Microsoft C++: geos::util::TopologyException en la ubicación de la memoria 0x00000093A35F9CA8.
[osgEarth]  [Geometry] Crop(GEOS): TopologyException: found non-noded intersection between LINESTRING (-2.99611 1.79958, -3 1.86025) and LINESTRING (-3 1.86025, -3 1.79799) at -3 1.8602502279586586 1.7976931348623157e+308
[osgEarth]  [TileNode] notify (create) key 2/3/1
[osgEarth]  [TileNode] Tile 2/0/2 is empty.
[osgEarth]  [TileNode] notify (create) key 2/1/2
[osgEarth]  [TileNode] Tile 2/0/3 is empty.
[osgEarth]  [TileNode] Tile 2/1/3 is empty.
[osgEarth]  [TileNode] notify (create) key 2/2/2
[osgEarth]  [TileNode] notify (create) key 2/3/2
[osgEarth]  [TileNode] notify (create) key 2/2/3
[osgEarth]  [TileNode] notify (create) key 2/3/3
Debug Assertion Failed!

Program: C:\WINDOWS\SYSTEM32\MSVCP140D.dll
File: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vector
Line: 102

Expression: vector iterator not incrementable


////////////////////////////////////////////////////////////////

I would appreciate your help

Thanks


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

Re: vector iterator not incrementable

This sort of thing is almost always a threading problem. You must only alter the map from the main thread or the osg update traversal.
Glenn Waldron / Pelican Mapping