Hi all, here down at Debian we got a bug report which I can easily reproduce with upstream TeX Live. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907784
What happens is that when xelatex *first* compiles the document, everything is fine. It also generates a .aux file which somehow disturbes xelatex, because on the second run when the .aux file is read the output is a completely broken pdf. $ pdfinfo newfile1.damaged.pdf Syntax Error: Couldn't read xref table Syntax Warning: PDF file is damaged - attempting to reconstruct xref table... Syntax Error: Couldn't find trailer dictionary Syntax Error: Couldn't read xref table $ I tried uncompressing it with pdftk but that converted the damaged file into a good and working one. I am having a hard time understand what might be wrong. It is also not trivial to reduce this example to a minimal one, thus I refrain from posting the files here, but only include the links: TeX files: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=test.tar.bz2;msg=5 Images: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=pic.tar.bz2;msg=10 I can send the .tex, the .aux file, or whatever might be useful to debug. It would be great if someone can help tracking down this strange bug. Thanks Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. + JAIST + TeX Live + Debian Developer GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13