I've written software which generates rather long PDFs from generated .tex files with pdflatex. On occasion, I'll get broken pipe errors which cause the pdf generation to fail. I have trouble recreating the errors, and the pdf generation will often work if I try it a second time.

I'm already calling pdflatex with -interaction=nonstopmode.

I'm looking for a way to: prevent the broken pipe errors from occurring OR ignore the broken pipe error and continue

Here is the error that I am getting:

[323] [324 </srv/www/mydomain.com/public_html/crawler/RRnKPFCjyZMKk1nUg/Images/Q
!pdfTeX error: pdflatex (file /srv/www/mydomain.com/public_html/crawler/RRnKPFCj
yZMKk1nUg/Images/QBFkqp_thumbnail1063.png): fflush() failed (Broken pipe)
 ==> Fatal error occurred, no output PDF file produced!

closed as too localized by lockstep, Marco Daniel, percusse, Paulo Cereda, Joseph Wright Mar 3 '12 at 21:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

migrated from stackoverflow.com Jan 13 '12 at 21:27

This question came from our site for professional and enthusiast programmers.

  • 1
    As is evident from the compilation, this seems to occur with an image. A quick online search revealed a way to identify the problem image when using xelatex. How do you generate the images? I noticed you're using "underscores" in your paths. Do you specifically accommodate for this via grffile? – Werner Jan 12 '12 at 21:15
  • 3
    Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jan 13 '12 at 21:29
  • Please tell us more about the setup: Which version of pdfTeX on which OS are you running? – Martin Schröder Jan 13 '12 at 22:30
  • @Werner: He is using pdflatex, not xelatex. – Martin Schröder Jan 15 '12 at 17:28
  • 1
    @RobertRawlingsWVU: Please try to reproduce the errors while running strace and study its ouput (you should probaly redirect the output with -o, see man strace). – Martin Schröder Jan 18 '12 at 21:36