<div dir="ltr"><div>Hi all,<br><br></div>the sample file is intended for XeLaTeX but requests the fontenc package to encode unicode to the T1 encoding, which is wrong, it cannot work. As a result it probably writes an illegal code into the .aux file and XeLaTeX then crashes without completing the output to PDF (and the most important xref tables are close to the end of the PDF file). Just removing \usepackage[T1]{fontenc} solves the problem and it works fine on my computer.<br><br clear="all"><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">út 4. 9. 2018 v 16:27 odesílatel Norbert Preining <<a href="mailto:norbert@preining.info">norbert@preining.info</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
here down at Debian we got a bug report which I can easily reproduce<br>
with upstream TeX Live.<br>
<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907784" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907784</a><br>
<br>
What happens is that when xelatex *first* compiles the document,<br>
everything is fine.<br>
<br>
It also generates a .aux file which somehow disturbes xelatex, because<br>
on the second run when the .aux file is read the output is a completely<br>
broken pdf.<br>
<br>
$ pdfinfo newfile1.damaged.pdf <br>
Syntax Error: Couldn't read xref table<br>
Syntax Warning: PDF file is damaged - attempting to reconstruct xref table...<br>
Syntax Error: Couldn't find trailer dictionary<br>
Syntax Error: Couldn't read xref table<br>
$<br>
<br>
I tried uncompressing it with pdftk but that converted the damaged file<br>
into a good and working one.<br>
<br>
I am having a hard time understand what might be wrong. It is also not<br>
trivial to reduce this example to a minimal one, thus I refrain from<br>
posting the files here, but only include the links:<br>
TeX files:<br>
        <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=test.tar.bz2;msg=5" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=test.tar.bz2;msg=5</a><br>
Images:<br>
        <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=pic.tar.bz2;msg=10" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=pic.tar.bz2;msg=10</a><br>
<br>
I can send the .tex, the .aux file, or whatever might be useful to<br>
debug.<br>
<br>
It would be great if someone can help tracking down this strange bug.<br>
<br>
Thanks<br>
<br>
Norbert<br>
<br>
--<br>
PREINING Norbert                               <a href="http://www.preining.info" rel="noreferrer" target="_blank">http://www.preining.info</a><br>
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer<br>
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13<br>
</blockquote></div>