[gdal-dev] gdal error in multi-core process
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 3 14:21:52 EDT 2012
On Tue, Apr 3, 2012 at 10:39 AM, Giuseppe Amatulli
<giuseppe.amatulli at gmail.com> wrote:
>> Error which happen in a random way.
>>
>> NDVI_TOA
>> Input file size is 5000, 5000
>> 0...10...20...30...40...50...60...70...80...ERROR 1:
>> TIFFFillStrip:Read error at scanline 4479; got 2040 bytes, expected
>> 10000
>> ERROR 1: TIFFReadEncodedStrip() failed.
>>
>> ERROR 1: temp.tif, band 1: IReadBlock failed at X offset 0, Y offset 4480
>> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 4480
>> Input file size is 5000, 5000
>> 0...10...20...30...40...50...60...70...80...90...100 - done.
>>
>> Band61_TOA_BT
Giuseppe,
You haven't offered too much detail of what myscript.sh does, but
I'm guessing you use a fixed name for temporary files (ie. temp.tif)
and you have two different scripts interfering with each other. Try
embedding the script process id into the temporary file name or
some similar approach to avoid conflicts.
I don't think this is a GDAL problem.
But, you might want to be aware that GDAL is not going to
react well if you have multiple processes updating one output
file.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
More information about the gdal-dev
mailing list