[gdal-dev] gdal.Warp error No space left on device.

Deschamps, Benjamin (EC) benjamin.deschamps at canada.ca
Fri Dec 14 11:48:50 PST 2018


Hi Even,

I misinterpreted the symptoms here, and simply replicated the (seemingly correct) out-of-space error on a different drive while trying to test.

Something else in my code is making gdal.Warp try to write out huge files...

Sorry for the noise.

Benjamin

-----Original Message-----
From: Even Rouault [mailto:even.rouault at spatialys.com] 
Sent: December-14-18 2:14 PM
To: gdal-dev at lists.osgeo.org
Cc: Deschamps, Benjamin (EC)
Subject: Re: [gdal-dev] gdal.Warp error No space left on device.

On vendredi 14 décembre 2018 18:48:32 CET Deschamps, Benjamin (EC) wrote:
> Hi,
> 
> I've been able to reproduce the error reported here:
> https://trac.osgeo.org/gdal/ticket/3500 (closed/invalid).
> 
> The error is:
> 
> Traceback (most recent call last):
>   File 
> "C:\Users\deschampsb\Desktop\gdalwarp_HFA_bug\gdalwarp_HFA_bug.py",
> line 22, in <module> gdal.Warp("warp.hfa", "test.tif",
> options=warp_options)
>   File "C:\Python36\lib\site-packages\osgeo\gdal.py", line 584, in Warp
>     return wrapper_GDALWarpDestName(destNameOrDestDS, srcDSTab, opts, 
> callback, callback_data) File 
> "C:\Python36\lib\site-packages\osgeo\gdal.py", line 2928, in 
> wrapper_GDALWarpDestName return _gdal.wrapper_GDALWarpDestName(*args)
> RuntimeError: Failed to extend warp.ige to full size (5.73878e+09 
> bytes), likely out of disk space.
> No space left on device
> 
> This is using Python 3.6.1 64-bits with GDAL 2.1.3 bindings, on 
> Windows Server 2008.
> 
> It turns out that the error is not related to the HFA output format, 
> or to a lack of space in the destination location, but in my case to a 
> lack of free space on C:. I had hundreds of GB of free disk in the 
> output location, but I noticed that in my case, there was no (40K) 
> disk space left on the system
> C: drive. Freeing up space on the C solved the issue. Are there any 
> temp files being created there?

No, but the .ige file is a side car file that is created next to the main .hfa file (.img is usually used) if the main file would be bigger to 2GB, so if you created the .hfa file on c:\, the .ige will also be on c:\

Even

--
Spatialys - Geospatial professional services http://www.spatialys.com


More information about the gdal-dev mailing list