[gdal-dev] gdal error in multi-core process

Giuseppe Amatulli giuseppe.amatulli at gmail.com
Tue Apr 3 13:39:23 EDT 2012


> HI
> i'm trying to use gdal*   in multi-core pc, running the same script
> for 2 in pendent folders containing several geotif  files.
> The script return no error if it run in one terminal ( for file in
> 2002/*.tif  2007/*.tif  ; do  bash myscript.sh  $file ; done  )
> Instead  It gives the down reported error if run in two independent terminals
> 1 terminal
> ( for file in 2002/*.tif  ; do  bash myscript.sh  $file ; done  )
> 2 terminal
> ( for file in 2007/*.tif  ; do  bash myscript.sh  $file ; done  )
>
> Seems to me that gdal fails when it used in the same moment from 2
> independent terminal (cores)
> Should i compile gdal in a different way or should i make some tricks
> in the script to avoid the error.
>
> I have
> GDAL 1.9.0
> at
> Red Hat Enterprise Linux Server release 5.7
>
> Thanks in advance
> Giuseppe Amatulli
>
>
> 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 Amatulli
> Web: www.spatial-ecology.net



-- 
Giuseppe Amatulli
Web: www.spatial-ecology.net


More information about the gdal-dev mailing list