pearu/pylibtiff

May be memory Leak when saving many 3D images

artzers opened this issue · 0 comments

Hi, Im using pylibtiff to compress and save 3D TIFF images (or multiple page TIFF). After saving about several thousand 3D images, the computer memory used is more than 50GB. It makes computer almost crashed. I think there may be memory leak. The code is following:
tiff = TIFFimage(saveImg, description='')
tiff.write_file(savePath, compression='lzw', verbose=False)
del tiff

Can you check it? Thanks.