<div dir="ltr"><br><br>On Sat, Mar 30, 2019 at 4:23 PM Micha Silver <<a href="mailto:tsvibar@gmail.com">tsvibar@gmail.com</a>> wrote:<br>><br>><br>> On 29/03/2019 16:04, Markus Metz wrote:<br>><br>><br>><br>> On Fri, Mar 29, 2019 at 11:20 AM Micha Silver <<a href="mailto:tsvibar@gmail.com">tsvibar@gmail.com</a>> wrote:<br>> ><br>> > Hello all:<br>> ><br>> > I have some GRASS data that I share between different computers. The newer machine got updated recently to version 7.6.1, and rasters are by default compressed with zstd. The older machine (Linux Mint 18.3) was running 7.4 and (I think) did not support zstd. So those rasters created on the newer machine will no longer open on the older one. I updated to GRASS 7.6.1 (a word of thanks to the ubuntugis-unstable packagers!) and added the libzstd libraries, but still rasters created on the newer machine will not open on the older one. The difference between them is the version of libzstd. Is there a minimum required version of zstd??<br>><br>> Not really, if anything, version 1.x.<br>> ><br>> ><br>> > On the old machine:<br>> ><br>> ><br>> > micha@RMS ~ $ g.version<br>> > GRASS 7.6.1 (2019)<br>> > micha@RMS ~ $ zstd --version<br>> > *** zstd command line interface 64-bits v1.3.1, by Yann Collet ***<br>> > micha@RMS ~ $ r.univar slope<br>> > WARNING: ZSTD compression error -2: Unknown frame descriptor<br>> > ERROR: Error uncompressing raster data for row 2913 of <slope><br>> > micha@RMS ~ $ ldd /usr/lib/grass76/bin/r.univar | grep zstd<br>> >     libzstd.so.0 => /usr/lib/x86_64-linux-gnu/libzstd.so.0 (0x00007fadf663c000)<br>> ><br>> ><br>> > The new machine has zstd version 1.3.8, and everything works fine. But not on the old machine. Is my problem the difference in zstd versions?<br>><br>> I had something similar before, the error was caused by a corrupted file. If the old machine uses a copy of the mapset of the new machine, check e.g. with md5sum if the corresponding cell or fcell files are identical. It could also be a disk IO problem.<br>><br>> I restored the LOCATION to the old machine, and checked that the md5sums of fcell/* on both computers were identical.<br>><br>> Still the same problem.<br><br><div>I think I found something: ZSTD can be compiled with or without legacy support. If compiled without legacy support, you can get this error "Unknown frame descriptor". That means it could be possible that ZSTD 1.3.1 on the old machine has been built without ZSTD legacy support and ZSTD 1.3.8 on the new machine has been compiled with ZSTD legacy support. In this case I would consider it a bug in the packaging of ZSTD for the old machine. If this is correct, there is nothing GRASS can do, apart from using another compression method.</div><div><br></div><div>This is a wild guess but the only explanation I can come up with.<br></div><div><br></div><div>Markus M<br></div><div>></div>> <shrugging>Maybe it's time to upgrade</shrugging><br>><br>><br>><br>> HTH,<br>><br>> Markus M<br>><br>> --<br>> Micha Silver<br>> Ben Gurion Univ.<br>> Sde Boker, Remote Sensing Lab<br>> cell: +972-523-665918</div>