[Therion] Metapost exit code -- 2
Martin Sluka
martinsluka at mac.com
Sun Jul 2 09:59:27 CEST 2017
There is a problem with maximum size of one scrap. Because Metapost creates vector images of scrap after scrap which are than connected together and exported to TeX and PDF. The maximum for one image for metapost is app. 5 m.
So the solution could be to create smaller scraps or change the scale.
m.s.
Odesláno z iPhonu
2. 7. 2017 v 8:00, Saeid Bostandoust via Therion <therion at speleo.sk>:
> Thanks for answering.
> I found the problem nearly, my project plan is very large and a th2 file of plan is about 23000 lines, im delete most of lines and reduce it to near 5000 lines and all done without errors... what should i do now?
> maybe 23000 lines cannot be parsed and processed with metapost...
>
>
> On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion <therion at speleo.sk> wrote:
>
>
> Hi
> I had this error recently and solved it by changing the scale of the output from 1 500 to 1 1000. I assumed my output was exceeding the size allowable for the pdf document?
>
> Michael
>
> From: Therion [mailto:therion-bounces at speleo.sk] On Behalf Of Saeid Bostandoust via Therion
> Sent: Sunday, July 2, 2017 8:56 AM
> To: List for Therion users
> Cc: Saeid Bostandoust
> Subject: Re: [Therion] Metapost exit code -- 2
>
> Thanks Bruce, but i dont understand how can i found the problem and what is that realy...
>
> On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion at speleo.sk> wrote:
>
> Saeid
> Try this https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean
>
> Bruce
>
> From: Therion [mailto:therion-bounces at speleo.sk] On Behalf Of Saeid Bostandoust via Therion
> Sent: Sunday, 2 July 2017 3:36 AM
> To: therion at speleo.sk
> Cc: Saeid Bostandoust <ssbostan at yahoo.com>
> Subject: [Therion] Metapost exit code -- 2
>
> Hi, What is this exit code? and why it happen? and how to correct that?
> Thanks.
>
> This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31) 1 JUL 2017 18:59
> **data.mp
> (./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
> ] [4011] [4012] [4013]
> [1]
> ! Value is too large (14667).
> <for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
> s:=decimal(roundone(xpart.po...
>
> draw_downscrap->...te.s.to.clip_name;endfor;endfor
> ;write"closepath fill"to.b...
> l.23507 draw_downscrap
> ;
> The equation I just processed has given some variable
> a value of 4096 or more. Continue and I'll try to cope
> with that big value; but it might be dangerous.
> (Set warningcheck:=0 to suppress this message.)
>
> [2] [3] [4] (./mptextmp.mp) [5] )
>
> Here is how much of MetaPost's memory you used:
> 1151 strings out of 1162
> 13347 string characters out of 20720
> 716551 words of memory out of 1500000
> 1391 symbolic tokens out of 16384
> 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
> 2056 string compactions (moved 27097277 characters, 2130567 strings)
> 18 output files written: data.1 .. data.4013
>
> #################### end of metapost log file ####################
> C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 2
> writing xtherion file ... done
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
>
> Virus-free. www.avg.com
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170702/7d6e8749/attachment.htm>
More information about the Therion
mailing list