Re: [gdal-dev] FATAL: CPLGetTLSList() failed to allocate TLS list!

2015-11-05 Thread Pierre Soille
On 05/11/2015 16:57, Even Rouault wrote: > Le jeudi 05 novembre 2015 16:27:40, Pierre Soille a écrit : >> Hello! >> >> when reading 1000's of jp2 images with the JP2OpenJPEG/JPEG-2000 driver, >> I get from time to time the following error: > How do you read them ? Within the same process one after

Re: [gdal-dev] FATAL: CPLGetTLSList() failed to allocate TLS list!

2015-11-05 Thread Even Rouault
Le jeudi 05 novembre 2015 16:27:40, Pierre Soille a écrit : > Hello! > > when reading 1000's of jp2 images with the JP2OpenJPEG/JPEG-2000 driver, > I get from time to time the following error: How do you read them ? Within the same process one after the others ? With (many) threads ? > > FATAL

[gdal-dev] FATAL: CPLGetTLSList() failed to allocate TLS list!

2015-11-05 Thread Pierre Soille
Hello! when reading 1000's of jp2 images with the JP2OpenJPEG/JPEG-2000 driver, I get from time to time the following error: FATAL: CPLGetTLSList() failed to allocate TLS list! It seems that this error occurs in cpl_multiproc.cpp in case not a call to VSICalloc() returns a NULL pointer, see http