Skip to content

function CompleteRing() cause access violation exception. #153

@CougarsJ

Description

@CougarsJ

Enumerate a pbf file (https://download.geofabrik.de/antarctica-latest.osm.pbf) by the following code:

var featureSource=new PBFOsmStreamSource("pbf file").Where((osm)=>osm.Visible??true).ToComplete().ToFeatureSource();
int count=0;
foreach( var feature in featureSource)
{
count++;
}
When count is 71588, the osm object will be an realtion which id is 2988513, it will cause access violation exception.
It occur when run function CompleteRing in DefaultFeatureInterpreter.cs. It seems CompleteRing run in recursively, cause the stack overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions