-
Notifications
You must be signed in to change notification settings - Fork 361
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
LargestEmptyCircle crash on malformed input #1003
Comments
Moving the point input around also changes nothing, the problem seems to be in the facet distance search. It's not the 3-edge polygon, other 3-edge polygons work, and if you round the triangle coordinates even more, so it's a one-unit edge, the crash goes away too. |
Works in JTS. |
It looks like the issue is the horizontal botton edge of the triangle ( |
@pramsey @dr-jts are you sure this isn't a recent issue. I saw the error locally when I was fixing the garden tests, but even with my fixes I didn't see berrie and berrie64 (the two raspberry pis we have testing PostGIS and GEOS). But then I realized I had them testing against 3.12.0 (instead of following the branches). I'm going to check the GEOS old versions I have lieing around to check, but given JTS can't trigger it, I'm thinking its an issue introduced in a recent micro release. |
Sounds good, I'll check too. |
You are correct, 3.12.0 does not crash. |
It might be due to #939. But that may not help - it's probably just the change that reveals the problem. |
I just tested on 3.12.2dev and no crash (so looks like this is a new issue in 3.13 cycle) |
* Fix and tests for GH-1003 * Call to init() was missing? Does not explain why the bug in the original issue seemed tied to particular coordinates, as the fix will apply across all inputs. So be warned, there may still be something hiding in there.
From https://trac.osgeo.org/postgis/ticket/5626#comment:3
Test case for LargestEmptyCircleTest.cpp
This doesn't appear to be structural, other combinations of point geometry outside of the polygon boundary don't yield a crash. On the other hand, the crash doesn't seem to be a tightly bounded numerical issue, as this rounded up version of the initial bug report still crashes.
The text was updated successfully, but these errors were encountered: