[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crash while processing lily-7d242e8d.ly
From: |
Neil Puttock |
Subject: |
Re: crash while processing lily-7d242e8d.ly |
Date: |
Thu, 30 Apr 2009 22:04:49 +0100 |
2009/4/30 Werner LEMBERG <address@hidden>:
> Interestingly,
>
> lilypond -dbackend=eps lily-7d242e8d.ly
>
> works just fine.
Looks like you were trying to run the snippet with the lilypond-book
preamble included.
You should get the following error message,
The PostScript backend does not support the
system-by-system output. For that, use the EPS backend instead,
lilypond -dbackend=eps FILE
If have cut & pasted a lilypond fragment from a webpage, be sure
to only remove anything before
%% ****************************************************************
%% Start cut-&-pastable-section
%% ****************************************************************
but calling ly:error doesn't work.
Here's a minimal example which also fails:
#(ly:error "foo")
If you format the string with arguments, it works fine:
#(ly:error "foo ~a" "bar")
Here's the source of the problem in general-scheme.cc:
85 LY_DEFINE (ly_error, "ly:error",
86 1, 0, 1, (SCM str, SCM rest),
87 "A Scheme callable function to issue the error @var{str}."
88 " The error is formatted with @code{format} and @var{rest}.")
89 {
90 LY_ASSERT_TYPE (scm_is_string, str, 1);
>>91 if (scm_is_pair(scm_car(rest)))
92 rest=scm_car(rest);
If REST is null, then scm_car fails.
>From this commit: bc41f1ab4e112d7a75f7d3feb62589124d283fec
One for Carl, methinks. :)
Regards,
Neil