LaTeXTools
LaTeXTools copied to clipboard
compile issue: pdfTex error occurs intermittently
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?
Does this happen for all files?
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..
Is it always that same file? Were you ever out of disk space? What are the permission settings on that file?
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.
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.
Could you post the output of your console window? Ctrl+`
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.
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}
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.
Perhaps you could try ulimit -n 50000
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.