ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MP & TeX capacity exceeded
@ 2012-09-01 16:28 Procházka Lukáš
  2012-09-01 19:47 ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Procházka Lukáš @ 2012-09-01 16:28 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

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

[-- Attachment #2: t-MP.log --]
[-- Type: application/octet-stream, Size: 3212 bytes --]

(D:/Lukas/Miscell/Bet/t-MP.mkiv

ConTeXt  ver: 2012.04.10 19:46 MKIV  fmt: 2012.4.12  int: english/english

system          > cont-new.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > t-MP.top loaded

system          > options > start used options

used options    > % runtime options files (command line driven)
used options    > \unprotect
used options    > % feedback and basic job control
used options    > \nonstopmode
used options    > % handy for special styles
used options    > \startluacode
used options    > document = document or { }
used options    > document.arguments={
used options    >  ["FILE"]="t-MP.mkiv",
used options    >  ["halt-on-error"]=true,
used options    >  ["mode"]="t-MP",
used options    >  ["nonstopmode"]=true,
used options    > }
used options    > document.files={
used options    >  "D:/Lukas/Miscell/Bet/t-MP.mkiv",
used options    > }
used options    > \stopluacode
used options    > % process info
used options    > \setupsystem[inputfile=D:/Lukas/Miscell/Bet/t-MP.mkiv]
used options    > \setupsystem[\c!n=1,\c!m=1]
used options    > % modes
used options    > \enablemode[t-MP]
used options    > % options (not that important)
used options    > \startsetups *runtime:options
used options    > \stopsetups
used options    > % styles and modules
used options    > \startsetups *runtime:modules
used options    > \stopsetups
used options    > % done
used options    > \protect \endinput

system          > options > stop used options

(t-MP.top
)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown: library 'loc'
{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun': c:/ConTeXt/tex/texmf-context/metapost/context/base/metafun.mpiv
Runaway text?
metapost.graphic( "metafun", "metafun", [===[draw (0,0) -- (5cm,5cm);\ETC.
! TeX capacity exceeded, sorry [token memory size=63191721].

system          > tex > error on line 1000002 in file D:/Lukas/Miscell/Bet/t-MP.mkiv: TeX capacity exceeded, sorry [ ...


<inserted text> ...0) -- (5cm,5cm);draw (0,0)\ETC.
                                                  
\meta_process_graphic ...!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \m...
l.1000002 \stopMPcode
                     
<inserted text> ...nd\r    context.stopMPcode()\r  }
                                                  
\luat_start_lua_code_indeed ...ua \zerocount {#1}}
                                                  
l.15   \stopluacode
                   
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

!  ==> Fatal error occurred, no output PDF file produced!

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MP & TeX capacity exceeded
  2012-09-01 16:28 MP & TeX capacity exceeded Procházka Lukáš
@ 2012-09-01 19:47 ` Mojca Miklavec
  2012-09-02 15:05   ` Procházka Lukáš
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2012-09-01 19:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)?
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MP & TeX capacity exceeded
  2012-09-01 19:47 ` Mojca Miklavec
@ 2012-09-02 15:05   ` Procházka Lukáš
  0 siblings, 0 replies; 3+ messages in thread
From: Procházka Lukáš @ 2012-09-02 15:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 01 Sep 2012 21:47:21 +0200, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:

> 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


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-02 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01 16:28 MP & TeX capacity exceeded Procházka Lukáš
2012-09-01 19:47 ` Mojca Miklavec
2012-09-02 15:05   ` Procházka Lukáš

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).