# [pdftex] Fwd: [OS X TeX] "Too many open files" error - how to fix?

Gerben Wierda Sherlock at rna.nl
Fri Sep 6 10:59:22 CEST 2002

```This question was asked on the Mac OS X TeX list. As I see it, this
person runs against a 256 open files limit. Which is strange because I
would guess that inlcuded files release their handles when they are
included. His pdftex version will be

pdfTeX (Web2C 7.3.7x) 3.14159-1.00b-pretest-20020211
kpathsea version 3.3.7
Copyright (C) 1999 Han The Thanh, Petr Sojka, and Jiri Zlatuska.

Is this a known possible problem? Have the source and/or
source.development directories of TeX Live been updated since the
release of TeX Live 7?

Thanks,

G

Begin forwarded message:

> We have a substantial LaTeX document that gives the following error
> when typesetting the entire thing:
>
> <Chapter-4/Section-4.5/ProblemFigs/HW_moments_J_300/
> HW_moments_J_300.pdf, id=15
> 01, 168.63pt x 124.465pt>
> <use  Chapter-4/Section-4.5/ProblemFigs/HW_moments_J_300/
> HW_moments_J_300.pdf>pdftex:
> Chapter-4/Section-4.5/ProblemFigs/HW_moments_J_400/
> HW_moments_J_400.pdf: Too many open files
>
> LaTeX Warning: Reference `problem:HW_moments_J_300' on page 140
> undefined on in
> put line 1416.
>
> LaTeX Warning: Marginpar on page 140 moved.
>
>
> We have never had this happen before. We suspect the "Too many open
> files" error has something to do with the number of figures (we are
> including pdf files using \includegraphics) in the document. Here are
> the totals:
>
> 3 in Chapter 1
> 153 in Chapter 2
> 0 in Chapter 3
> 98 in Chapter 4
>
> The strange thing is that this document typeset before upgrading to
> the  latest release of teTeX-TeXLive.

```