[GRASS-dev] Forestfrag WARNING: ZSTD compression error -14: Unsupported frame parameter

Hi Václav / devs

···

I am running r.forestfrag in Windows 10, grass 7.6.2 Computation with a moving window size of 21 (but at another computer same happens at size 9) gives met the following error:

C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py input=groenreclass@landschap output=AAtest7 size=21
Step 1: Computing Pf values…
Step 2: Computing Pff values…
WARNING: ZSTD compression error -14: Unsupported frame parameter
ERROR: Error uncompressing raster data for row 328 of <tmpA04_398bad3c_32a8_4220_8566_374c8c9f16a8>
WARNING: No data base element files found
Traceback (most recent call last):
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 420, in sys.exit(main(*gs.parser()))
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 290, in main ipl=ipl, tmpl4=expr1, tmpl5=expr2, pff=pff)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\raster.py”, line 111, in mapcalc " with expression: %s") % e)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 667, in fatal error(msg)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 651, in error message(msg, flag=‘e’)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 584, in message run_command(“g.message”, flags=flag, message=msg, errors=‘ignore’)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 415, in run_command ps = start_command(*args, **kwargs)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 382, in start_command
return Popen(args, **popts)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 76, in init subprocess.Popen.init(self, args, **kwargs)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 390, in init errread, errwrite)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 640, in _execute_child startupinfo)
WindowsError: [Error 206] De bestandsnaam of -extensie is te lang

Any idea what may be the problem here?

Greetings,

Paulo

On Mon, May 27, 2019 at 3:25 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

Hi Václav / devs

I am running r.forestfrag in Windows 10, grass 7.6.2 Computation with a moving window size of 21 (but at another computer same happens at size 9) gives met the following error:

C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py input=groenreclass@landschap output=AAtest7 size=21
Step 1: Computing Pf values…
Step 2: Computing Pff values…

Some computations happened, but then something went wrong.

WARNING: ZSTD compression error -14: Unsupported frame parameter
ERROR: Error uncompressing raster data for row 328 of <tmpA04_398bad3c_32a8_4220_8566_374c8c9f16a8>

Something wrong with the libraries or the files (perhaps not enough space on disk?).

WARNING: No data base element files found

Probably, g.remove trying to clean something as the the script is exiting. Likely harmless.

Traceback (most recent call last):
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 420, in sys.exit(main(*gs.parser()))
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 290, in main ipl=ipl, tmpl4=expr1, tmpl5=expr2, pff=pff)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\raster.py”, line 111, in mapcalc " with expression: %s") % e)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 667, in fatal error(msg)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 651, in error message(msg, flag=‘e’)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 584, in message run_command(“g.message”, flags=flag, message=msg, errors=‘ignore’)

Here, it is g.message failing, so at this point nothing works.

File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 415, in run_command ps = start_command(*args, **kwargs)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 382, in start_command
return Popen(args, **popts)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 76, in init subprocess.Popen.init(self, args, **kwargs)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 390, in init errread, errwrite)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 640, in _execute_child startupinfo)
WindowsError: [Error 206] De bestandsnaam of -extensie is te lang

Too many open files? Or maybe just the error message happens to be too long.

Any idea what may be the problem here?

Try smaller region, smaller window. Look into task manager. …

Best,
Vaclav

Greetings,

Paulo

On Tue, May 28, 2019 at 5:30 PM Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Mon, May 27, 2019 at 3:25 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

Hi Václav / devs

I am running r.forestfrag in Windows 10, grass 7.6.2 Computation with a moving window size of 21 (but at another computer same happens at size 9) gives met the following error:

C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py input=groenreclass@landschap output=AAtest7 size=21
Step 1: Computing Pf values…
Step 2: Computing Pff values…

Some computations happened, but then something went wrong.

It goes wrong when with the moving window computation using r.mapcalc. But when (e.g., with what moving window size) differs depending on the computer and the size of the raster.

WARNING: ZSTD compression error -14: Unsupported frame parameter
ERROR: Error uncompressing raster data for row 328 of <tmpA04_398bad3c_32a8_4220_8566_374c8c9f16a8>

Something wrong with the libraries or the files (perhaps not enough space on disk?).

I guess something with the files, as it works with smaller moving windows and it works in Linux.

WARNING: No data base element files found

Probably, g.remove trying to clean something as the the script is exiting. Likely harmless.

Ah, ok

Traceback (most recent call last):
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 420, in sys.exit(main(*gs.parser()))
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 290, in main ipl=ipl, tmpl4=expr1, tmpl5=expr2, pff=pff)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\raster.py”, line 111, in mapcalc " with expression: %s") % e)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 667, in fatal error(msg)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 651, in error message(msg, flag=‘e’)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 584, in message run_command(“g.message”, flags=flag, message=msg, errors=‘ignore’)

Here, it is g.message failing, so at this point nothing works.

File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 415, in run_command ps = start_command(*args, **kwargs)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 382, in start_command
return Popen(args, **popts)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 76, in init subprocess.Popen.init(self, args, **kwargs)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 390, in init errread, errwrite)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 640, in _execute_child startupinfo)
WindowsError: [Error 206] De bestandsnaam of -extensie is te lang

Too many open files? Or maybe just the error message happens to be too long.

Any idea what may be the problem here?

Try smaller region, smaller window. Look into task manager. …

I did try a smaller region, this does seem to make a difference. I will try if I can do this more systematically.

Best,
Vaclav

Greetings,

Paulo

On Tue, May 28, 2019 at 6:26 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

On Tue, May 28, 2019 at 5:30 PM Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Mon, May 27, 2019 at 3:25 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

Hi Václav / devs

I am running r.forestfrag in Windows 10, grass 7.6.2 Computation with a moving window size of 21 (but at another computer same happens at size 9) gives met the following error:

C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py input=groenreclass@landschap output=AAtest7 size=21
Step 1: Computing Pf values…
Step 2: Computing Pff values…

Some computations happened, but then something went wrong.

It goes wrong when with the moving window computation using r.mapcalc. But when (e.g., with what moving window size) differs depending on the computer and the size of the raster.

WARNING: ZSTD compression error -14: Unsupported frame parameter
ERROR: Error uncompressing raster data for row 328 of <tmpA04_398bad3c_32a8_4220_8566_374c8c9f16a8>

Something wrong with the libraries or the files (perhaps not enough space on disk?).

I guess something with the files, as it works with smaller moving windows and it works in Linux.

This is probably a read error: data are not correctly read from disk. But this should be reported as a read error.

A ZSTD compression error has been reported previously when a raster map was compressed with ZSTD 1.3.x and on another system decompressed with ZSTD 1.3.y. Not sure if this applies here as well.

Markus M

WARNING: No data base element files found

Probably, g.remove trying to clean something as the the script is exiting. Likely harmless.

Ah, ok

Traceback (most recent call last):
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 420, in sys.exit(main(*gs.parser()))
File “C:\Users\brp\AppData\Roaming\GRASS7\addons/scripts/r.forestfrag.py”, line 290, in main ipl=ipl, tmpl4=expr1, tmpl5=expr2, pff=pff)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\raster.py”, line 111, in mapcalc " with expression: %s") % e)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 667, in fatal error(msg)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 651, in error message(msg, flag=‘e’)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 584, in message run_command(“g.message”, flags=flag, message=msg, errors=‘ignore’)

Here, it is g.message failing, so at this point nothing works.

File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 415, in run_command ps = start_command(*args, **kwargs)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 382, in start_command
return Popen(args, **popts)
File “C:\OSGEO4~1\apps\grass\grass76\etc\python\grass\script\core.py”, line 76, in init subprocess.Popen.init(self, args, **kwargs)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 390, in init errread, errwrite)
File “C:\OSGEO4~1\apps\Python27\lib\subprocess.py”, line 640, in _execute_child startupinfo)
WindowsError: [Error 206] De bestandsnaam of -extensie is te lang

Too many open files? Or maybe just the error message happens to be too long.

Any idea what may be the problem here?

Try smaller region, smaller window. Look into task manager. …

I did try a smaller region, this does seem to make a difference. I will try if I can do this more systematically.

Best,
Vaclav

Greetings,

Paulo


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev