[pdftex] filedescriptor leak in pdftex 14h

Han The Thanh thanh at informatics.muni.cz
Tue May 15 13:30:44 CEST 2001


> I am using pdflatex (14h) to produce a catalog with many images.
> After a few hundred images pdftex dies with the message
> 
> <use img_ghostdogthewayofthesamurai.jpg>pdflatex:
> img_serialexperimentslainreset1113b00002e257.jpg: Too many open files
> 
> if I use limit descriptors unlimited (which effectively sets the
> limit to 1024) I can go a bit further, but pdftex still dies ...
> 
> Is it realy necessary to keep descriptors to all included images
> open, or is it a filedescriptor leak ?
> 
> I am not familiar with the pdftex code, so I have not started to
> look for the bug in the code. If someone can tell me where abouts
> to look I will be glad to ...

I would try to ship each page explicitly (using \newpage or the likes at
desired places).  The images used in a page are freed after a page is
shipped out. So if you have many pages and each has many images, all the
images are kept in memory until shipout is called.

Thanh



More information about the pdftex mailing list