[GRASS-user] r.patch: GRASS-6.5svn

Rich Shepard rshepard at appl-ecosys.com
Thu Jan 21 22:06:01 EST 2010


On Thu, 21 Jan 2010, Glynn Clements wrote:

> The error "map [%s] - unable to write row %d" doesn't originate in a
> module, it originates in the library, and invariably indicates that
> write() failed.
>
> [If you're getting a different error, please post the *exact* error
> message, not a paraphrase.]

Hi Glynn,

   I killed the r.patch process 66% through because the warning was issued
and in previous attempts this stopped the map being completely displayed:

GRASS 6.5.svn (Oregon):/usr4/grassbase > MAPS=`g.mlist type=rast sep=,
pat="demCEN,demE,demN,demNE,demNW,demS,demSE,demSW,demW"`
GRASS 6.5.svn (Oregon):/usr4/grassbase > g.region rast=$MAPS 
GRASS 6.5.svn (Oregon):/usr4/grassbase > r.patch in=$MAPS out=demOR --o
WARNING: map [demOR] - unable to write row 24578

> This can be caused by many things, including (but not limited to):
>
> * Exceeding the 2GiB limit on a build without LFS.

   Here are the configure options I use with -6.4 and -6.5:

--with-postgres \
--with-sqlite \
--with-cairo \
--with-freetype \
--with-cxx \
--with-geos=usr/bin/geos-config \
--with-gdal=/usr/bin/gdal-config \
--with-python=/usr/bin/python-config \
--with-wxwidgets=/usr/bin/wx-config \
--with-includes=/usr/include/ \
--with-libs=/usr/lib/ \
--enable-largefile

> * Exceeding the 4GiB limit of a FAT filesystem.

   No FAT on linux.

> * Exceeding "ulimit -f".

[rshepard at salmo ~]$ ulimit -f
unlimited

> * Exceeding quota.

   Quotas not enabled; or at default values.

> * Disk full.

[rshepard at salmo ~]$ df -h /usr4
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc3              38G   24G   15G  63% /usr4

> * Hardware error

   Perhaps, but no problems elsewhere.

> If you built GRASS from source, apply the attached patch with:
> 	patch -p0 < write_errno.patch
> from the top-level directory of the GRASS source tree, then re-compile.

> This will cause the underlying OS error to be included in the error
> message.

   Here are the results:

GRASS 6.5.svn (Oregon):/usr4/grassbase > MAPS=.mlist type=rast sep=,
pat="demCEN,demE,demN,demNE,demNW,demS,demSE,demSW,demW"
GRASS 6.5.svn
(Oregon):/usr4/grassbase > g.region rast=$MAPS 
GRASS 6.5.svn (Oregon):/usr4/grassbase > r.patch in=$MAPS out=demOR --o
WARNING: map [demOR] - unable to write row 24578 (No such file or
          directory)
  100%
Creating support files for raster map <demOR>

and

GRASS 6.5.svn (Oregon):/usr4/grassbase > g.list rast
----------------------------------------------
raster files available in mapset <PERMANENT>:
demCEN demE   demN   demNE  demNW  demOR  demS   demSE  demSW  demW

so the file is present. But, ...

GRASS 6.5.svn (Oregon):/usr4/grassbase > d.rast demOR
WARNING: Error reading compressed map <demOR at PERMANENT>, row 0
Segmentation fault

   Here's what r.info has to tell about the map:

GRASS 6.5.svn (Oregon):/usr4/grassbase > r.info demOR
+----------------------------------------------------------------------------+
| Layer:    demOR                          Date: Thu Jan 21 18:36:57 2010    |
| Mapset:   PERMANENT                      Login of Creator: rshepard	     |
| Location: Oregon							     |
| DataBase: /usr4/grassbase						     |
| Title:    DEM 10m Central Oregon ( demOR )				     |
| Timestamp: none							     |
|----------------------------------------------------------------------------|
|									     |
|   Type of Map:  raster               Number of Categories: 11231	     |
|   Data Type:    CELL							     |
|   Rows:         53388							     |
|   Columns:      71949							     |
|   Total Cells:  3841213212						     |
|        Projection: Lambert Conformal Conic				     |
|            N: 1737497.65432757    S: -13512.48800518   Res: 32.7978224     |
|            E: 2502682.81668463    W: 142938.14294121   Res: 32.79746312    |
|   Range of data:    min = 0  max = 11231				     |

Rich




More information about the grass-user mailing list