[GRASS-dev] [GRASS GIS] #2764: corrupt data written to FCELL and DCELL rasters, hard to re-produce

GRASS GIS trac at osgeo.org
Thu Jan 4 01:35:59 PST 2018


#2764: corrupt data written to FCELL and DCELL rasters, hard to re-produce
---------------------+-------------------------
  Reporter:  dylan   |      Owner:  grass-dev@…
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  7.2.3
 Component:  Raster  |    Version:  unspecified
Resolution:          |   Keywords:
       CPU:  x86-64  |   Platform:  Linux
---------------------+-------------------------

Comment (by neteler):

 Replying to [comment:12 dylan]:
 > Relevant [https://www.zlib.net/manual.html zlib manual page].

 For ticket completion, here the related ''grass-user'' message:

 https://lists.osgeo.org/pipermail/grass-user/2018-January/077572.html

 On Wed, Jan 3, 2018 at 8:41 PM, Dylan Beaudette wrote:
 > Update: after applying the latest patch, I now see
 >
 > ERROR: Decompression failed with error -1
 >
 > I found the map that fails decompression. Is there any way to inspect
 > the map in order to search for more clues as to what is wrong with it
 > or how it might have happened?
 >
 >
 > All of the maps in this project are using the default ZLIB
 > compression, along with compressed NULL files. Looking over the zlib
 > manual (https://www.zlib.net/manual.html), I see several references to
 > an error code of "-1":
 >
 > ----------------------------
 > #define Z_ERRNO        (-1)
 >
 > Z_ERRNO if there is an error writing the flushed data
 >
 > Z_ERRNO on a file operation error
 >
 > ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
 >
 > Returns the error message for the last error which occurred on the
 > given compressed file. errnum is set to zlib error number. If an error
 > occurred in the file system and not in the compression library, errnum
 > is set to Z_ERRNO and the application may consult errno to get the
 > exact error code.
 > ----------------------------
 >
 > The last note is interesting and suggests that this specific "problem"
 > may be happening at the file system or OS level. That said, I have
 > only encountered this error in the context of FCELL or DCELL
 > maps--which makes me think that it is some combination of GRASS and
 > the underlying file system.
 >
 > Some OS information:
 >
 > 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64
 > x86_64 x86_64 GNU/Linux
 > Description:    Ubuntu 14.04.5 LTS
 > Release:        14.04

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2764#comment:14>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list