Skip to content

function CompleteRing() cause access violation exception. #153

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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