You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run C:\Program Files\QGIS 3.34.8\bin\python-qgis-ltr.bat .\Test.py
Output should be:
1
2
3
4
Output is actually
1
2
As when the "QgsPathResolver.setPathPreprocessor(my_path_processor)" line is called then python closes without proceeding so the print lines for 3 and 4 are never called.
Versions
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
QGIS version
3.34.8-Prizren
QGIS code revision
[9164233](https://github.com/qgis/QGIS/commit/91642333)
Qt version
5.15.13
Python version
3.12.4
GDAL/OGR version
3.9.0
PROJ version
9.4.0
EPSG Registry database version
v11.004 (2024-02-24)
GEOS version
3.12.2-CAPI-1.18.2
SQLite version
3.45.1
PDAL version
2.6.3
PostgreSQL client version
16.2
SpatiaLite version
5.1.0
QWT version
6.2.0
QScintilla2 version
2.14.1
OS version
Windows Server 2022 Version 2009
Bit more testing today. Looks like this works very well in 3.38.0
Running & "C:\Program Files\QGIS 3.38.0\bin\python-qgis.bat" .\Test.py in powershell produced the expected result.
Running my actual scripts against 3.38.0 also worked without issue. I'd prefer to use the LTR version if possible, and this probably still needs fixing, but this is a workaround
What is the bug or the crash?
Calling QgsPathResolver.setPathPreprocessor() causes Python to abort without any error message.
This has been observed on version 3.34.8 and 3.34.7 for Windows 10 on two different machines.
This has worked absolutely fine 3.28.x for Windows 10 in the past. I've only noticed an issue when updating QGIS and running existing scripts.
Steps to reproduce the issue
Create Test.py with the following contents:
Run
C:\Program Files\QGIS 3.34.8\bin\python-qgis-ltr.bat .\Test.py
Output should be:
Output is actually
As when the "QgsPathResolver.setPathPreprocessor(my_path_processor)" line is called then python closes without proceeding so the print lines for 3 and 4 are never called.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
changeDataSource
3.1
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: