Catch xdvipdfmx driver error (that breaks XeTeX compilation).

This prevents an assertion due to an unrecognized error.

Fixes: #10076.
This commit is contained in:
Juergen Spitzmueller 2017-06-25 10:29:19 +02:00
parent 678f3e7589
commit 9c0dd478df
2 changed files with 11 additions and 1 deletions

View File

@ -887,8 +887,16 @@ int LaTeX::scanLogFile(TeXErrors & terr)
} else if (contains(token, "No pages of output")) { } else if (contains(token, "No pages of output")) {
// A dvi file was not created // A dvi file was not created
retval |= NO_OUTPUT; retval |= NO_OUTPUT;
} else if (contains(token, "Error 256 (driver return code)")) {
// This is a xdvipdfmx driver error reported by XeTeX.
// We have to check whether an output PDF file was created.
FileName pdffile = file;
pdffile.changeExtension("pdf");
if (!pdffile.exists())
// No output PDF file was created (see #10076)
retval |= NO_OUTPUT;
} else if (contains(token, "That makes 100 errors")) { } else if (contains(token, "That makes 100 errors")) {
// More than 100 errors were reprted // More than 100 errors were reported
retval |= TOO_MANY_ERRORS; retval |= TOO_MANY_ERRORS;
} else if (prefixIs(token, "!pdfTeX error:")) { } else if (prefixIs(token, "!pdfTeX error:")) {
// otherwise we dont catch e.g.: // otherwise we dont catch e.g.:

View File

@ -49,6 +49,8 @@ What's new
- Catch "! Incomplete \if[x]" LaTeX error (bug 10666). - Catch "! Incomplete \if[x]" LaTeX error (bug 10666).
- Catch xdvipdfmx driver error that breaks XeTeX compilation (bug 10076).
- Fix caption handling in listings insets when it is split into multiple - Fix caption handling in listings insets when it is split into multiple
lines in the LaTeX output (bug 10705). lines in the LaTeX output (bug 10705).