[metapost] mpost assertion failure

Werner LEMBERG wl at gnu.org
Thu May 23 10:59:15 CEST 2013


> And with rev. 30652, everything works fine again, thanks.

Alas, I spoke too soon.  While it doesn't crash any more, some of of
the resulting glyphs are heavily distorted.

Attached are the necessary input files to provide one of those glyphs,
together with mpost's PS output from r26509 (good) and r30634 (bad).
Sorry for not having more time to reduce the sample code even more.

Folks, this isn't production code...


    Werner


PS: Comparing the i386-linux mpost binaries of r26509 (for TeXLive
    2012) and the current one (r30634) I notice that the former has a
    size of about 506kByte, while the latter is almost 13 times
    larger, having 6474kByte!  How comes?  While I agree that disk
    space is cheap today, such an increase looks, well, heavy.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpost-distortion.tar.gz
Type: application/octet-stream
Size: 13459 bytes
Desc: not available
URL: <http://tug.org/pipermail/metapost/attachments/20130523/d6a954b1/attachment.obj>
-------------- next part --------------
%!PS
%%BoundingBox: -28 0 301 786 
%%HiResBoundingBox: -27.503 0 300.8456 785.82744 
%%Creator: MetaPost 1.504
%%CreationDate: 2013.05.23:1045
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
% MF2PT1: bbox 0 -160.88312 365.11708 160.88312
% MF2PT1: glyph_dimensions 0 -160.88312 365.11708 160.88312
% MF2PT1: font_size 0
% MF2PT1: font_slant 0
% MF2PT1: font_identifier UNSPECIFIED
% MF2PT1: font_coding_scheme UNSPECIFIED
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.66487
% MF2PT1: glyph_name flags.d3
% MF2PT1: bbox 0 -802.38164 300.8456 27.503
% MF2PT1: glyph_dimensions 0 -802.38164 300.8456 27.503
% MF2PT1: font_size 11.22
% MF2PT1: font_slant 0
% MF2PT1: font_identifier feta11.22
% MF2PT1: font_coding_scheme asis
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.01974
% MF2PT1: bbox 0 -27.503 300.8456 802.38164
% MF2PT1: glyph_dimensions 0 -27.503 300.8456 802.38164
% MF2PT1: font_size 11.22
% MF2PT1: font_slant 0
% MF2PT1: font_identifier feta11.22
% MF2PT1: font_coding_scheme asis
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.01974
 0 0 0 setrgbcolor
newpath 0 279.4522 moveto
103.10854 346.89278 239.25117 447.68195 239.25117 568.6897 curveto
239.25117 630.58194 221.33902 690.8218 192.03363 745.31348 curveto
185.3486 783.22664 236.47186 801.83385 255.7206 768.49391 curveto
283.8391 705.45413 300.8456 637.73953 300.8456 568.6897 curveto
300.8456 341.02303 0 227.66667 0 0 curveto
 closepath fill
newpath -27.503 0 moveto
-27.503 279.4522 lineto
0 279.4522 lineto
0 0 lineto
 closepath fill
showpage
%%EOF
-------------- next part --------------
%!PS
%%BoundingBox: -28 0 301 786 
%%HiResBoundingBox: -27.503 0 300.8456 785.82744 
%%Creator: MetaPost 1.802
%%CreationDate: 2013.05.23:1014
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
% MF2PT1: bbox 0 -160.88312 365.11708 160.88312
% MF2PT1: glyph_dimensions 0 -160.88312 365.11708 160.88312
% MF2PT1: font_size 0
% MF2PT1: font_slant 0
% MF2PT1: font_identifier UNSPECIFIED
% MF2PT1: font_coding_scheme UNSPECIFIED
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.66487
% MF2PT1: glyph_name flags.d3
% MF2PT1: bbox 0 -802.38164 300.8456 27.503
% MF2PT1: glyph_dimensions 0 -802.38164 300.8456 27.503
% MF2PT1: font_size 11.22
% MF2PT1: font_slant 0
% MF2PT1: font_identifier feta11.22
% MF2PT1: font_coding_scheme asis
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.01974
% MF2PT1: bbox 0 -27.503 300.8456 802.38164
% MF2PT1: glyph_dimensions 0 -27.503 300.8456 802.38164
% MF2PT1: font_size 11.22
% MF2PT1: font_slant 0
% MF2PT1: font_identifier feta11.22
% MF2PT1: font_coding_scheme asis
% MF2PT1: font_fixed_pitch 0
% MF2PT1: charwd 3.01974
 0 0 0 setrgbcolor
newpath 0 279.4522 moveto
-73.9117 51.76152 239.25117 316.53847 239.25117 568.6897 curveto
239.25117 630.58194 221.33902 690.8218 192.03363 745.31348 curveto
185.3486 783.22664 236.47186 801.83385 255.7206 768.49391 curveto
283.8391 705.45413 300.8456 637.73953 300.8456 568.6897 curveto
300.8456 341.02303 0 227.66667 0 0 curveto
 closepath fill
newpath -27.503 0 moveto
-27.503 279.4522 lineto
0 279.4522 lineto
0 0 lineto
 closepath fill
showpage
%%EOF


More information about the metapost mailing list