[GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

GRASS GIS trac at osgeo.org
Fri Dec 4 14:49:35 PST 2015


#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-------------------------+-------------------------------------------------
  Reporter:  baharmon    |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:  7.0.3
 Component:  Raster      |    Version:  svn-releasebranch70
Resolution:              |   Keywords:  v.surf.bspline, raster, quant
                         |  rules, null file, cell file
       CPU:  OSX/Intel   |   Platform:  MSWindows 8
-------------------------+-------------------------------------------------

Comment (by glynn):

 Replying to [ticket:2434 baharmon]:

 My main suspicion is that this is caused by the DBMI driver process being
 spawned after the output raster is opened (so it inherits a handle) and
 still being alive when Rast_close() is called (similar to issue #2775).

 If the driver inherits a handle to the temporary null and cell files,
 renaming them will fail as the files will be "open".

 If that's what's happening, either the close-on-exec flag needs to be set
 on those files, or DBMI drivers need to close all open files between the
 fork() and the exec(), or the DBMI driver needs to be terminated before
 closing the raster.

 Also, see the "Open/close db drivers order" thread (ca Oct 22) on the
 grass-dev list for some more discussion of this.

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



More information about the grass-dev mailing list