-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
QGIS crashes with GEOS Exception: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4 #23431
Comments
Author Name: Jukka Rahkonen (Jukka Rahkonen) Source data contains vertices like POINT (25.714286 -90)which are outside the valid area for EPSG:3857 which is "World between 85.06°S and 85.06°N." http://epsg.io/3857. I guess that latitude -90 leads to divide by zero error and it just can't work. Crash is not the best thing to happen but how to prevent it and throw an error instead? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Sandro Santilli (@strk)
QGIS simply crashes in some projects that have specific geometry although I tested the geometry validity and it's all good. The error is: src/core/qgsmessagelog.cpp: 45: (logMessage) [0ms] [thread:0x605ec20] 2016-08-31T21:44:39 GEOS[1] Exception: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4 src/core/geometry/qgsgeos.cpp: 63: (throwGEOSException) [0ms] [thread:0x605ec20] GEOS exception: IllegalArgumentException: RobustDeterminant encountered non-finite numbers The problem was tested under Spatialite and under Postgis.
Depending on the styling/labeling, it may not crash. I can replicate under QGIS 2.14.6 and 2.16.2 Thanks QGIS simply crashes in some projects that have specific geometry although I tested the geometry validity and it's all good. The error is: src/core/qgsmessagelog.cpp: 45: (logMessage) [0ms] [thread:0x605ec20] 2016-08-31T21:44:39 GEOS[1] Exception: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4 src/core/geometry/qgsgeos.cpp: 63: (throwGEOSException) [0ms] [thread:0x605ec20] GEOS exception: IllegalArgumentException: RobustDeterminant encountered non-finite numbers The problem was tested under Spatialite and under Postgis.
Depending on the styling/labeling, it may not crash. I can replicate under QGIS 2.14.6 and 2.16.2 Thanks |
Author Name: Sandro Santilli (@strk) NOTE: the pull request referenced above is for the 2.18 release. I've tried to reproduce this bug on master branch and obtained a different behavior: no crash but nothing rendered (while the patch to 2.18 branch also gives a working rendering) |
Author Name: Sandro Santilli (@strk) I'm reopening to get this also fixed in the master branch, where the crash is not present but the features disappear from the map completely instead, logging the "IllegalArgumentException: Invalid number of points in LinearRing found" message.
|
Author Name: Sandro Santilli (@strk) Actually, as the crash is fixed, I'm closing this again.
|
Author Name: Tudor Bărăscu (@tudorbarascu)
Original Redmine Issue: 15507
Affected QGIS version: 2.18.7
Redmine category:projection_support
Assignee: Sandro Santilli
The problem has also been encountered in the mailing list https://lists.osgeo.org/pipermail/qgis-developer/2016-May/042692.html
QGIS simply crashes in some projects that have specific geometry although I tested the geometry validity and it's all good.
The error is:
The problem was tested under Spatialite and under Postgis.
I've turned feature simplification off in QGIS to no avail.
I've attached data and you can replicate by taking the following steps:
Depending on the styling/labeling, it may not crash.
I can replicate under QGIS 2.14.6 and 2.16.2
Thanks
The text was updated successfully, but these errors were encountered: