-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Crash with VRT layers using Python pixel functions #41048
Comments
Are those duplicate calls? A typical python stack trace would be more helpful here. And |
Maybe @rouault would have a clue. |
@elpaso Which gdal version are you using? |
@letmaik Running against GDAL/OGR | 3.3.0dev-c3f04b3163 |
@letmaik Can you reproduce that on the command line with gdal_translate for example ? |
@rouault No I can't, it works there.
Setting
Note that 3 users can reproduce this on Windows in QGIS, including myself. The fact that the log is likely incomplete and I don't know how to get the actual error message is really frustrating. I have a feeling that more is dumped to stdout (probably some Python exception or similar) but since there's no console window for QGIS it gets lost. |
Hum, those lines in the QGIS log are the likely cause of the error. It means that for some reason GDAL fails to detect the Python interpretrer already loaded by QGIS, and thus it loads the python37.dll once more, hence a crash. Could you try the following
|
Fwiw just tried the qgis-dev (compiled against gdal 3.1.4, running against 3.3.0dev) and qgis-rel-dev (compiled and running against gdal 3.3.0dev) variants via the OSGeo4W installer and get the same crash. I'm not sure where you want me to run the python command from, I'm sure the below fails for other reasons.
|
you probably also need to |
|
This seems to be related to my issue #39962 |
…th more than 100 modules) Fixes qgis/QGIS#41048
…th more than 100 modules) Fixes qgis/QGIS#41048
Fixed in GDAL master and 3.2 branch (for GDAL 3.2.2) |
User Feedback
Originally reported at GIS4WRF/gis4wrf#202.
The crash happens when showing a VRT layer with Python-backed pixel function.
The same code works fine in 3.12 and fails in 3.16, I haven't tested versions in between.
The VRT is (simply save to file
test.vrt
and drag and drop into QGIS):Apparently somewhere along the line a Python exception is raised (see native stack trace below) but the exception is not caught in QGIS and displayed, but rather lets it crash, which makes diagnosing the issue hard.
Report Details
Crash ID: 081f51e990863dc1c9591f81f41f04f70cdad7e9
Stack Trace
QGIS Info
QGIS Version: 3.16.2-Hannover
QGIS code revision: f1660f9
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.1.4
Running against GDAL: 3.1.4
System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19041
The text was updated successfully, but these errors were encountered: