A ‘compile timeout’ means that it took too long to make the PDF for your document. This page explains why this can happen and how to fix it.
If you have several high-resolution PNG or JPEG images in your document, LaTeX has to resize them every time we compile the PDF, and this can take a long time. Here are some ways to get around this:
This replaces all of your graphics with boxes and makes the PDF compile much faster.
TikZ and pgfplots produce great graphics, but they can take a long time to compile. There are several ways you can externalize the TikZ pictures so that LaTeX doesn't have to redraw them from scratch every time it makes a new PDF.
Recent versions of the
mhchem package can take longer to compile.
The current version of biblatex on Overleaf is v3.7, which can be very slow especially if you're using styles that need to track occurrences of citations, e.g.
APA etc. It may help to try switching to a non-tracking style while compiling online, e.g.
authoryear, or (where possible) use BibTeX instead.
(When we upgrade to a newer version of TeX Live, a newer version of biblatex will also be installed, which should run much faster with most styles.)
LaTeX can fall into an infinite loop when it tries to make the PDF—no matter how long you wait, it will never finish. Infinite loops are most commonly caused by bugs in packages or in user-defined commands, e.g. when a command expands to itself (a process called recursion).
If you happen to have a
\tracingall in your document (perhaps leftover from a template or a project from a local machine), it'll be recording lots and lots of lines in the
.log file (which can quickly grow to hundreds of MBs) and showing no sign of stopping. Remove the
\tracingall call from your Overleaf project; or use the
trace package instead, if you need to debug online.
If you have a very large document, it may just take a long time to compile. We offer longer compile times on our paid plans:
|Free||Student, Collaborator, Pro|
|Timeout||1 minute||4 minutes|
We have to set timeouts in order to deal with infinite loops, and also to ensure that we are fair to all of our users.
If you have a compile timeout error that you cannot resolve, please let us know and we'll take a look for you.