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

[Bug] r.univar in Grass84 (Windows) with qgis 3.38.2 #4284

Open
Rivages opened this issue Sep 6, 2024 · 11 comments · Fixed by #4297
Open

[Bug] r.univar in Grass84 (Windows) with qgis 3.38.2 #4284

Rivages opened this issue Sep 6, 2024 · 11 comments · Fixed by #4297
Labels
bug Something isn't working

Comments

@Rivages
Copy link

Rivages commented Sep 6, 2024

Describe the bug

Bug using r.univar in grass84 (not in grass83)

To reproduce

r.univar --quiet --overwrite map=MNTmask1a output=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/univar.txt"

Screenshots

ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
ATTENTION: Read error: We're not at the start of a row
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ATTENTION: Read error: We're not at the start of a row
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ERREUR : Erreur lors de la d�compression des donn�es raster fp pour la
ligne 8 de : code d'erreur -1
ATTENTION: Erreur de d�compression LZ4
Appuyez sur une touche pour continuer..

System description

  • Operating System: Windowv 11

  • GRASS GIS version: 8.4

  • details about further software components

    • run GRASS with system(cmd) in R

Additional context

Discussion in #4283

Thanks

@Rivages Rivages added the bug Something isn't working label Sep 6, 2024
@7SevenYU
Copy link

7SevenYU commented Sep 9, 2024

I have encountered the same problem, do you have a solution?

@Rivages
Copy link
Author

Rivages commented Sep 9, 2024

No, I use grass83!

@petrasovaa
Copy link
Contributor

I can't reproduce this in GRASS directly, but I found it crashes with mask on and nprocs > 1. That was supposed to be fixed, but there is a bug. Any chance this is being run with mask and in parallel?

@petrasovaa
Copy link
Contributor

The bug I described above is fixed in #4297.

@echoix echoix linked a pull request Sep 10, 2024 that will close this issue
@echoix echoix closed this as completed Sep 10, 2024
@petrasovaa
Copy link
Contributor

Well, I am not sure this is completed... The bug I fixed may be unrelated to this problem.

@petrasovaa petrasovaa reopened this Sep 10, 2024
@Rivages
Copy link
Author

Rivages commented Sep 10, 2024

I can reproduce it directy in GRASS84 with only 1 nproc (windows).

@petrasovaa
Copy link
Contributor

I can reproduce it directy in GRASS84 with only 1 nproc (windows).

With mask on or off? What data?

@Rivages
Copy link
Author

Rivages commented Sep 11, 2024

Here is my automatic process:

ETAPE 1 - Traitement de: C00_026384km_X889200Y6237761
Reading layer TA_MNTC2D_MAMP2024' from data source C:\Cartino2D\France_MNT\MAMP_2024\TA_MNTC2D_MAMP2024.gpkg' using driver `GPKG'
Simple feature collection with 1101 features and 4 fields
Geometry type: POLYGON
Dimension: XY
Bounding box: xmin: 865000 ymin: 6232000 xmax: 923000 ymax: 6267000
Projected CRS: RGF93 v1 / Lambert-93
C00_026384km_X889200Y6237761 ---- Création de la zone de calcul
C00_026384km_X889200Y6237761 ---- Récupération du Lidar
[1] ""C:/QGIS/OSGeo4W.bat" gdalbuildvrt C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761\MNT.vrt -input_file_list C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/listepourvrt.txt"
0...10...20...30...40...50...60...70...80...90...100 - done.
[1] "r.in.gdal -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761\MNT.vrt output=MNT"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "v.in.ogr -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/Step_Cartino2d_1_Contour.shp output=Step_Cartino2d_1_Contour"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "v.in.ogr -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/Step_Cartino2d_2_Valid_Calcul.shp output=Step_Cartino2d_2_Valid_Calcul"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "g.region --overwrite --quiet -a vector=Step_Cartino2d_1_Contour align=MNT"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "r.mask --quiet --overwrite vector=Step_Cartino2d_1_Contour"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "r.resamp.stats --quiet --overwrite input=MNT output=MNTmask1a"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
[1] "r.mask --quiet --overwrite vector=Step_Cartino2d_2_Valid_Calcul"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
ATTENTION: MASK already exists and will be overwritten
[1] "r.univar --quiet --overwrite map=MNTmask1a output=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/univar.txt"
ATTENTION: Le verrouillage concurrent de jeux de cartes n'est pas pris en
charge dans Windows
ATTENTION: Read error: We're not at the start of a row
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ATTENTION: Erreur -72 de compression ZSTD : SrcATTENTION: Erreursize is incorrect
-72 de compression ZSTD : Src size is incorrect
ATTENTION: Erreur de d�compression LZ4
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ERREUR : Erreur lors de la d�compression des donn�es raster fp pour la
ligne 1 de : code d'erreur -1
ATTENTION: Erreur -72 de compression ZSTD : Src size is incorrect
ATTENTION: Read error: We're not at the start of a row
Appuyez sur une touche pour continuer...

Here is the same in GRASS

(Wed Sep 11 06:33:45 2024)
r.in.gdal -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761\MNT.vrt output=MNT
(Wed Sep 11 06:33:46 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:34:21 2024)
v.in.ogr -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/Step_Cartino2d_1_Contour.shp output=Step_Cartino2d_1_Contour
(Wed Sep 11 06:34:22 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:34:51 2024)
g.region --overwrite --quiet -a vector=Step_Cartino2d_1_Contour align=MNT
(Wed Sep 11 06:34:51 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:35:17 2024)
r.mask --quiet --overwrite vector=Step_Cartino2d_1_Contour
(Wed Sep 11 06:35:18 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:35:47 2024)
r.resamp.stats --quiet --overwrite input=MNT output=MNTmask1a
(Wed Sep 11 06:35:47 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:36:27 2024)
v.in.ogr -o --quiet --overwrite input=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/Step_Cartino2d_2_Valid_Calcul.shp output=Step_Cartino2d_2_Valid_Calcul
(Wed Sep 11 06:36:27 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:36:46 2024)
r.mask --quiet --overwrite vector=Step_Cartino2d_2_Valid_Calcul
WARNING: MASK already exists and will be overwritten
(Wed Sep 11 06:36:47 2024) La commande s'est terminée (0 sec)
(Wed Sep 11 06:37:16 2024)
r.univar --quiet --overwrite map=MNTmask1a output=C:\Cartino2D\France/MAMP2024_GMSH/C00_026384km_X889200Y6237761/univar.txt
WARNING: Read error: We're not at the start of a row
WARNING: Erreur -72 de compression ZSTD : Src size is incorrect
WARNING: Erreur -72 de compression ZSTD : Src size is incorrect
ERROR: Erreur lors de la décompression des données raster fp pour la ligne 2 de : code d'erreur -1
WARNING: Read error: We're not at the start of a row
(Wed Sep 11 06:37:16 2024) Command ended with non-zero return code 1 (0 sec)

If needed, I can send you the input files
Best regards

@echoix
Copy link
Member

echoix commented Sep 11, 2024

If it helps, I was trying to run windows tests with something closer to what OSGeo4W does. Part of that debugging I applied the same patches as they use, and saw similar messages about zstd in the logs. I didn't see them in our runs on main, that use a different script. I tried to run tests directly with the compiled-by-osgeo4w package, but I haven't gotten as far yet.

But I think we might need to check the actual build patches that OSGeo4W uses for this. And the fact that you get this for the released 8.4 while I'm playing with dev 8.5 is some more info

@Rivages
Copy link
Author

Rivages commented Sep 13, 2024

I try 4 configs

"C:\QGIS\bin\grass84.bat" # BUG QGIS-OSGeo4W-3.38.2-1.msi
"C:\GRASS83\grass83.bat" # OK WinGRASS-8.3.3dev-9baf6a727c-1-Setup.exe
"C:\GRASS84\grass84.bat" # OK WinGRASS-8.4.0-1-Setup (1).exe
"C:\GRASS85\grass85.bat" # BUG WinGRASS-8.5.0dev-adcdf28bb2-1-Setup.exe
The bug is always in grass85, grass84 is ok but not with qgis install...

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Oct 4, 2024

This bug is very likely due to the same underlying issue as #4443.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants