-
-
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
Concave hull crashes program #59778
Comments
@ninafogel, thanks for reporting. How did you install QGIS on macOS (via dmg installer, conda-forge, MacPorts, ...)? Please provide the QGIS full version info ("In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here. Do not make a screenshot."). Please provide a sample layer with which the issue occurs. |
Downloaded from the QGIS website: <style type="text/css"> p, li { white-space: pre-wrap; } </style>
Libraries Active Python plugins |
gbifclean.csv |
I cannot replicate the described issue using QGIS 3.34.13 on Windows 10 (OSGeo4W) with the provided layer and instructions. |
Hi, same problem here with QGIS 3.34 on Ubuntu 22.04, installed with repo https://qgis.org/ubuntu-ltr |
@juliepierson, may you provide a sample layer and step-by-step instruction in order to replicate the issue and may you provide the crash report if available? |
Thanks for your answer @agiudiceandrea . As far as I know, the tool crashes when using any point layer, but here is a test shapefile with a few random points : test.zip To reproduce :
I get this message when launching QGIS from terminal, don't know if it is useful : |
Thanks @juliepierson. You could try to install QGIS in alternative ways in order to let it use a more recent version of the GEOS library. For example, e.g.:
|
Thanks @agiudiceandrea ! I think I will wait until next LTR version, if anyone tests this in the meantime I'll be interested to know if the problem was solved. |
I had the same problem with QGIS Desktop running in a Docker container with version |
@boardend, you probably meant "this is fixed with qgis/qgis:3.40.2 (Ubuntu 24.04.1, with GEOS 3.12.1)" ("Ubuntu 24.04.1" instead of "Ubuntu 22.04.1"). Didn't you? |
@agiudiceandrea |
Oh, no. Dumb me... Sorry @agiudiceandrea, Docker uses the hosts system kernel, so |
Can't replicate on Ubuntu 24.10 (geos 3.12.2). @ninafogel , if this is an issue with an old version of geos, this could already be fixed in a new macos package built against vcpkg which has geos 3.13. You can try these builds a try: #60039 (comment) and confirm whether the issue is fixed there? |
@nirvn, it looks like the issue occurs only using QGIS built against GEOS < 3.11: in this case QGIS uses its own implementation ( QGIS/src/analysis/processing/qgsalgorithmconcavehull.cpp Lines 95 to 99 in f99111c
Since 3.9 <= GEOS versions < 3.11 are still accepted by the build requirements, I think the issue should be addressed since it very likely occurs due to a bug in the QGIS source code. |
I've tried forcing my build to go through concaveHullQgis(...) and I couldn't get QGIS to crash. Tried with both @juliepierson 's test.zip dataset and @ninafogel 's gbifclean.csv |
Thanks @nirvn. @juliepierson @ninafogel may you please check if the crash also occurs using the "Delaunay triangulation" processing algorithm (which is used by "Concave hull" when GEOS < 3.11) with the same input layer and default parameters? |
These are the latest debug messages before the crash on Ubuntu 20.04, QGIS 3.41.0-Master, GEOS 3.10.2 ("Dalaunay triangulation" doesn't crash):
|
@agiudiceandrea do you get the crash if you set the processing default handling for invalid geometries to "ignore"? |
The test.zip input layer is a simple point layer (EPSG:4326) containing 6 valid points. |
What is the bug or the crash?
When I try and run the "Concave Hull" algorithm (under Vector Geometry), it crashes QGIS.
Steps to reproduce the issue
Versions
3.40.1 Bratislava for Mac
3.34.13 Prizren LTR for Mac
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: