Skip to main content

MAX_CONSECUTIVE_ERRORS

Constant MAX_CONSECUTIVE_ERRORS 

Source
pub const MAX_CONSECUTIVE_ERRORS: usize = 500;
Expand description

Threshold for “same error fired this many times in a row → bail.” Set well above any legitimate same-error pattern (a paper with 500+ identical errors would already be near-useless output) but well below the 10000 MAX_ERRORS cap so runaway papers don’t accumulate huge noise logs. Empirically, the pathological \tabalign-in-math-mode runaway hits >9000 consecutive same errors; this catches that at 500 instead. The threshold was tightened from an initial 2000 after verifying no test in the 1112-test suite exceeds it.