[Dev-luatex] Assertion `pdf_doc->occurences!=0' failed

Andreas Matthias andreas.matthias at gmail.com
Mon Nov 16 22:45:51 CET 2015

The code shown below triggers the following assertion:

   void unrefPdfDocument(char*): Assertion `pdf_doc->occurences!=0' failed.


  local i = 1
  while i < 10000 do
     local pages = img.scan{filename='foo.pdf'}.pages
     print('Run:', i, 'pages:', pages)
     i = i + 1


On my side this example runs for about 3000 to 6000 iterations before
triggering this assertion. But with some real code I can trigger it
frequently with less than 200 iterations.


More information about the dev-luatex mailing list