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

luigi scarso luigi.scarso at gmail.com
Mon Nov 16 23:08:36 CET 2015


On Mon, Nov 16, 2015 at 10:45 PM, Andreas Matthias <
andreas.matthias at gmail.com> wrote:

> The code shown below triggers the following assertion:
>
> .../source/texk/web2c/luatexdir/image/pdftoepdf.w:844:
>    void unrefPdfDocument(char*): Assertion `pdf_doc->occurences!=0' failed.
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> \directlua{
>   local i = 1
>   while i < 10000 do
>      local pages = img.scan{filename='foo.pdf'}.pages
>      print('Run:', i, 'pages:', pages)
>      i = i + 1
>   end
> }
> \bye
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> 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.
>
>
> Andreas
>
> _______________________________________________
> dev-luatex mailing list
> dev-luatex at ntg.nl
> http://www.ntg.nl/mailman/listinfo/dev-luatex
>

Thank you for the report. We will investigate.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/dev-luatex/attachments/20151116/3a3434ae/attachment.html>


More information about the dev-luatex mailing list