MP & TeX capacity exceeded
Hello, suppose having the following sample code: ---- \starttext \startluacode context.startMPcode() for i = 1, -- 1000 -- OK 1e6 do context("draw (0,0) -- (5cm,5cm);") end context.stopMPcode() \stopluacode \stoptext ---- I'm getting "TeX capacity exceeded" error. So the question is - which parameter in which file to extend it? I found texmf.cnf and texmfcnf.lua, with many variables having "size" in its name; which is the proper one? Best regards, Lukas
On Sat, Sep 1, 2012 at 6:28 PM, Procházka Lukáš wrote:
Hello,
suppose having the following sample code:
---- \starttext \startluacode context.startMPcode() for i = 1, -- 1000 -- OK 1e6 do context("draw (0,0) -- (5cm,5cm);") end context.stopMPcode() \stopluacode \stoptext ----
I'm getting "TeX capacity exceeded" error.
Where is that "Like" button? ;) Mojca PS: Weird enough, the code works for me on 64-bit LuaTeX under Mac OS X (if I enter 1000000, I didn't try if 1e6 works already and I don't have enough physical memory to try with 10^7). It surely exhausts all the available memory (it goes beyond 1.5 GB), but it finishes the job without errors. It's probably a different problem at your end, but I nevertheless ask - do you have enough free memory (RAM)?
On Sat, 01 Sep 2012 21:47:21 +0200, Mojca Miklavec
On Sat, Sep 1, 2012 at 6:28 PM, Procházka Lukáš wrote:
Hello,
suppose having the following sample code:
---- \starttext \startluacode context.startMPcode() for i = 1, -- 1000 -- OK 1e6 do context("draw (0,0) -- (5cm,5cm);") end context.stopMPcode() \stopluacode \stoptext ----
I'm getting "TeX capacity exceeded" error.
Where is that "Like" button? ;)
Mojca
PS: Weird enough, the code works for me on 64-bit LuaTeX under Mac OS X (if I enter 1000000, I didn't try if 1e6 works already and I don't have enough physical memory to try with 10^7). It surely exhausts all the available memory (it goes beyond 1.5 GB), but it finishes the job without errors. It's probably a different problem at your end, but I nevertheless ask - do you have enough free memory (RAM)?
OK, thanks for testing. Works well for me, too, on another computer with more RAM (3 GB, 32b; failed on 32b with 1 GB RAM). Best regards, Lukas
participants (2)
-
Mojca Miklavec
-
Procházka Lukáš