[metapost] Segfault when trying to access mp_svg_ship_out!
taco at elvenkind.com
Fri Aug 10 15:35:37 CEST 2012
On 08/10/2012 03:07 PM, Shriramana Sharma wrote:
> On Fri, Aug 10, 2012 at 6:09 PM, Shriramana Sharma <samjnaa at gmail.com> wrote:
>> I just tried doing the above and it segfaulted on me.
> ... and replacing the line
> mp_svg_ship_out ( curfig, 1 ) ;
> mp_ps_ship_out ( curfig, 1, 0 ) ;
> causes the same segfault for the same reason (i.e. hh->parent==0x0) too.
> I don't get it -- is it something *I'm* doing wrong? I extracted the
> curfig value the same way I did in my previous program which
> successfully printed out the internals of the computed path. So I am
> not sure why I'm getting a segfault with the same curfig value!
My guess is that metapost cannot find plain.mp, and that you have an
error message in results->term_out.
More information about the metapost