Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math preview should timeout #1465

Open
PhelypeOleinik opened this issue Feb 28, 2020 · 0 comments
Open

Math preview should timeout #1465

PhelypeOleinik opened this issue Feb 28, 2020 · 0 comments
Labels

Comments

@PhelypeOleinik
Copy link

PhelypeOleinik commented Feb 28, 2020

Sometimes an equation can be mistyped (users do all sorts of weird LaTeX
gymnastics:

\begin{array}{c}
  a\\\noalign{\vspace{\baselineskip pt}}
\end{array}

from here: https://tex.stackexchange.com/a/530261/134574) which can
lead TeX into an infinite loop. I tried the code above once, and then forgot
about it. A couple hours later I noticed that the CPU was busy and went
to find a pdfTeX process running forever.

I think it would be nice to have a (configurable) timeout for math preview,
after which the LaTeX run is killed, to avoid this type of thing. I'd say 10
seconds is probably enough for normal equations, but suppose someone
has loaded a huge bundle of packages, more than 60 seconds for one
equation most likely means it's stuck, and it would be a good limit to stop
a potentially infinite process.

This is sort of similar to #1349, but the problem there is a compilation
error (after which TeX prompts for interaction) but when TeX is stuck in an
infinite loop, -interaction=nonstopmode will do nothing useful.

@r-stein r-stein added the bug label Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants