When compiling a large document using luatex and scrbook, I get the following error:

! Package tikz Error: Sorry, the system call 'lualatex -shell-escape -halt-on-error -interaction=batchmode -jobname tikz/Doc-figure22" "\def\tikzexternalrealjob{Doc}\input{Doc}"' did NOT result in a usable output file 'tikz/Doc-figure22' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in 'tikz/Doc-figure22.log'. If you continue now, I'll try to typeset the picture. See the tikz package documentation for explanation.

Within the log-file of the picture the last line is:

! ==> Fatal error occurred, no output PDF file produced!

Beside that I can't find the reason within the log file. However, I'm an amateur.

When I compile the picture alone or when I remove some other pictures in the document, the error is absent. So it is hard to localize the reason. However, wihtout \usetikzlibrary{external} \tikzexternalize the error does not occur. The package \usepackage{shellesc} is loaded as mentioned here. The option -shell-escape is set as mentioned here.

Has anybody an idea in which direction I can search? Shall I upload the log-file of the figure or something else to provide more information?

  • 1
    Create a small but complete example that demonstrates the error and can be used for tests and show it along with the log-file. – Ulrike Fischer Jan 8 at 15:57
  • The problem is, that in small examples the error does not occure, anymore. I didn't found a reproducible reduction, yet. The error disappears, when I remove only a few pictures, but not a special picture. – Richard Jan 8 at 17:28
  • Without an example it is not possible to debug this. Check the Doc-figure22.log mentioned in the error message for a clue. – Ulrike Fischer Jan 8 at 17:34

After some trial and error the mentioned error will not appear anymore. However I do not understand why the error appeared before.

I removed small pieces of code from the documend and compiled it afterwards. I repeated this till the error did not appear anymore. Then I added the code piece by piece again (just by Ctrl+Z) and compiled everytime until the documend had the original form. But the error did not appear, anymore.

A longer time ago I had a similar problem with \usetikzlibrary{external} \tikzexternalize, when I added too much pictures ad once (at least this was my assumption). However this time the change from unsuccessful to successful compilation changed whithout removing a tikz picture. I just removed tables.

If I can help somebody with more information, let me know.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.