Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function CompleteRing() cause access violation exception. #153

Open
CougarsJ opened this issue Aug 15, 2024 · 0 comments
Open

function CompleteRing() cause access violation exception. #153

CougarsJ opened this issue Aug 15, 2024 · 0 comments

Comments

@CougarsJ
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant