-
Notifications
You must be signed in to change notification settings - Fork 98
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
Infinite loop with some input coordinates #16
Comments
tested on both clang 8 and gcc 8, at -O0 as well as -O3 |
Could be related to mapbox/delaunator#44 which got fixed on the JS side. |
I can confirm that infinite loops happen quite often in my automatic map process tool, that performs thousands and thousands of Delauney triangulations. |
Fixes delfrrr#16 to prevent infinite recursion when a triangle was previously deleted from hull_next. Port of fix in original JavaScript mapbox/delaunator#44
Thanks for the tip @prapin . I just contributed PR for that patch if they want to integrate it to save someone some effort in the future. |
I confirm the fix works, please merge the PR by @esilvia |
You might have more luck with https://github.com/abellgithub/delaunator-cpp, which is a more actively maintained port — this one seems to have been abandoned. |
this gets stuck in
delaunator::Delaunator::legalize(unsigned long)
.Running with -fsanitize=integer yields some unsigned overflow, maybe that could be a cause ?
The text was updated successfully, but these errors were encountered: