Re: [NTG-context] Metafun - Metapost capacity exceeded
Hello Hans, this is the message I got after running texexec pro_mcc_a3.tex. As you can see I have increased the memory size for mp. I have attached the two tex-files. Maybe there is a mistake in the mp-code. A pdf-file will be produced, but if you check the output you will see, that one cubicle is missing! Thanks for your help! Thomas TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 metapost : pro_mcc_a3-mpgraph format : metafun This is MetaPost, Version 0.901 (Web2C 7.5.3) (/home/thomas/texmf/web2c/natural.tcx) (pro_mcc_a3-mpgraph.mp [1] [2] [3] [4] [5] [6] [7] [8] [9] ! MetaPost capacity exceeded, sorry [main memory size=2000000]. <recently read> ; l.2277 ...aw he_zehn ((1.75),(5.6), (0.2),(17.5)); 9 output files written: pro_mcc_a3-mpgraph.1 .. pro_mcc_a3-mpgraph.9 Transcript written on pro_mcc_a3-mpgraph.log. error in metapost run : pro_mcc_a3-mpgraph.mp:2277 total run time : 0 seconds sorting and checking : running texutil TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values input file : pro_mcc_a3.tui output file : pro_mcc_a3.tuo passed commands : 18 remapped keys : 0 register entries : 0 -> 0 entries 0 references synonym entries : 0 -> 0 entries embedded files : 2 total run time : 7 seconds
Thomas Engel wrote:
Hello Hans,
this is the message I got after running texexec pro_mcc_a3.tex. As you can see I have increased the memory size for mp. I have attached the two tex-files. Maybe there is a mistake in the mp-code. A pdf-file will be produced, but if you check the output you will see, that one cubicle is missing!
No problems here. It uses 2351976 words of memory, though. Cheers, Taco
Thomas Engel wrote:
Hello Hans,
this is the message I got after running texexec pro_mcc_a3.tex. As you can see I have increased the memory size for mp. I have attached the two tex-files. Maybe there is a mistake in the mp-code. A pdf-file will be produced, but if you check the output you will see, that one cubicle is missing!
i run out of tex memory (8 meg) while converting the big last one btw: \definelayer[s1] \defineoverlay[s1][\composedlayer{s1}] \setupbackgrounds[page][background=s1] you can omit the second lin ethere (automatically done) \definelayer[s1] \setupbackgrounds[page][background=s1] also, there is no need for \starttext .. \stoptext inside a \startproject .. \stopproject Hans ----------------------------------------------------------------- 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 wrote:
Thomas Engel wrote:
Hello Hans,
this is the message I got after running texexec pro_mcc_a3.tex. As you can see I have increased the memory size for mp. I have attached the two tex-files. Maybe there is a mistake in the mp-code. A pdf-file will be produced, but if you check the output you will see, that one cubicle is missing!
i run out of tex memory (8 meg) while converting the big last one
Oh yeah, it needs 14.5 MB of memory or so for the conversion. Taco
Thomas Engel wrote:
Hello Hans,
this is the message I got after running texexec pro_mcc_a3.tex. As you can see I have increased the memory size for mp. I have attached the two tex-files. Maybe there is a mistake in the mp-code. A pdf-file will be produced, but if you check the output you will see, that one cubicle is missing!
ok, i stripped down the sample to one image and coul dgenerate a page (btw \twodigitMPoutput will make mem usage less but also the quality) now, the problem is in the way you define your graphic: def Whatever () = save SomePicture ; picture SomePicture ; lots of draws SomePicture := currentpicture ; SomePicture % return value end here you *never* erase the currentpicture, so graphic keeps accumulating, and each SomePicture has all previous draws you can see that on the screen: acrobat takes ages to draw the simple graphic and you can also see it from the mp output (a couple of 100K lines). solution: def Whatever () = save SomePicture ; picture SomePicture ; lots of draws SomePicture := currentpicture ; currentpicture := nullpicture ; % ADDED SomePicture % return value end or just def Whatever () = image ( lots of draws ) end So ... Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Taco Hoekwater
-
Thomas Engel