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

Concave hull crashes program #59778

Open
2 tasks done
ninafogel opened this issue Dec 6, 2024 · 8 comments
Open
2 tasks done

Concave hull crashes program #59778

ninafogel opened this issue Dec 6, 2024 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@ninafogel
Copy link

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

  1. Open Concave Hull algorithm (Processing toolbox > Vector geometry > Concave Hull)
  2. Select point layer for input layer
  3. change no other settings
  4. Press run, watch program crash

Versions

3.40.1 Bratislava for Mac
3.34.13 Prizren LTR for Mac

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@ninafogel ninafogel added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 6, 2024
@agiudiceandrea
Copy link
Contributor

@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.

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label Dec 7, 2024
@ninafogel
Copy link
Author

Downloaded from the QGIS website:

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.40.1-Bratislava
QGIS code revision 989853a
 
Libraries
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.3.2
PROJ version 8.1.1
EPSG Registry database version v10.028 (2021-07-07)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.35.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.6
QScintilla2 version 2.11.5
OS version macOS 14.6
 
Active Python plugins
processing_r 4.1.0
BoundingBox 2.2
Submission 0.10
concavehull 2.0
processing 2.12.99
grassprovider 2.12.99
db_manager 0.1.20
MetaSearch 0.3.6
QGIS version 3.40.1-Bratislava QGIS code revision [989853a](https://github.com/qgis/QGIS/commit/989853a7a31)

Libraries
Qt version
5.15.2
Python version
3.9.5
GDAL/OGR version
3.3.2
PROJ version
8.1.1
EPSG Registry database version
v10.028 (2021-07-07)
GEOS version
3.9.1-CAPI-1.14.2
SQLite version
3.35.2
PDAL version
2.3.0
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.11.5
OS version
macOS 14.6

Active Python plugins
processing_r
4.1.0
BoundingBox
2.2
Submission
0.10
concavehull
2.0
processing
2.12.99
grassprovider
2.12.99
db_manager
0.1.20
MetaSearch
0.3.6

@ninafogel
Copy link
Author

gbifclean.csv
Sample layer -- a bunch of records of bumblebees from GBIF -- uploaded as deliminated text layer with WGS 84

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Dec 7, 2024

I cannot replicate the described issue using QGIS 3.34.13 on Windows 10 (OSGeo4W) with the provided layer and instructions.
I guess the issue only occurs on macOS using QGIS installed via dmg installers from qgis.org, maybe due to outdated libraries versions shipped by such installer.
Alternative installers for macOS are available e.g. via Conda-forge https://aneto.pt/posts/tutorials/2019-05-29-using-qgis-from-conda/ and MacPorts https://www.qgis.org/resources/installation-guide/#macports which ship updated versions of some libraries.

@agiudiceandrea agiudiceandrea added macOS and removed Feedback Waiting on the submitter for answers labels Dec 7, 2024
@juliepierson
Copy link

Hi, same problem here with QGIS 3.34 on Ubuntu 22.04, installed with repo https://qgis.org/ubuntu-ltr
Thanks for your help !

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Dec 20, 2024

@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?

@agiudiceandrea agiudiceandrea added Processing Relating to QGIS Processing framework or individual Processing algorithms Crash/Data Corruption labels Dec 20, 2024
@juliepierson
Copy link

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 :

  • launch QGIS
  • load point layer
  • execute concave hull tool with test point layer and default parameters
  • QGIS crashes

I get this message when launching QGIS from terminal, don't know if it is useful :
Warning: Qt Concurrent has caught an exception thrown from a worker thread. This is not supported, exceptions thrown in worker threads must be caught before control returns to Qt Concurrent. terminate called after throwing an instance of 'QgsNotSupportedException' Abandon (core dumped)

@agiudiceandrea
Copy link
Contributor

Thanks @juliepierson.
The issue doesn't occur using QGIS from OSGeo4W on Windows.
I guess the issue may be due to the the fact that QGIS installed from https://qgis.org/ubuntu-ltr on Ubuntu 22.04 uses GEOS 3.10, while QGIS on Windows from OSGeo4W uses GEOS 3.13.

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.:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

3 participants