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
On Mon, Nov 16, 2015 at 10:45 PM, Andreas Matthias < andreas.matthias@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@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-luatex
Thank you for the report. We will investigate. -- luigi
On Mon, Nov 16, 2015 at 11:08 PM, luigi scarso
On Mon, Nov 16, 2015 at 10:45 PM, Andreas Matthias < andreas.matthias@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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
we have made some test woth latest trunk with a doc of 10000 pages and we don't see problems. Which version of luatex trigs the assertion ? is it possible to have a sample of the foo.pdf ? -- luigi
luigi scarso wrote:
On Mon, Nov 16, 2015 at 11:08 PM, luigi scarso
wrote: On Mon, Nov 16, 2015 at 10:45 PM, Andreas Matthias < andreas.matthias@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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
we have made some test woth latest trunk with a doc of 10000 pages and we don't see problems. Which version of luatex trigs the assertion ? is it possible to have a sample of the foo.pdf ?
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) I've attached the PDF. But it seems to be independent of the program which created the PDF. I've tested it with several different PDFs and they all trigger this assertion. Andreas
On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
On Mon, Nov 16, 2015 at 11:08 PM, luigi scarso
wrote: On Mon, Nov 16, 2015 at 10:45 PM, Andreas Matthias < andreas.matthias@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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
we have made some test woth latest trunk with a doc of 10000 pages and
we don't see
problems. Which version of luatex trigs the assertion ? is it possible to have a sample of the foo.pdf ?
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
I've attached the PDF. But it seems to be independent of the program which created the PDF. I've tested it with several different PDFs and they all trigger this assertion.
ok, thank you very much. Which platform are you using ? -- luigi
luigi scarso wrote:
On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
> Which version of luatex trigs the assertion ? > is it possible to have a sample of the foo.pdf ?
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
I've attached the PDF. But it seems to be independent of the program which created the PDF. I've tested it with several different PDFs and they all trigger this assertion.
ok, thank you very much. Which platform are you using ?
GNU/Linux Andreas
On Tue, Nov 17, 2015 at 6:25 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
> Which version of luatex trigs the assertion ? > is it possible to have a sample of the foo.pdf ?
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
I've attached the PDF. But it seems to be independent of the program which created the PDF. I've tested it with several different PDFs and they all trigger this assertion.
ok, thank you very much. Which platform are you using ?
GNU/Linux
Ok, I have just checked your test with your foo,pdf under Ubuntu 14.04 LTS 64bit with latest luatex and it's ok . Later I will try the 0.80.0 one. -- luigi
luigi scarso wrote:
On Tue, Nov 17, 2015 at 6:25 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
> On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < > andreas.matthias@gmail.com> wrote: > > luigi scarso wrote: > > > Which version of luatex trigs the assertion ? > > is it possible to have a sample of the foo.pdf ? > > This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) > > I've attached the PDF. But it seems to be independent of the program > which created the PDF. I've tested it with several different PDFs and > they all trigger this assertion. > > ok, thank you very much. > Which platform are you using ?
GNU/Linux
Ok, I have just checked your test with your foo,pdf under Ubuntu 14.04 LTS 64bit with latest luatex and it's ok . Later I will try the 0.80.0 one.
I've just compiled the latest svn version: This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5532) But it still triggers the same assertion. Strange. I'm testing under Ubuntu 14.04.3 LTS x86_64, too. Andreas
On Tue, Nov 17, 2015 at 10:10 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
On Tue, Nov 17, 2015 at 6:25 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
> On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < > andreas.matthias@gmail.com> wrote: > > luigi scarso wrote: > > > Which version of luatex trigs the assertion ? > > is it possible to have a sample of the foo.pdf ? > > This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) > > I've attached the PDF. But it seems to be independent of the program > which created the PDF. I've tested it with several different PDFs and > they all trigger this assertion. > > ok, thank you very much. > Which platform are you using ?
GNU/Linux
Ok, I have just checked your test with your foo,pdf under Ubuntu 14.04 LTS 64bit with latest luatex and it's ok . Later I will try the 0.80.0 one.
I've just compiled the latest svn version:
This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5532)
But it still triggers the same assertion.
Strange. I'm testing under Ubuntu 14.04.3 LTS x86_64, too.
hm, I start to think that I'm missing something here that I'm still not able to see . You can build a debug version with ./build.sh --debug then with ulimit -c unlimited running your example we could have a core dump to inspect with gdb luatex core The gdb command bt could give some hints -- luigi
On Wed, Nov 18, 2015 at 6:57 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
You can build a debug version with
Attached is the backtrace with
This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5532)
Andreas
_______________________________________________ dev-luatex mailing list dev-luatex@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-luatex
Thank you very much. I think it's a collectgarbage issue, or at least the gc has its role. Just put collectgarbage('stop') on the top, and it should goes until the end. If you have a TL 2015 with context, you can check that the plain format shipped with context is ok: ## build the luatex-plain.fmt mtxrun --script plain --make ## run luatex --fmt=luatex-plain "test.tex" mtxrun --script plain test.tex (note that the context/plain format doesn't overwrite the canonical luatex.fmt format) This is a bit strange, I'm still looking into it. -- luigi
luigi scarso wrote:
I think it's a collectgarbage issue, or at least the gc has its role. Just put collectgarbage('stop') on the top, and it should goes until the end.
Yes. No failed assertion.
If you have a TL 2015 with context, you can check that the plain format shipped with context is ok: ## build the luatex-plain.fmt mtxrun --script plain --make
## run luatex --fmt=luatex-plain "test.tex" mtxrun --script plain test.tex
Yes. No failed assertion. Andreas
I have made a patch, but we will rewrite that part soon. You can check the latest trunk with the "knuth" plain format : %% luaknuthplain.tex \input plain \dump $>luatex -ini -jobname=luaknuthplain -progname=luaknuthplain luaknuthplain $>luatex --output-format=pdf --fmt=luaknuthplain.fmt test.tex As test.text I have used 100k iterations (not 10k as in your example), i.e. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \directlua{ local i = 1 while i < 100000 do local pages = img.scan{filename='foo.pdf'}.pages print('Run:', i, 'pages:', pages) i = i + 1 end } \bye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Memory consumption seems also ok ( well enough ok) . -- luigi
On Tue, Nov 17, 2015 at 10:10 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
On Tue, Nov 17, 2015 at 6:25 PM, Andreas Matthias < andreas.matthias@gmail.com> wrote:
luigi scarso wrote:
> On Tue, Nov 17, 2015 at 6:08 PM, Andreas Matthias < > andreas.matthias@gmail.com> wrote: > > luigi scarso wrote: > > > Which version of luatex trigs the assertion ? > > is it possible to have a sample of the foo.pdf ? > > This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) > > I've attached the PDF. But it seems to be independent of the program > which created the PDF. I've tested it with several different PDFs and > they all trigger this assertion. > > ok, thank you very much. > Which platform are you using ?
GNU/Linux
Ok, I have just checked your test with your foo,pdf under Ubuntu 14.04 LTS 64bit with latest luatex and it's ok . Later I will try the 0.80.0 one.
I've just compiled the latest svn version:
This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5532)
But it still triggers the same assertion.
Strange. I'm testing under Ubuntu 14.04.3 LTS x86_64, too.
ok, I was able to reproduce it with TL 2015 and beta 0.80.0 So now I can investigate better. -- luigi
participants (2)
-
Andreas Matthias
-
luigi scarso