LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

compile issue: pdfTex error occurs intermittently

Open lmkoch opened this issue 11 years ago • 11 comments

I use LateXTools on Ubuntu 12.04 and Mac OS X (10.8), and the issue only occured on Ubuntu so far. This is what happens:

!pdfTeX error: pdflatex (file /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
): fflush() failed (Input/output error)

When I run "pdflatex filename.tex" from the command line, filename.tex compiles without any problems, but not always when I compile within ST2. As soon as the error occurs, it won't go away, even when I delete all generated files. It seems a bit random, do you have any idea what could cause this?

lmkoch avatar Nov 27 '13 13:11 lmkoch

Does this happen for all files?

chid avatar Dec 02 '13 12:12 chid

I haven't identified a pattern. It doesn't happen for all files, and it doesn't necessarily happen from the start. Might be a bit hard to debug this one..

lmkoch avatar Dec 03 '13 15:12 lmkoch

Is it always that same file? Were you ever out of disk space? What are the permission settings on that file?

chid avatar Dec 03 '13 22:12 chid

It's not always the same file. I don't think I was ever out of disk space and I'm sure I'm not out of disk space now.. The permission settings where rw-rw-rw, I now set it to rwxrwxrwx, which didn't fix the issue.

lmkoch avatar Dec 05 '13 15:12 lmkoch

This has been happening to me on one of my three computers. No problem compiling the same file with sublime text and latextools on my other computers. I run texlive2012 and Ubuntu 14.04 64 bits on the afflicted computer.

I think the other computers might be running texlive 2013 I'll have to check.

EDIT: I should add that a build from command line with latexmk -pdf works just fine.

jclevesque avatar Feb 17 '14 20:02 jclevesque

Could you post the output of your console window? Ctrl+`

chid avatar Feb 17 '14 22:02 chid

Seems to have executed smoothly.

Writing file /home/jc/tmp/latex/test.tex with encoding UTF-8
[u'latexmk', u'-cd', u'-e', u"$pdflatex='pdflatex -interaction=nonstopmode -synctex=1 %S %O'", u'-f', u'-pdf', u'/home/jc/tmp/latex/test.tex']
Welcome to thread Thread-31
2
Finished normally
12

Then, in the regular panel I get :

[Compiling /home/jc/tmp/latex/test.tex]

There were errors in your LaTeX source

pdfTeX error: pdflatex (file /usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map): fflush() failed (Input/output error)
Check the TeX log file for more information

There were also warnings.

jclevesque avatar Feb 17 '14 22:02 jclevesque

The warning is only about the lack of author in my test document. This is my test document :

\documentclass{article}
\begin{document}
\title{Blablabla}
\maketitle
\section{Introduction}

\end{document}

jclevesque avatar Feb 17 '14 22:02 jclevesque

Interesting, could you also post the output of ulimit -a? Could you also try run ST3 as root and see if the problem is still an issue (just want to make sure it's not a permissions issue)?

I'm on Windows anyway so I don't know what I could do if it still doesn't work.

chid avatar Feb 18 '14 00:02 chid

Perhaps you could try ulimit -n 50000

chid avatar Feb 18 '14 02:02 chid

This same thing is happening to me except not with ST but within Jupyter Notebooks. Exact same error. I can run from the command line, and even as a Python subprocess from within IPython in the terminal, but not from a subprocess within Jupyter Notebooks.

connorferster avatar Feb 26 '20 05:02 connorferster