[GRASS-dev] Errors with r.li.* modules

Veronica Andreo veroandreo at gmail.com
Thu Oct 4 18:40:06 PDT 2018

Hi devs,

I'm trying to use r.li.* modules to develop an example for a course. I am
currently working in trunk, though I had to create the config files in 74
rel branch because I get an error in trunk (reported already in [0]).

Now, when I try to use r.li.shannon for example (though it happens with
other modules as well), I get the following error:

r.li.shannon --overwrite input=landclass96 at PERMANENT config=forest_mov_win
munmap_chunk(): invalid pointer <<<--- THIS

The map is created but not displayed, with errors related to decompression
in the GUI console:

Failed to run command 'd.rast map=forest_mov_win_sh at user1'.

GRASS_INFO_WARNING(12641,1): LZ4 decompression

GRASS_INFO_ERROR(12641,2): Error uncompressing null data for row 474 of


GRASS 7.7.svn (nc_spm_08_grass7):~ > r.univar forest_mov_win_sh
WARNING: LZ4 decompression error
ERROR: Error uncompressing null data for row 474 of <forest_mov_win_sh>

Why is this? I didn't set any env var for compression.

A different case is:

GRASS 7.7.svn (nc_spm_08_grass7):~ > r.mapcalc "forest = if(landclass96 ==
5, 1, null())"
GRASS 7.7.svn (nc_spm_08_grass7):~ > r.li.edgedensity input=forest
config=forest_mov_win output=forest_edge_mw
double free or corruption (!prev) <<<--- THIS
Aborted (core dumped)
... but map is created and no error related to compression.

Doing something equivalent, I get a different error (same as the first one):

r.li.edgedensity --verbose input=landclass96 at PERMANENT
config=forest_mov_win output=forest_edge patch_type=5
munmap_chunk(): invalid pointer <<<--- THIS
Aborted (core dumped)

GRASS 7.7.svn (nc_spm_08_grass7):~ > r.univar forest_edge
WARNING: LZ4 decompression error
ERROR: Error uncompressing null data for row 474 of <forest_edge>

What am I doing wrong? Does anyone know the trick to use these modules?

Thanks much in advance,

[0] https://trac.osgeo.org/grass/ticket/3675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20181005/ab12cf51/attachment.html>

More information about the grass-dev mailing list