-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
[Bug] grass7:v.rast.stats fails with QGIS 3.34.10 or 3.34.11 on Windows 10 #4443
Comments
The issue occurs on Windows 10 directly using either GRASS-GIS 8.4.0 or GRASS-GIS 8.5.0dev (f0a997c) provided by OSGeo4W. The issue didn't occur using GRASS-GIS 8.3.2 provided by OSGeo4W on the same system. |
Thanks for the report @a-benini-2! This looks very similar to #4284, fixed by #4297. In fact |
I've also verified that the issue doesn't occur using GRASS-GIS 8.4.0 from WinGRASS, while it does occur using GRASS-GIS 8.4.0 from OSGeo4W on the same Windows 10 system. @jef-n, may you please have a look a this issue? |
@a-benini-2 |
If I understand this correctly, the standalone installer for Windows works, while the OSGeo4W distribution does not. Given that is the case, I assume this is caused by conflicting dependencies. OSGeo4W currently installs both |
@nilason, the standalone WinGRASS GRASS-GIS 8.4.0 works, while GRASS-GIS 8.4.0 from OSGeo4W doesn't work. Anyway the standalone WinGRASS GRASS-GIS 8.5.0dev doesn't work either.
In fact it seems the case:
|
Thanks! That was very useful information. I kind of figured that was case. |
@nilason there was a typo: WinGRASS GRASS-GIS 8.4.0 installs only libgomp-1.dll (not libomp.dll as previously incorrectly written). Anyway, I've also checked now that GRASS-GIS 8.3.2 from OSGeo4W, which works, does install both libgomp-1.dll and libomp.dll |
Thanks! The OSGeo4W installs in fact both the GCC provided OpenMP library Footnotes
|
Describe the bug
After updating QGIS LTR from 3.34.9 to 3.34.10
grass7:v.rast.stats
does not calculate univariate statistics from a raster map based on vector polygons. Instead of uploading statistics to new attribute columns,grass7:v.rast.stats
returns these new attributes with only NULL s as sole value. Further updating to QGIS LTR 3.34.11 hasn’t helped to overcome this issue. While runninggrass7:v.rast.stats
with a parallel installed QGIS version 3.34.9 works fine.My operating system is Windows 10.
I’ve raised this as a QGIS-issue and I’ve been told that this issue is not due to QGIS itself (s. here). Furthermore, the response to my QGIS-issue states, that this issue also occurs even directly using GRASS-GIS 8.4.0 installed by the OSGeo4W installer for QGIS 3.34.11 on Windows 10. And thus I’ve been advised to report this issue as bug here.
To reproduce
~\qgis_sample_data\shapefiles\lakes.shp and ~\qgis_sample_data\raster\SR_50M_alaska_nad.tif. Drag and drop these two files / layers into the new QGIS project you just started
grass7:v.rast.stats
has finished. The log should reveal some error:log_file_v.rast.stats_QGIS_3.34.11.txt
grass7:v.rast.stats
' s output Rast stats . The new statistic-attributes only consist of NULL s:Expected behavior
s. above To reproduce step 8. & 9.
Screenshots
s. above To reproduce
System description
grass7:v.rast.stats
with QGIS 3.34.11 (s. above To reproduce step 8.) list in the frist lines these software components:QGIS-Version: 3.34.11-Prizren
QGIS-Codeversion: 2904bcec
Qt-Version: 5.15.13
Python-Version: 3.12.6
GDAL-Version: 3.9.2
GEOS-Version: 3.12.2-CAPI-1.18.2
PROJ-Version: Rel. 9.4.0, March 1st, 2024
PDAL-Version: 2.6.3 (git-version: b5523a)
GRASS-Version: 8.4.0
Additional context
When running
grass7:v.rast.stats
on QGIS 3.34.10 or QGIS 3.34.11 (on Windows 10) with different inputs I’ve seen varying error messages returned by the log. But the one thing that was consistent, was that returned statistics attributes only included NULL s.The text was updated successfully, but these errors were encountered: