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

QGIS ARM 3.36 Python Console crashing issue #21

Open
tsmcgrath opened this issue Aug 25, 2024 · 3 comments
Open

QGIS ARM 3.36 Python Console crashing issue #21

tsmcgrath opened this issue Aug 25, 2024 · 3 comments

Comments

@tsmcgrath
Copy link

QGIS Version: 3.36.3 - Maidenhead
Qt version: 5.15.8
Python version: 3.11.9

I have a script that I run in the Python console. Previously this script was working. Now it crashes QGIS.

Repro:

  • Download needed python code and QGIS data & project (link times out. If timed out I can get you a new one): https://www.dropbox.com/t/UjlXOCiaHSTKLGAM
  • You'll need to edit the path's to point to the current file locations.
  • Open QGIS 3.36 arm release. I am using a Mac M1.
  • Open CanopyCoverMap.qgz QGIS Project
  • Open Python Console
  • Open Editor
  • Paste mapgen_canopy.py into python editor
  • Execute.

Result:
QGIS crashes. See attached crash report.
qgis3.36_crashresult.txt

@tsmcgrath
Copy link
Author

I can run an extremely similar script on another dataset (geology) and it works just fine. So, I thought the crasher must be caused by bad data. I regenerated the core dataset by intersecting two polygon datasets. It still crashes. Could still be data but I do not get any crash report from QGIS. I'll go back farther in the input data to regenerate them, and I'll validate the geometry. Although the script is just making a map and not manipulating geometry.

@tsmcgrath
Copy link
Author

This is the last log entry:
2024-08-25 10:30:31,792 | INFO | 0084 | Exporting map to image

@tsmcgrath
Copy link
Author

It turns out the QGIS dataset had invalid geometry. So, the only action is to decide if it is a bug for QGIS to crash silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant