[GRASS-dev] [GRASS GIS] #3676: Errors when running r.li.* modules
GRASS GIS
trac at osgeo.org
Fri Oct 5 05:23:26 PDT 2018
#3676: Errors when running r.li.* modules
-----------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.6.0
Component: Raster | Version: svn-trunk
Keywords: r.li, landscape | CPU: x86-64
Platform: Linux |
-----------------------------+-------------------------
I get different errors when trying to run different r.li.* modules. Here
some examples:
{{{
r.li.shannon --overwrite input=landclass96 at PERMANENT
config=forest_mov_win
output=forest_mov_win_sh
munmap_chunk(): invalid pointer
}}}
The map is created but cannot be read or displayed:
{{{
Failed to run command 'd.rast map=forest_mov_win_sh at user1'. Details:
GRASS_INFO_WARNING(12641,1): LZ4 decompression error
GRASS_INFO_END(12641,1)
GRASS_INFO_ERROR(12641,2): Error uncompressing null data for row 474 of
<forest_mov_win_sh>
GRASS_INFO_END(12641,2)
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>
}}}
Further attempts:
{{{
r.mapcalc "forest = if(landclass96 == 5, 1, null())"
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.
Instead, if I do something equivalent:
{{{
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)
r.univar forest_edge
WARNING: LZ4 decompression error
ERROR: Error uncompressing null data for row 474 of <forest_edge>
}}}
I attach the config file for reproducibility. And here's the thread in
grass-dev: https://lists.osgeo.org/pipermail/grass-
dev/2018-October/090155.html with Markus' valgrind test.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3676>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list