[Therion] Metapost exit code in therion 6.0.1 and 6.0.2
A Gott
alastairgott at gmail.com
Wed Sep 22 23:00:31 CEST 2021
HI Everyone,
A friend messaged me while I was lucky enough to escape the UK and get to
spain for some caving, which was great!
I've got back and tonight I tried to look at the problem he was having
outputting in Therion 6.0.1
I ran his survey in 5.5.3 with no issues whatsoever, I thought he could be
getting a bug from 6.0.1 so i updated my software, and now i'm bugged in
6.0.2 with the metapost exit code on his survey.
####################### metapost log file ########################
This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version
6.3.2) 22 SEP 2021 21:44
**data.mp
(c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
(c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
Preloading the plain mem file, version 1.005) ) (./data.mp
{randomseed:=42}
[1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14]
[1]
[Warning: scrap outline intersects itself in scrap
loper-p at inglorious.CusseyMas
ter] [2] [3] [4] [5]
[Warning: scrap outline intersects itself in scrap indy-1p at Indy.CusseyMaster
]
[6] [7] [8] [9] [10] [11] [12]
[Warning: scrap outline intersects itself in scrap
timewarp-3p at Timewarp.CusseyM
aster] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26]
[27]
[Warning: scrap outline intersects itself in scrap
inglorious-1p at inglorious.Cus
seyMaster] [28] [29] [30] [31]
[Warning: scrap outline intersects itself in scrap
mine1 at inglorious.CusseyMaste
r] [32] [33] [34] [35] [36] [37] [38]
[Warning: scrap outline intersects itself in scrap
shattered_dreams-2p at shattere
d_dreams.CusseyMaster] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48]
[49]
[50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] (./mptextmp.mp) [61]
! Logarithm of -64.77 has been replaced by 0.
log->begingroup(if(EXPR2)=0:0else:mlog((EXPR2))/
mlog(10)fi)endgroup
<to be read again>
;
s_altitudebar->...d:=(EXPR1)-(EXPR0);dlog:=log(d);
if.dlog.mod1<0.301:dv:=2;e...
l.10965 ...,(0.00000,0.75000,0.75000,0.00000))("")
;
Since I don't take logs of non-positive numbers,
I'm zeroing this one. Proceed, with fingers crossed.
(./mptextmp.mp) (./mptextmp.mp) [62] )
Here is how much of MetaPost's memory you used:
18042 strings using 388328 characters
2412656 bytes of node memory
1681 symbolic tokens
11i,82n,19p,452b,5f stack positions out of 16i,98n,20p,487b,6f
76 output files written: data-patt.1 .. data.62
#################### end of metapost log file ####################
C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code -- 2
writing xtherion file ... done
I don't know whether its a bug or whether there is an error with the config
file which only presents in 6.0.1/2
but I thought I would send it to the list for thoughts?
Alastair.
please find below config file which ran fine in 5.5.3
source CusseyMaster.th
export model -fmt survex -o CusseyMaster.3d
export map -proj [elevation 0] -layout localside -o CusseyElevation.pdf
export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
localplan -layout-map-image 5 20 sw "./arrow.png" -layout-map-header 0 0
off -o CusseyMaster.pdf
#export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
localplan -layout-map-image 17 20 sw "./arrow.png" -o CusseyMaster.pdf
export map -proj plan -layout LayoutMapBorder -layout localplan -o
CusseyPlan.pdf
layout sidesurvey
map-image 55 100 s CusseyElevation.pdf
endlayout
layout localside
symbol-set BCRA
symbol-hide group cave-centreline
scale-bar 25 m
map-header 98 97 n
map-comment "Discovered and Explored by Eldon Pothole Club 2020 -
2021<br>Surveyed By: Luke Cafferty, Rob Eavis, Jon Pemberton, Jeff
Wade<br>Survey Drawn By: Rob Eavis<br>Elevation, facing North<br>Entrance:
SK 21545 76524<br>Altitude: 244m<br>"
legend on
grid bottom
grid-coords border
grid-size 10 10 10 m
#grid-origin 0 0 0 m
colour map-fg [80 89 94]
#colour map-bg [20 39 14]
code metapost
def s_scalebar (expr l, units, txt) =
begingroup
interim warningcheck:=0;
tmpl:=l / Scale * cm * units / 2;
tmpx:=l / Scale * cm * units / 5;
tmph:=5bp; % bar height
endgroup;
pickup PenC;
draw (-tmpl,0)--(tmpl,0)--(tmpl,-tmph)--(-tmpl,-tmph)--cycle;
p:=(0,0)--(tmpx,0)--(tmpx,-tmph)--(0,-tmph)--cycle;
for i:=-2.5 step 2 until 2:
fill p shifted (i * tmpx,0);
endfor;
begingroup
interim labeloffset:=3.5bp;
for i:=0 step (l/5) until (l-1):
tmpx:=tmpl * (i * 2 / l - 1);
label.top(thTEX(decimal (i)),(tmpx,0));
endfor;
label.top(thTEX(decimal (l) & "\thinspace" & txt),(tmpl,0));
label.bot(thTEX("Scale = 1 : " & decimal round(Scale*100)),(0,-tmph));
endgroup;
enddef;
endcode
code tex-map
\legendcontent={%
\hsize=\legendwidth
\ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi
\edef\tmp{\the\cavename} \ifx\tmp\empty \else
{\size[40]\the\cavename} \vskip1cm
\fi
\ifscalebar\scalebar\vskip1cm\fi
{\rightskip=0pt plus 3em\parskip=3bp
\edef\tmp{\the\comment} \ifx\tmp\empty \else
{\size[12]\the\comment} \par\medskip
\fi
}
\formattedlegend
}
endlayout
layout LayoutMapBorder
code tex-map
\framethickness=0.5mm
endlayout
####### PLAN #######
layout localplan
symbol-hide group cave-centreline
#scale-bar 20 m
#symbol-hide special scale-bar
symbol-hide special north-arrow
code tex-map
\legendtitle={}
\cavename={}
\scalebarfalse
\cavelengthtitle={}
\cavelength={}
\cavedepthtitle={}
\cavedepth={}
endcode
map-header 5 20 sw
map-comment "Plan View"
colour map-fg depth
#colour map-bg [20 39 14]
endlayout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210922/db3da48a/attachment.htm>
More information about the Therion
mailing list