Hello, In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err? Thanks, Joh context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58 systems : randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' <main ctx instance>:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... <argument> ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2->#1 \positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext ?
On Sun, Nov 2, 2008 at 7:53 PM, Johannes Graumann
Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Can you try these steps ? 1) cd /opt/ConTeXtMinimals 2) ./first-install.sh 3) cd tex 4) . setuptex 5) context --generate 6) context --make Here minimals is ok minimals Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi
No changes in error message. I attach the code that doesn't work like so: context --ctx=t-openoffice Attempt.odt luigi scarso wrote:
On Sun, Nov 2, 2008 at 7:53 PM, Johannes Graumann
wrote: Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Can you try these steps ? 1) cd /opt/ConTeXtMinimals 2) ./first-install.sh 3) cd tex 4) . setuptex 5) context --generate 6) context --make
Here minimals is ok minimals Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58
On Mon, Nov 3, 2008 at 8:51 PM, Johannes Graumann
No changes in error message. I attach the code that doesn't work like so:
context --ctx=t-openoffice Attempt.odt
ok, I can confirm you error now. minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.11.03 09:22 minimalsBIRTHDAY Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi
On Mon, Nov 3, 2008 at 8:51 PM, Johannes Graumann
No changes in error message. I attach the code that doesn't work like so:
context --ctx=t-openoffice Attempt.odt
I was able to bypass error with \startluacode function metapost.free_boxes() local tb = tex.box init = metapost.first_box or 0 tini = metapost.last_box or 0 --for i = metapost.first_box,metapost.last_box do for i = init,tini do local b = tb[i] if b then tb[i] = nil -- no node.flush_list(b) needed, else double free error else break end end end \stopluacode just after %context --ctx=t-openoffice Attempt.odt of t-openoffice.tex -- luigi
Johannes Graumann wrote:
No changes in error message. I attach the code that doesn't work like so:
context --ctx=t-openoffice Attempt.odt
runs ok here
luigi scarso wrote:
On Sun, Nov 2, 2008 at 7:53 PM, Johannes Graumann
wrote: Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Can you try these steps ? 1) cd /opt/ConTeXtMinimals 2) ./first-install.sh 3) cd tex 4) . setuptex 5) context --generate 6) context --make
Here minimals is ok minimals Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58
------------------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, Nov 4, 2008 at 1:28 PM, Hans Hagen
Johannes Graumann wrote:
No changes in error message. I attach the code that doesn't work like so:
context --ctx=t-openoffice Attempt.odt
runs ok here
hmm not here minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.11.03 09:22 minimalsBIRTHDAY Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi
Hi, Meanwhile we found there is a timing issue inside \everyjob. Hans is thinking really hard about a solution. Just for verification purposes, you could try the attached, patched t-openoffice.tex. That one should work, but it is not a solution, just to verify the bug. Best wishes, Taco luigi scarso wrote:
On Tue, Nov 4, 2008 at 1:28 PM, Hans Hagen
mailto:pragma@wxs.nl> wrote: Johannes Graumann wrote: > No changes in error message. I attach the code that doesn't work like so: > > context --ctx=t-openoffice Attempt.odt
runs ok here
hmm not here
minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.11.03 09:22
minimalsBIRTHDAY Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58
-- luigi
------------------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, Nov 5, 2008 at 12:24 PM, Taco Hoekwater
Hi,
Meanwhile we found there is a timing issue inside \everyjob. Hans is thinking really hard about a solution.
Just for verification purposes, you could try the attached, patched t-openoffice.tex. That one should work, but it is not a solution, just to verify the bug.
it works minimalsBIRTHDAY Linux john 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux MtxRun | current version: 2008.10.31 13:58 This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown -- luigi
Johannes Graumann schrieb:
Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Thanks, Joh
context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58
systems : randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' <main ctx instance>:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... <argument> ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2->#1
\positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext
?
The loop variables metapost.first_box and metapost.last_box are not defined. You can try to remove the comment in line 376 of mlib-pps.lua. [376] metapost.first_box, metapost.last_box = 1000, 1100 Best wishes, Peter
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Peter Rolf wrote:
Johannes Graumann schrieb:
Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Thanks, Joh
context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58
systems : randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' <main ctx instance>:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... <argument> ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2->#1
\positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext
?
The loop variables metapost.first_box and metapost.last_box are not defined. You can try to remove the comment in line 376 of mlib-pps.lua.
[376] metapost.first_box, metapost.last_box = 1000, 1100
you can make that metapost.first_box = metapost.first_box or 1000 metapost.last_box = metapost.last_box or 1100 but even then, these vars are set in mlib-pps.tex 61: {\ctxlua{metapost.first_box, metapost.last_box = \number\MPLIBfirst, \number\MPLIBlast}} so, it more looks like you have a faulty format file ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb:
Peter Rolf wrote:
Johannes Graumann schrieb:
Hello,
In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the error below. Where might I err?
Thanks, Joh
context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58
systems : randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' <main ctx instance>:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... <argument> ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2->#1
\positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext
?
The loop variables metapost.first_box and metapost.last_box are not defined. You can try to remove the comment in line 376 of mlib-pps.lua.
[376] metapost.first_box, metapost.last_box = 1000, 1100
you can make that
metapost.first_box = metapost.first_box or 1000 metapost.last_box = metapost.last_box or 1100
but even then, these vars are set in
mlib-pps.tex 61: {\ctxlua{metapost.first_box, metapost.last_box = \number\MPLIBfirst, \number\MPLIBlast}}
missed that one (stupid me grep'ed only the lua files...) :)
so, it more looks like you have a faulty format file
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (5)
-
Hans Hagen
-
Johannes Graumann
-
luigi scarso
-
Peter Rolf
-
Taco Hoekwater