programming error message with bookparts and page-turn-breaking

2023-01-15 Thread William Rehwinkel

Dear list,

When I use a lilypond file structured similarly to the following minimal 
example, I get a programming error message thrown when compiling:


programming error: found a page-turnable place which was not breakable

The resulting file does look correct, with the bookparts seperated and 
the other pages structured with the optimal turning algorithm. I was 
just wondering if I was missing something to alleviate the error, as 
usually when one of these pops up I realized it's due to a small error 
in the file.


Thanks,
-Will

\version "2.24.0"

\paper {
  page-breaking = #ly:page-turn-breaking
}

\book {
  \bookpart {
\markup { title page here }
  }
  \bookpart {
\score {
  \relative c' {
\repeat unfold 1024 c8
  }
}
  }
}


--
+ -- +
|William Rehwinkel - Oberlin College and |
|   Conservatory '24 |
|  will...@williamrehwinkel.net  |
| PGP key:   |
| https://williamrehwinkel.net/static/pubkey.txt |
+ -- +


OpenPGP_signature
Description: OpenPGP digital signature


Re: Obscure error message from 2.25.0

2023-01-15 Thread Graham King

On 2023-01-15 19:30, Jean Abou Samra wrote:

Le 15/01/2023 à 20:20, Graham King a écrit :
I've just run convert-ly on a 600+ line file and its \include files, 
from 2.19.40 to 2.25.0.  Nothing seemed to change apart from the 
\version statement, but on trying to compile the file, I get:


Processing `/tmp/ly'
Parsing...ERROR: In procedure %resolve-variable:
Unbound variable: %
Exited with return code 1.

Does this point to an obvious problem?




You probably tried to use LilyPond comment syntax in a Scheme function.
Scheme comments start with ';' not '%'.


[snip]

Thanks Jean, you nailed the problem.



Re: Obscure error message from 2.25.0

2023-01-15 Thread Jean Abou Samra

I forgot the second part of the question:

Le 15/01/2023 à 20:20, Graham King a écrit :

Before I start laboriously bisecting the file, is there a way to get an error 
message that points to one or more lines of code in the file?



Try

#(ly:set-option 'compile-scheme-code)

(Caveat: not functional under Windows currently)


OpenPGP_signature
Description: OpenPGP digital signature


Re: Obscure error message from 2.25.0

2023-01-15 Thread Jean Abou Samra

Le 15/01/2023 à 20:20, Graham King a écrit :

I've just run convert-ly on a 600+ line file and its \include files, from 
2.19.40 to 2.25.0.  Nothing seemed to change apart from the \version statement, 
but on trying to compile the file, I get:

Processing `/tmp/ly'
Parsing...ERROR: In procedure %resolve-variable:
Unbound variable: %
Exited with return code 1.

Does this point to an obvious problem?




You probably tried to use LilyPond comment syntax in a Scheme function.
Scheme comments start with ';' not '%'.

With Guile 1, as used in LilyPond 2.22, it happens that

#(define (func)
   % a bunch of unbound variables
   'x)

#(display (func))


"works" and prints "x". This is weird. The function body has several
expressions: %, a, ..., 'x, where all the ones before 'x are references
to variables called '%', 'a', ... In Scheme, the expressions before the
last one in a function body are evaluated only for their side effects, the
result is discarded. It seems that Guile 1 somehow detects that a
simple variable can't have a side effect and removes it, even
though it would trigger an error if it were evaluated.

We're on Guile 2 now, and it doesn't have this obscure behavior.

Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Obscure error message from 2.25.0

2023-01-15 Thread Graham King
I've just run convert-ly on a 600+ line file and its \include files, from 
2.19.40 to 2.25.0.  Nothing seemed to change apart from the \version statement, 
but on trying to compile the file, I get:

Processing `/tmp/ly'
Parsing...ERROR: In procedure %resolve-variable:
Unbound variable: %
Exited with return code 1.

Does this point to an obvious problem?
Before I start laboriously bisecting the file, is there a way to get an error 
message that points to one or more lines of code in the file?

Grateful for any help

-- Graham


Re: Error message using AikenHeads with NullVoice

2022-07-07 Thread Jean Abou Samra




On 7/7/22 18:23, David F. wrote:

On Jul 7, 2022, at 1:59 AM, Valentin Petzel  wrote:

A different way to approach the problem would be to also specify something like

\context {
  \NullVoice
  shapeNoteStyles = ##()
}

It is still questionable why NullVoice would hickup on simply changing the
NoteHead style, so think this is worth creating a bug report.

Cheers,
Valentin

Yes, it does seem odd—and avoidable—that NullVoice would have a problem with 
shape notes.

With aikenHeads, there is one note-head shape (the triangle that is not a 
pyramid) that depends on the stem direction.  My assumption is that’s where the 
error is coming from.


Yup.


But if the note is not being shown at all, that logic doesn’t need to be 
executed.


The definition of NullVoice in ly/engraver-init.ly contains

  %% provide non-printing NoteHeads with proper extents for lyric alignment
  \consists Note_heads_engraver
  \omit NoteHead
  \override NoteHead.X-extent = #(lambda (g)
    (ly:stencil-extent (ly:note-head::print g) X))


Best,
Jean




Re: Error message using AikenHeads with NullVoice

2022-07-07 Thread David F.


> On Jul 7, 2022, at 1:59 AM, Valentin Petzel  wrote:
> 
> A different way to approach the problem would be to also specify something 
> like
> 
> \context {
>  \NullVoice
>  shapeNoteStyles = ##()
> }
> 
> It is still questionable why NullVoice would hickup on simply changing the 
> NoteHead style, so think this is worth creating a bug report.
> 
> Cheers,
> Valentin

Yes, it does seem odd—and avoidable—that NullVoice would have a problem with 
shape notes.

With aikenHeads, there is one note-head shape (the triangle that is not a 
pyramid) that depends on the stem direction.  My assumption is that’s where the 
error is coming from.  But if the note is not being shown at all, that logic 
doesn’t need to be executed.

David F.





Re: Error message using AikenHeads with NullVoice

2022-07-07 Thread David F.



> On Jul 6, 2022, at 12:40 PM, David Wright  wrote:
> 
> On Wed 06 Jul 2022 at 11:56:52 (-0600), David F. wrote:
>> [ … ]
>> The command to use aikenHeads comes from a separate style file that gets 
>> included for each hymn.  But there is an unfortunate interaction between 
>> aikenHeads and NullVoice: Lilypond outputs the following error message:
>> 
>> programming error: must have stem dir for note head
>> continuing, cross fingers
>> 
>> And it outputs a lot of these messages.  I need to find a way to stop 
>> Lilypond from outputting this error.  Any kind of quick fix or hack would be 
>> sufficient.
> 
> $ lilypond source-file.ly |& tee /tmp/complete-errors | grep -v 'programming 
> error: must have stem dir for note head' | grep -v 'continuing, cross fingers'
> 
> Is this hackish enough? The unfiltered errors are available
> for consultation in /tmp/complete-errors. I would need sed
> rather than grep to filter out the second line only when
> preceded by this particular first line.
> 
> Cheers,
> David.

Yes, that would be an option.  I’m already filtering the warning I get from 
setting a custom variable from the command line:

"2>&1 | grep -v '^warning: no such internal option: 
\(aspect-ratio\|style\)$’”

But in this case, I’d be suppressing the error completely.  Which means that, 
in the future, if something I did were to also cause this error, I wouldn’t see 
it.

David F.




Re: Error message using AikenHeads with NullVoice

2022-07-07 Thread Valentin Petzel
A different way to approach the problem would be to also specify something like

\context {
  \NullVoice
  shapeNoteStyles = ##()
}

It is still questionable why NullVoice would hickup on simply changing the 
NoteHead style, so think this is worth creating a bug report.

Cheers,
Valentin

Am Mittwoch, 6. Juli 2022, 23:06:48 CEST schrieb David F.:
> > On Jul 6, 2022, at 1:20 PM, Jean Abou Samra  wrote:
> > 
> > How about changing \Staff into \Voice?
> > 
> > \layout {
> > 
> > \context {
> > 
> > \Voice
> > 
> > \aikenHeads
> > 
> > }
> > 
> > }
> > 
> > That way, it won't affect those NullVoice contexts.
> > 
> > Best,
> > Jean
> 
> Perfect.  That does exactly what I wanted.
> 
> Thanks!
> 
> David F.



signature.asc
Description: This is a digitally signed message part.


Re: Error message using AikenHeads with NullVoice

2022-07-06 Thread David F.


> On Jul 6, 2022, at 1:20 PM, Jean Abou Samra  wrote:
>
> How about changing \Staff into \Voice?
>
> \layout {
> \context {
> \Voice
> \aikenHeads
> }
> }
>
> That way, it won't affect those NullVoice contexts.
>
> Best,
> Jean
>

Perfect.  That does exactly what I wanted.

Thanks!

David F.




Re: Error message using AikenHeads with NullVoice

2022-07-06 Thread Jean Abou Samra




On 7/6/22 19:56, David F. wrote:

I have a collection of SATB hymns that I would like to engrave using shape 
notes.  The Lilypond files are all structured the same, as seen below—treble 
clef with music and a NullVoice for aligning lyrics, then the lyrics, then the 
bass clef.

%
\version "2.22"
\language “english"

% included from another file
\layout {
 \context {
 \Staff
 \aikenHeads
 }
}

\score {
 <<
 \new Staff <<
 % music here
 \new NullVoice = "melody" { e'8 fs'8 }
 >>
 % \new Lyrics \lyricsto "melody" { Ly -- rics }
 % bass clef here
 >>
 \layout {}
}
%

The command to use aikenHeads comes from a separate style file that gets 
included for each hymn.  But there is an unfortunate interaction between 
aikenHeads and NullVoice: Lilypond outputs the following error message:

programming error: must have stem dir for note head
continuing, cross fingers

And it outputs a lot of these messages.  I need to find a way to stop Lilypond 
from outputting this error.  Any kind of quick fix or hack would be sufficient.

One thought I had would be to re-enable regular note heads for the NullVoice:

 \new NullVoice = "melody" \with { \unset shapeNoteStyles } { e'8 
fs'8 }

But I couldn’t come up with anything that worked.

Any help or ideas would be greatly appreciated.



How about changing \Staff into \Voice?

\layout {
    \context {
    \Voice
    \aikenHeads
    }
}

That way, it won't affect those NullVoice contexts.

Best,
Jean




Re: Error message using AikenHeads with NullVoice

2022-07-06 Thread David Wright
On Wed 06 Jul 2022 at 11:56:52 (-0600), David F. wrote:
> [ … ]
> The command to use aikenHeads comes from a separate style file that gets 
> included for each hymn.  But there is an unfortunate interaction between 
> aikenHeads and NullVoice: Lilypond outputs the following error message:
> 
> programming error: must have stem dir for note head
> continuing, cross fingers
> 
> And it outputs a lot of these messages.  I need to find a way to stop 
> Lilypond from outputting this error.  Any kind of quick fix or hack would be 
> sufficient.

$ lilypond source-file.ly |& tee /tmp/complete-errors | grep -v 'programming 
error: must have stem dir for note head' | grep -v 'continuing, cross fingers'

Is this hackish enough? The unfiltered errors are available
for consultation in /tmp/complete-errors. I would need sed
rather than grep to filter out the second line only when
preceded by this particular first line.

Cheers,
David.



Error message using AikenHeads with NullVoice

2022-07-06 Thread David F.
I have a collection of SATB hymns that I would like to engrave using shape 
notes.  The Lilypond files are all structured the same, as seen below—treble 
clef with music and a NullVoice for aligning lyrics, then the lyrics, then the 
bass clef.

%
\version "2.22"
\language “english"

% included from another file
\layout {
\context {
\Staff
\aikenHeads
}
}

\score {
<<
\new Staff <<
% music here
\new NullVoice = "melody" { e'8 fs'8 }
>>
% \new Lyrics \lyricsto "melody" { Ly -- rics }
% bass clef here
>>
\layout {}
}
%

The command to use aikenHeads comes from a separate style file that gets 
included for each hymn.  But there is an unfortunate interaction between 
aikenHeads and NullVoice: Lilypond outputs the following error message:

programming error: must have stem dir for note head
continuing, cross fingers

And it outputs a lot of these messages.  I need to find a way to stop Lilypond 
from outputting this error.  Any kind of quick fix or hack would be sufficient.

One thought I had would be to re-enable regular note heads for the NullVoice:

\new NullVoice = "melody" \with { \unset shapeNoteStyles } { e'8 
fs'8 }

But I couldn’t come up with anything that worked.

Any help or ideas would be greatly appreciated.

David F.


Re: convert.ly error message - 64bit Mac - Catalina

2020-07-19 Thread Davide Liessi
Il giorno sab 4 lug 2020 alle ore 00:27 Hans Åberg
 ha scritto:
> With Frescobaldi 3.1.2 using MacPorts lilypond-devel 2.21.2, not the 
> installer version, on the small attached file, I got the error below.
> [...]
> print('command failed:', cmd, file=sys.stderr)
>   ^
> SyntaxError: invalid syntax

It should be solved in current master and v3.1.x branches.
The fix will appear in future Frescobaldi 3.1.3.

I opened a PR to update MacPorts' frescobaldi-devel to current v3.1.x.
I hope they will merge it soon.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread David Wright
On Sat 04 Jul 2020 at 00:24:35 (+0200), Hans Åberg wrote:
> 
> With Frescobaldi 3.1.2 using MacPorts lilypond-devel 2.21.2, not the 
> installer version, on the small attached file, I got the error below.
> 
> --
>  Traceback (most recent call last):
>   File "/opt/local/bin/convert-ly", line 65, in 
> import lilylib as ly
>   File "/opt/local/share/lilypond/2.21.2/python/lilylib.py", line 169
> print('command failed:', cmd, file=sys.stderr)
>   ^
> SyntaxError: invalid syntax
> 
> 
> The document has not been changed.

Looks like you're running python3 code in python2:

$ python2.7 
Python 2.7.16 (default, Oct 10 2019, 22:02:15) 
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> cmd = 'xyz'
>>> print('abc', cmd, file=sys.stderr)
  File "", line 1
print('abc', cmd, file=sys.stderr)
  ^
SyntaxError: invalid syntax
>>> 

Cheers,
David.



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Hans Åberg


> On 4 Jul 2020, at 00:15, Davide Liessi  wrote:
> 
> Dear Hans,
> 
> Il giorno ven 3 lug 2020 alle ore 20:39 Hans Åberg
>  ha scritto:
>> I think that may be the case: I tried with MacPorts lilypond-devel, of which 
>> I also made an installer, and it worked standalone, but not in Frescobaldi. 
>> Perhaps it runs its own convert-ly rather than the one that comes with the 
>> lilypond distribution.
> 
> Frescobaldi runs the convert-ly that is part of the LilyPond distribution.
> Although I added /opt/lilypond/bin to the list of default paths, I
> think I haven't actually tried your installer (I will), but on my
> machine MacPorts' convert-ly works correctly in Frescobaldi.
> 
> I still have a couple of messages from you about problems with
> Frescobaldi's prebuilt application, but I don't find anything about
> convert-ly therein: can you give me more details on convert-ly's
> failure?

With Frescobaldi 3.1.2 using MacPorts lilypond-devel 2.21.2, not the installer 
version, on the small attached file, I got the error below.

--
 Traceback (most recent call last):
  File "/opt/local/bin/convert-ly", line 65, in 
import lilylib as ly
  File "/opt/local/share/lilypond/2.21.2/python/lilylib.py", line 169
print('command failed:', cmd, file=sys.stderr)
  ^
SyntaxError: invalid syntax


The document has not been changed.
--



CustomFont.ly
Description: Binary data





Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Davide Liessi
Dear Hans,

Il giorno ven 3 lug 2020 alle ore 20:39 Hans Åberg
 ha scritto:
> I think that may be the case: I tried with MacPorts lilypond-devel, of which 
> I also made an installer, and it worked standalone, but not in Frescobaldi. 
> Perhaps it runs its own convert-ly rather than the one that comes with the 
> lilypond distribution.

Frescobaldi runs the convert-ly that is part of the LilyPond distribution.
Although I added /opt/lilypond/bin to the list of default paths, I
think I haven't actually tried your installer (I will), but on my
machine MacPorts' convert-ly works correctly in Frescobaldi.

I still have a couple of messages from you about problems with
Frescobaldi's prebuilt application, but I don't find anything about
convert-ly therein: can you give me more details on convert-ly's
failure?
Thanks.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Davide Liessi
Il giorno ven 3 lug 2020 alle ore 18:26 Zone Dremik
 ha scritto:
> I just upgraded to Mac OS 10.15.5 and now convert.ly has stopped working 
> entirely. I get the following error message;
> arch: posix_spawnp: 
> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Bad 
> CPU type in executable
> [...]
> Is this a Frescobaldi issue?

Known error, see https://github.com/frescobaldi/frescobaldi/issues/1232.
This has been solved in Frescobaldi 3.1.2.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Hans Åberg


> On 3 Jul 2020, at 21:46, Jacques Menu  wrote:
> 
> The bad news with Catalina is that is won’t run 32 bit apps (Mojave is the 
> last version that accepts them), and I suspect that the Python version you’re 
> using is such an application.
> Maybe switching to a 64 bit Python version will solve the issue.

Here, I get:
% file /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Mach-O 
64-bit executable x86_64


>> Le 3 juil. 2020 à 20:38, Hans Åberg  a écrit :
>> 
>> 
>>> On 3 Jul 2020, at 18:09, Zone Dremik  wrote:
>>> 
>>> I just upgraded to Mac OS 10.15.5 and now convert.ly has stopped working 
>>> entirely. I get the following error message;
>>> 
>>> arch: posix_spawnp: 
>>> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Bad 
>>> CPU type in executable



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Jacques Menu
The bad news with Catalina is that is won’t run 32 bit apps (Mojave is the last 
version that accepts them), and I suspect that the Python version you’re using 
is such an application.
Maybe switching to a 64 bit Python version will solve the issue.

JM

> Le 3 juil. 2020 à 20:38, Hans Åberg  a écrit :
> 
> 
>> On 3 Jul 2020, at 18:09, Zone Dremik  wrote:
>> 
>> I just upgraded to Mac OS 10.15.5 and now convert.ly has stopped working 
>> entirely. I get the following error message;
>> 
>> arch: posix_spawnp: 
>> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Bad 
>> CPU type in executable
>> 
>> I had been using the 64bit bit version of Lilypond 2.20.0 from Marnen for 
>> some time, and that is still working fine otherwise.
>> 
>> This message appears when I try to run convert.ly from Frescobaldi. (When I 
>> run convert.ly from Lilypond it doesn't crash, but only changes the version 
>> number in the code.)
>> 
>> Is this a Frescobaldi issue?
> 
> I think that may be the case: I tried with MacPorts lilypond-devel, of which 
> I also made an installer, and it worked standalone, but not in Frescobaldi. 
> Perhaps it runs its own convert-ly rather than the one that comes with the 
> lilypond distribution.
> 
>> I couldn't find a link to a users group on the Frescobaldi website.
> 
> Some of them hang out here. :-)
> 
> 
> 




Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Hans Åberg


> On 3 Jul 2020, at 18:09, Zone Dremik  wrote:
> 
> I just upgraded to Mac OS 10.15.5 and now convert.ly has stopped working 
> entirely. I get the following error message;
> 
> arch: posix_spawnp: 
> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Bad 
> CPU type in executable
> 
> I had been using the 64bit bit version of Lilypond 2.20.0 from Marnen for 
> some time, and that is still working fine otherwise.
> 
> This message appears when I try to run convert.ly from Frescobaldi. (When I 
> run convert.ly from Lilypond it doesn't crash, but only changes the version 
> number in the code.)
> 
> Is this a Frescobaldi issue?

I think that may be the case: I tried with MacPorts lilypond-devel, of which I 
also made an installer, and it worked standalone, but not in Frescobaldi. 
Perhaps it runs its own convert-ly rather than the one that comes with the 
lilypond distribution.

> I couldn't find a link to a users group on the Frescobaldi website.

Some of them hang out here. :-)





Re: Frescobaldi 3.1.2 macOS gs error message

2020-05-20 Thread Davide Liessi
Dear Thomas,

Il giorno dom 17 mag 2020 alle ore 17:57 Thomas Scharkowski
 ha scritto:
> warning: g_spawn_sync failed (0): gs: Failed to execute child process
> “gs” (No such file or directory)

this has been reported also on GitHub, see
https://github.com/frescobaldi/frescobaldi/issues/1305

I will investigate it, but since you already use MacPorts, you can
install MacPorts' Frescobaldi, which is not affected by this issue
(nor by several other bugs of the prebuilt application bundle).

Best wishes.
Davide



Frescobaldi 3.1.2 macOS gs error message

2020-05-17 Thread Thomas Scharkowski

I get the following error using Frescobaldi 3.1.2 with LilyPond 2.21.1:

Converting to ...pdf'...
warning: g_spawn_sync failed (0): gs: Failed to execute child process 
“gs” (No such file or directory)


No error when invoking lilypond from the command line
No error with version 2.20

macOS 10.15.4
LilyPond 2.21.1 (Macports)
LilyPond 2.20.0 (from Marnen)
Frescobaldi 3.1.2 installation kind: standalone .app bundle

Thomas



Re: Untraceable error message: ERROR: Wrong type argument in position 3 (expecting Translator):

2020-03-31 Thread Thomas Scharkowski

No error here:
macOS 10.15.4
LilyPond 2.20.0
Frecobaldi 3.1.1

Thomas
 Original-Nachricht 

I've tried searching for answers on this error but haven't found any singular
root cause for it.  I have an orchestral score and I'm getting the below
error whenever I try adding a note/rest/anything after a certain point in my
staff associated with the clarinet part:

ERROR: Wrong type argument in position 3 (expecting Translator): #
Exited with return code 1.

Adding notes to any other line works for a time, but then I run into the
same error messsage randomly.  I have no clue how to troubleshoot.  Is
anyone able to help?

The current issue is with the "ClarinetMusic" staff.  As stated previously,
I'm unable to add any more notes to it without getting the above error
message.

test.ly <http://lilypond.1069038.n5.nabble.com/file/t6017/test.ly>



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html






Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread Anders Eriksson


On 2020-03-31 21:39, gunnarfm wrote:

Ignore my previous reply - it worked!!

Do you happen to know why it compiles when doing it this way?

Not really, but if you run lilypond from the command line there is no 
errors.

*c:\LilyPond-2-20-0-1\usr\bin\lilypond-windows.exe  test.ly

*It creates test.pdf

So it looks like Frescobaldi adds something that makes it not work...

// Anders
**


Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread gunnarfm
Ignore my previous reply - it worked!!

Do you happen to know why it compiles when doing it this way?



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread Gunnar Moll
Thanks for the tip, Anders.  Tried that but unfortunately no luck.

On Tue, Mar 31, 2020 at 12:34 PM Anders Eriksson 
wrote:

> Hello,
>
> I get the same error when compiling for preview or publish, but if I
> compile for Layout Control and have Verbose output checked then I get no
> error...
>
> Just an observation!
>
> // Anders
> Running Frescobaldi 3.1 on Windows 10.
>
> On 2020-03-31 19:07, gunnarfm wrote:
> > Hi - I'm trying to compile my orchestral score in Frescobaldi but keep
> > getting the below error message (note that it seems to compile fine in
> > Lily):
> >
> > Starting lilypond-windows.exe 2.20.0 [test.ly]...
> > Processing `C:/Users/mollg/OneDrive/Desktop/test.ly'
> > Parsing...
> > Interpreting music...[8][16]ERROR: In procedure ly:trampoline:
> > ERROR: Wrong type argument in position 3 (expecting Translator): # > cell 0596F2A0; GC missed a reference>
> > Exited with return code 1.
> >
> > I'm not sure what is wrong.  I only get this error message when I try
> adding
> > to the clarinet line in my score.  If I try to add any notes,
> articulations,
> > rests, etc, I get that error message.  I've attached my score for
> reference.
> > Is this a memory issue?  Can anyone help?
> > test.ly <http://lilypond.1069038.n5.nabble.com/file/t6017/test.ly>
> >
> >
> >
> >
> >
> > --
> > Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
> >
>
>
>


Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread gunnarfm
@Karlin I am running on Windows 10



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread Anders Eriksson

Hello,

I get the same error when compiling for preview or publish, but if I 
compile for Layout Control and have Verbose output checked then I get no 
error...


Just an observation!

// Anders
Running Frescobaldi 3.1 on Windows 10.

On 2020-03-31 19:07, gunnarfm wrote:

Hi - I'm trying to compile my orchestral score in Frescobaldi but keep
getting the below error message (note that it seems to compile fine in
Lily):

Starting lilypond-windows.exe 2.20.0 [test.ly]...
Processing `C:/Users/mollg/OneDrive/Desktop/test.ly'
Parsing...
Interpreting music...[8][16]ERROR: In procedure ly:trampoline:
ERROR: Wrong type argument in position 3 (expecting Translator): #
Exited with return code 1.

I'm not sure what is wrong.  I only get this error message when I try adding
to the clarinet line in my score.  If I try to add any notes, articulations,
rests, etc, I get that error message.  I've attached my score for reference.
Is this a memory issue?  Can anyone help?
test.ly <http://lilypond.1069038.n5.nabble.com/file/t6017/test.ly>





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html






Re: Untraceable error message: procedure ly:trampoline

2020-03-31 Thread Karlin High

On 3/31/2020 12:07 PM, gunnarfm wrote:

Hi - I'm trying to compile my orchestral score in Frescobaldi but keep
getting the below error message (note that it seems to compile fine in
Lily):


What system are you on? Linux, Windows, macOS?
--
Karlin High
Missouri, USA



Untraceable error message: ERROR: Wrong type argument in position 3 (expecting Translator):

2020-03-31 Thread gunnarfm
I've tried searching for answers on this error but haven't found any singular
root cause for it.  I have an orchestral score and I'm getting the below
error whenever I try adding a note/rest/anything after a certain point in my
staff associated with the clarinet part:

ERROR: Wrong type argument in position 3 (expecting Translator): #
Exited with return code 1.

Adding notes to any other line works for a time, but then I run into the
same error messsage randomly.  I have no clue how to troubleshoot.  Is
anyone able to help?

The current issue is with the "ClarinetMusic" staff.  As stated previously,
I'm unable to add any more notes to it without getting the above error
message.  

test.ly <http://lilypond.1069038.n5.nabble.com/file/t6017/test.ly>  



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Untraceable error message: procedure ly:trampoline

2020-03-31 Thread gunnarfm
Hi - I'm trying to compile my orchestral score in Frescobaldi but keep
getting the below error message (note that it seems to compile fine in
Lily):

Starting lilypond-windows.exe 2.20.0 [test.ly]...
Processing `C:/Users/mollg/OneDrive/Desktop/test.ly'
Parsing...
Interpreting music...[8][16]ERROR: In procedure ly:trampoline:
ERROR: Wrong type argument in position 3 (expecting Translator): #
Exited with return code 1.

I'm not sure what is wrong.  I only get this error message when I try adding
to the clarinet line in my score.  If I try to add any notes, articulations,
rests, etc, I get that error message.  I've attached my score for reference. 
Is this a memory issue?  Can anyone help?
test.ly <http://lilypond.1069038.n5.nabble.com/file/t6017/test.ly>  





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Error message

2019-06-25 Thread Craig Dabelstein
Hi Aaron,

The inclusion of *\override Stem.neutral-direction = #'() *comes straight
from the LSR here:

http://lilypond.org/doc/v2.18/Documentation/snippets/pitches#pitches-automatically-changing-the-stem-direction-of-the-middle-note-based-on-the-melody

Here is another MWE to reproduce the problem:


\version "2.19.82"
\language english

\layout {
  \context {
\Staff
\consists "Melody_engraver"
\override Stem.neutral-direction = #'()
  }
}

\relative c'' {
  \time 3/2
  \tuplet 3/2 2 {
r4 df \f af gf' cf, ef gf, e' a,
  } |

  \tuplet 3/2 2 { r4 g' bf, f' e, r df' c, r } |
}


And the error message:

Starting lilypond 2.19.82 [mwe.ly]...

Processing `/Users/craigdabelstein/Desktop/mwe.ly'

Parsing...

Interpreting music...

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing
systems.../home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35
<0>: failed assertion `d == 1 || d == -1'

Exited with exit status 1.

Craig


On Tue, 25 Jun 2019 at 22:56, Aaron Hill  wrote:

> On 2019-06-25 4:46 am, David Kastrup wrote:
> > Craig Dabelstein  writes:
> >
> >> And the guilty line is ...
> >>
> >> \consists "Melody_engraver"
> >> %\override Stem.neutral-direction = #'()
> >>
> >> Commenting out the \override Stem.neutral-direction line fixed the
> >> problem.
> >
> > More likely than not half of a red herring: garbage protection problems
> > are quite elusive to track down.  This propably changes the actions the
> > Melody_engraver takes.
>
> Unless I am completely lost myself, this is not the trampoline problem
> from before, though I suspect the appearance of "Melody_engraver" has
> confused things.
>
> Here is the proper repro MWE:
>
> 
> \version "2.19.82"
> {
>\override Stem.neutral-direction = #'()
>\tuplet 3/2 { r4 b' c'' }
> }
> 
>
> This is bad input because neutral-direction must be strictly UP or DOWN
> (or rather it can be a procedure that ultimately evaluates to 1 or -1).
>  From what I can see, the point of the property is to determine what
> happens to a note on the middle line of a staff when there is nothing
> else (like a beam) that can help sway the decision one way or the other.
>   Setting it to #'() would seem to be meaningless.
>
> Consider the output from the above MWE:
>
> 
> GNU LilyPond 2.19.82
> Processing `drul-array-bad-direction.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> programming error: Stem dir must be up or down.
> continuing, cross fingers
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...lilypond:
> /home/gub/NewGub/gub/target/linux-64/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35:
>
> T& Drul_array::at(Direction) [with T = double]: Assertion `d == 1 ||
> d == -1' failed.
> The terminal process terminated with exit code: 134
> 
>
> LilyPond is already emitting a programming error: "Stem dir must be up
> or down".  Whenever I see "cross fingers", I never make any assumption
> of what will work or not.  So a failing assertion afterwards is not
> surprising.
>
> Craig: Would you confirm whether your project output contains the
> programming error line?  I would say there is a bug if you are *only*
> seeing the failing assertion.
>
> Perhaps an additional check could be added to stem.cc:649 to ensure that
> neutral-direction has a sane value, which could catch this particular
> error earlier in the process.
>
>
> -- Aaron Hill
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon] <https://www.facebook.com/maximesmusic.com.au> [image:
twitter icon] <https://twitter.com/MaximesMusic> [image: youtube icon]
<http://www.youtube.com/c/Maximesmusic_for_band> [image: instagram icon]
<https://www.instagram.com/maximes_music/>  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-25 Thread Aaron Hill

On 2019-06-25 4:46 am, David Kastrup wrote:

Craig Dabelstein  writes:


And the guilty line is ...

\consists "Melody_engraver"
%\override Stem.neutral-direction = #'()

Commenting out the \override Stem.neutral-direction line fixed the 
problem.


More likely than not half of a red herring: garbage protection problems
are quite elusive to track down.  This propably changes the actions the
Melody_engraver takes.


Unless I am completely lost myself, this is not the trampoline problem 
from before, though I suspect the appearance of "Melody_engraver" has 
confused things.


Here is the proper repro MWE:


\version "2.19.82"
{
  \override Stem.neutral-direction = #'()
  \tuplet 3/2 { r4 b' c'' }
}


This is bad input because neutral-direction must be strictly UP or DOWN 
(or rather it can be a procedure that ultimately evaluates to 1 or -1).  
From what I can see, the point of the property is to determine what 
happens to a note on the middle line of a staff when there is nothing 
else (like a beam) that can help sway the decision one way or the other. 
 Setting it to #'() would seem to be meaningless.


Consider the output from the above MWE:


GNU LilyPond 2.19.82
Processing `drul-array-bad-direction.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
programming error: Stem dir must be up or down.
continuing, cross fingers
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...lilypond: 
/home/gub/NewGub/gub/target/linux-64/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35: 
T& Drul_array::at(Direction) [with T = double]: Assertion `d == 1 || 
d == -1' failed.

The terminal process terminated with exit code: 134


LilyPond is already emitting a programming error: "Stem dir must be up 
or down".  Whenever I see "cross fingers", I never make any assumption 
of what will work or not.  So a failing assertion afterwards is not 
surprising.


Craig: Would you confirm whether your project output contains the 
programming error line?  I would say there is a bug if you are *only* 
seeing the failing assertion.


Perhaps an additional check could be added to stem.cc:649 to ensure that 
neutral-direction has a sane value, which could catch this particular 
error earlier in the process.



-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-25 Thread David Kastrup
Craig Dabelstein  writes:

> And the guilty line is ...
>
> \consists "Melody_engraver"
> %\override Stem.neutral-direction = #'()
>
> Commenting out the \override Stem.neutral-direction line fixed the problem.

More likely than not half of a red herring: garbage protection problems
are quite elusive to track down.  This propably changes the actions the
Melody_engraver takes.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-25 Thread Craig Dabelstein
And the guilty line is ...

\consists "Melody_engraver"
%\override Stem.neutral-direction = #'()

Commenting out the \override Stem.neutral-direction line fixed the problem.

Thanks everyone for your advice.

All the best,

Craig


On Tue, 25 Jun 2019 at 19:08, Jean ABOU SAMRA  wrote:

>
> > Le 24 juin 2019 à 20:40, Aaron Hill  a écrit :
> >
> >
> > To the list at large: Any folks here with expertise in running LilyPond
> under a debugger on a Mac?  At this point, Craig is likely going to have to
> get us a stack trace since only he is able to reproduce the error without
> sharing the whole project.  Since my knowledge on that platform is
> extremely limited, I cannot shepherd any further.
>
> Well, you can use GDB or LLDB but neither one is as simple as that. GDB
> would be a well-standardized solution as LilyPond is compiled using GCC but
> LLDB is the default on Mac OS so GDB is not so easy to set up. LLDB should
> be usable on GCC-compiled programs, but I think there can sometimes be
> compatibility issues.
>
> Craig, can you share the whole project or not? If not, could you provide
> the most minimal example you have found so that other people using Mac OS
> can investigate further with an example that triggers the issue?
>
> Regards,
> Jean Abou Samra
>
> > -- Aaron Hill
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>

-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon]  [image:
twitter icon]  [image: youtube icon]
 [image: instagram icon]
  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-25 Thread Jean ABOU SAMRA

> Le 24 juin 2019 à 20:40, Aaron Hill  a écrit :
> 
> 
> To the list at large: Any folks here with expertise in running LilyPond under 
> a debugger on a Mac?  At this point, Craig is likely going to have to get us 
> a stack trace since only he is able to reproduce the error without sharing 
> the whole project.  Since my knowledge on that platform is extremely limited, 
> I cannot shepherd any further.

Well, you can use GDB or LLDB but neither one is as simple as that. GDB would 
be a well-standardized solution as LilyPond is compiled using GCC but LLDB is 
the default on Mac OS so GDB is not so easy to set up. LLDB should be usable on 
GCC-compiled programs, but I think there can sometimes be compatibility issues.

Craig, can you share the whole project or not? If not, could you provide the 
most minimal example you have found so that other people using Mac OS can 
investigate further with an example that triggers the issue?

Regards,
Jean Abou Samra

> -- Aaron Hill
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-24 Thread Aaron Hill

On 2019-06-24 3:18 am, Craig Dabelstein wrote:

Hi Aaron,

Omitting the tuplet bracket doesn't help. I'm really at a loss at what 
to

do now.


Since your isolated measures involved tuplets, I had wondered if perhaps 
the issue came from the brackets.  Maybe try \omit TupletNumber, both 
with and without \omit TupletBracket.  If the issue is with the 
engraver, you may want to instead try adding this to your project:



\layout { \context { \Voice \remove "Tuplet_engraver" } }


However, I am probably completely off base on where the fault lies.  You 
could try working through the other engravers one at a time similar to 
[1].  The hope is that you might be able to better narrow down the 
project into a MWE that does reproduce the error by getting rid of 
elements that have no effect.


[1]: http://lsr.di.unimi.it/LSR/Item?id=280

While getting a repro is important, we should also be looking at ways to 
unblock your work.  I would suggest dividing your project in sections, 
so that you can compile them independently without triggering the error. 
 It does mean needing to manually stitch together multiple outputs into 
a single file, but at least you could continue to work on your score 
while the underlying bug is being investigated.




To the list at large: Any folks here with expertise in running LilyPond 
under a debugger on a Mac?  At this point, Craig is likely going to have 
to get us a stack trace since only he is able to reproduce the error 
without sharing the whole project.  Since my knowledge on that platform 
is extremely limited, I cannot shepherd any further.



-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-24 Thread Craig Dabelstein
Hi Aaron,

Omitting the tuplet bracket doesn't help. I'm really at a loss at what to
do now.

Craig


On Mon, 24 Jun 2019 at 16:57, Aaron Hill  wrote:

> On 2019-06-23 11:15 pm, Craig Dabelstein wrote:
> > Thanks for the help everyone.
> >
> > I narrowed down the guilty bars. Here's a MWE, however, it doesn't
> > reproduce the error in this MWE. When these two bars are replaced with
> > s1.*2 the files produce no error. I really don't know where to go from
> > here. Any advice?
>
> Well, just because you can comment out some music and have things work
> does not mean the commented out music is "guilty" per se.  Context often
> matters, so it is wise to only point fingers when you can isolate a
> section of music and have it reproduce an error standing alone.
>
> In your case, you have found two bars that work just fine by themselves.
>   If there is any error with your input, it is certainly not there.  You
> will need to slowly add in the outer context until the problem appears.
>
> Out of curiosity, if you \omit TupletBracket in your project, does the
> failing assertion reproduce?
>
>
> -- Aaron Hill
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon]  [image:
twitter icon]  [image: youtube icon]
 [image: instagram icon]
  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-24 Thread Aaron Hill

On 2019-06-23 11:15 pm, Craig Dabelstein wrote:

Thanks for the help everyone.

I narrowed down the guilty bars. Here's a MWE, however, it doesn't
reproduce the error in this MWE. When these two bars are replaced with
s1.*2 the files produce no error. I really don't know where to go from
here. Any advice?


Well, just because you can comment out some music and have things work 
does not mean the commented out music is "guilty" per se.  Context often 
matters, so it is wise to only point fingers when you can isolate a 
section of music and have it reproduce an error standing alone.


In your case, you have found two bars that work just fine by themselves. 
 If there is any error with your input, it is certainly not there.  You 
will need to slowly add in the outer context until the problem appears.


Out of curiosity, if you \omit TupletBracket in your project, does the 
failing assertion reproduce?



-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-24 Thread Craig Dabelstein
Thanks for the help everyone.

I narrowed down the guilty bars. Here's a MWE, however, it doesn't
reproduce the error in this MWE. When these two bars are replaced with
s1.*2 the files produce no error. I really don't know where to go from
here. Any advice?

Craig


\version "2.19.82"
\language english

\relative c'' {
  \time 3/2
  \tuplet 3/2 2 {
r4 df -. \f af -. gf' -. cf, -. ef -. gf, -. e' -. a, -.
  } |

  \tuplet 3/2 2 { r4 g' -. bf, -. f' -. e, -. r df' -. c, -. r } |
}



On Sun, 23 Jun 2019 at 20:36, DJF  wrote:

> > On Jun 23, 2019, at 1:38 AM, Craig Dabelstein <
> craig.dabelst...@gmail.com> wrote:
> >
> > Hi Lilyponders,
> >
> > Can anyone tell me what this error message means when trying to compile
> a file?
> >
> > Drawing
> systems.../home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35:
> failed assertion `d == 1 || d == -1'
> > Exited with exit status 1.
>
> This is my least favorite kind of error! Whenever I have these, it often
> concerns beaming, especially when LP is trying to beam more than two notes
> but, because of a misplaced octave or perhaps a clef change, it can't draw
> a satisfactory beam. Sometimes, just turning off beaming in 4s can allow
> the file to compile so that you can start investigating.
>
> http://lilypond.org/doc/v2.19/Documentation/notation/beams.en.html
>
> If that doesn't work, and if the file has been compiling fine right along,
> I'll assume the issue has to do with the part most recently entered. I'll
> stick a %} at the end of the part and then pick a reasonable point to put a
> %{ and, with that section now "turned off", I'll see if the piece can
> compile. If not, I keep moving the %{ earlier and earlier until it does.
>
> Hope this helps,
>
> Dan



-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon] <https://www.facebook.com/maximesmusic.com.au> [image:
twitter icon] <https://twitter.com/MaximesMusic> [image: youtube icon]
<http://www.youtube.com/c/Maximesmusic_for_band> [image: instagram icon]
<https://www.instagram.com/maximes_music/>  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-23 Thread DJF
> On Jun 23, 2019, at 1:38 AM, Craig Dabelstein  
> wrote:
> 
> Hi Lilyponders,
> 
> Can anyone tell me what this error message means when trying to compile a 
> file?
> 
> Drawing 
> systems.../home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35:
>  failed assertion `d == 1 || d == -1'
> Exited with exit status 1.

This is my least favorite kind of error! Whenever I have these, it often 
concerns beaming, especially when LP is trying to beam more than two notes but, 
because of a misplaced octave or perhaps a clef change, it can't draw a 
satisfactory beam. Sometimes, just turning off beaming in 4s can allow the file 
to compile so that you can start investigating. 

http://lilypond.org/doc/v2.19/Documentation/notation/beams.en.html

If that doesn't work, and if the file has been compiling fine right along, I'll 
assume the issue has to do with the part most recently entered. I'll stick a %} 
at the end of the part and then pick a reasonable point to put a %{ and, with 
that section now "turned off", I'll see if the piece can compile. If not, I 
keep moving the %{ earlier and earlier until it does.

Hope this helps,

Dan
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-23 Thread Urs Liska


Am 23. Juni 2019 11:47:17 MESZ schrieb ah :
>
>
>On 23/06/2019 08:38, Craig Dabelstein wrote:
>> Hi Lilyponders,
>> 
>> Can anyone tell me what this error message means when trying to
>compile a
>> file?
>> 
>> Drawing systems...
>>
>/home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35
>> <0>: failed assertion `d == 1 || d == -1'
>> 
>> Exited with exit status 1.
>> 
>> 
>> All the best,
>> 
>> 
>> Craig
>> 
>> 
>
>Can it be that the file you try to compile contains an error?
>
>I am just starting and I am not acquainted with Lilypond at all but I 
>had a look at the source code. The "d" the failed assertion refers to
>is 
>of type "Direction" and must be 1 or -1. No other values are allowed 
>when calling the "at()" method.

Still, erroneous input should be caught by the parser rather than throwing that 
kind of exception. So here the question is what kind of input (condition) is 
able to provoke that problem.

Urs

>
>bw
>bliako
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-23 Thread ah



On 23/06/2019 08:38, Craig Dabelstein wrote:

Hi Lilyponders,

Can anyone tell me what this error message means when trying to compile a
file?

Drawing systems...
/home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35
<0>: failed assertion `d == 1 || d == -1'

Exited with exit status 1.


All the best,


Craig




Can it be that the file you try to compile contains an error?

I am just starting and I am not acquainted with Lilypond at all but I 
had a look at the source code. The "d" the failed assertion refers to is 
of type "Direction" and must be 1 or -1. No other values are allowed 
when calling the "at()" method.


bw
bliako

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2019-06-23 Thread Aaron Hill

On 2019-06-22 10:38 pm, Craig Dabelstein wrote:
Can anyone tell me what this error message means when trying to compile 
a

file?

Drawing systems...
/home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35
<0>: failed assertion `d == 1 || d == -1'


It means that some code has attempted to access a Drul_array with an 
invalid direction.  Now seeing as Drul_arrays are so ubiquitous in the 
code base, it is impossible to determine which one is throwing the error 
without a more complete stack trace.


Do you have a MWE for this error?  Failing that, can you run LilyPond 
under gdb and share more details?



-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Error message

2019-06-22 Thread Craig Dabelstein
Hi Lilyponders,

Can anyone tell me what this error message means when trying to compile a
file?

Drawing systems...
/home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.20/flower/include/drul-array.hh:35
<0>: failed assertion `d == 1 || d == -1'

Exited with exit status 1.


All the best,


Craig



-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon] <https://www.facebook.com/maximesmusic.com.au> [image:
twitter icon] <https://twitter.com/MaximesMusic> [image: youtube icon]
<http://www.youtube.com/c/Maximesmusic_for_band> [image: instagram icon]
<https://www.instagram.com/maximes_music/>  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Again: Bad magic number error message

2017-09-04 Thread Noeck
Hi Thomas,

Am 04.09.2017 um 14:26 schrieb Thomas Scharkowski:
> Bad magic number in
> /Applications/Frescobaldi.app/Contents/Resources/site.pyc

I didn't see this error before. But you can delete the .pyc file. .pyc
files are "python byte code" and derived from the .py file with the same
name. If you delete the .pyc file, python will recreate it from the .py
file – hopefully without the magic-number error.

In case you wonder what python has to do with this: convert-ly is
written in python.

Hope that helps,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Again: Bad magic number error message

2017-09-04 Thread Thomas Scharkowski

 Original-Nachricht 

Thomas Scharkowski wrote

When I start convert-ly from the terminal, I get the following error
message:

Bad magic number in
/Applications/Frescobaldi.app/Contents/Resources/site.pyc
_


Hi,

Bad Magic Number is a python error I believe, but I have never seen it using
straight LilyPond from the terminal at all. Totally separate from my usage
of Frescobaldi.

What is the full command you are entering into the terminal that causes the
error?


just "convert-ly -e *.ly" or even "convert-ly" alone.

But: magically the "magic number error" has disappeared all by itself - 
convert-ly does work again as it should. I did not change my 
system/python installation.

Strange!

Thomas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Again: Bad magic number error message

2017-09-04 Thread Carl Sorensen
On 9/4/17 6:26 AM, "Thomas Scharkowski" <t.scharkow...@t-online.de> wrote:

>When I start convert-ly from the terminal, I get the following error
>message:
>
>Bad magic number in
>/Applications/Frescobaldi.app/Contents/Resources/site.pyc
>
>I do not know how to handle this.

This problem is likely due to convert-ly using the system installed python
when run from the terminal and the Frescobaldi installed python when run
from Frescobaldi.

I would try prefacing your convert-ly call with

/Applications/Frescobaldi.app/Contents/MacOS/python

which should be a shortcut to the Frescobaldi python, if your Frescobaldi
installation is like my Frescobaldi installation.

HTH,

Carl



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Again: Bad magic number error message

2017-09-04 Thread SoundsFromSound
Thomas Scharkowski wrote
> When I start convert-ly from the terminal, I get the following error 
> message:
> 
> Bad magic number in
> /Applications/Frescobaldi.app/Contents/Resources/site.pyc
> _

Hi,

Bad Magic Number is a python error I believe, but I have never seen it using
straight LilyPond from the terminal at all. Totally separate from my usage
of Frescobaldi.

What is the full command you are entering into the terminal that causes the
error? 




-
composer | sound designer | asmr artist 
lilypond video tutorials --> http://bit.ly/bcl-lilypond
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Again: Bad magic number error message

2017-09-04 Thread Thomas Scharkowski

Hi all,

since I did not get any answers so far, I dare to ask again:

When I start convert-ly from the terminal, I get the following error 
message:


Bad magic number in
/Applications/Frescobaldi.app/Contents/Resources/site.pyc

I do not know how to handle this.

When startet from the frescobaldi menu, convert-ly does work as expected.

macOS Sierra 10.12.6
LilyPond 2.19.65
Frescobaldi 2.20

Thank you
Thomas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bad magic number error message

2017-09-02 Thread Thomas Scharkowski

Sorry,

convert-ly does work when started from the Frescobaldi menu.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bad magic number error message

2017-09-02 Thread Thomas Scharkowski

Sorry:

convert-ly does work when started from the Frescobaldi menu.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Bad magic number error message

2017-09-02 Thread Thomas Scharkowski

When I do convert-ly from the terminal, I get the following error message:

Bad magic number in 
/Applications/Frescobaldi.app/Contents/Resources/site.pyc


Convert-ly does work when startet from the Frescobaldi men.


macOS Sierra 10.12.6
LilyPond 2.19.65
Frescobaldi 2.20


Thomas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-26 Thread Michael Gerdau
Am 26.06.2017 um 21:47 schrieb Thomas Morley:
> 2017-06-26 15:47 GMT+02:00 Phil Holmes <m...@philholmes.net>:
>> - Original Message - From: "Michael Gerdau" <m...@qata.de>
>> To: "Thomas Morley" <thomasmorle...@gmail.com>; "Maxime's Music"
>> <craig.dabelst...@gmail.com>
>> Cc: "Phil Holmes" <em...@philholmes.net>; "lilypond-user"
>> <lilypond-user@gnu.org>
>> Sent: Monday, June 26, 2017 11:07 AM
>> Subject: Re: Error message
>>
>>
>>>>> Thanks for all your efforts with this. I'm out of internet range till
>>>>> Wednesday. Just trying to survive on my phone.
>>>>>
>>>>> Harm, if you'd like to forward those files, that's fine.
>>>>>
>>>>> Craig
>>>>
>>>>
>>>> Done.
>>>
>>>
>>> Just for the record:
>>>
>>> On my about 6 year old 16GB ArchLinux Laptop  (CPU i7-2820QM @ 2.3GHz)
>>> it took under 4 minutes to compile Harm's modified Version. VMEM maxed
>>> at about 4.5 GB according to top (could do a more thourough analysis if
>>> that would be of interest).
>>>
>>> Doing the same with Craig's unmodified files gives a couple of errors
>>> regarding missing stuff (as Harm already mentioned) and is done after
>>> about 4:40 with VMEM maxed at 6 GB according to top.
>>>
>>> Kind regards,
>>> Michael
>>> --
>>> Michael Gerdau   email: m...@qata.de
>>> GPG-keys available on request or at public keyserver
>>
>>
>> Further data point.  On Windows vista 64-bit with 6 Gigs memory, I get a
>> malloc error on both scores, at just under 1.5 Gigs allocated memory (with
>> plenty free) and around 300 seconds processor time.
>>
>> --
>> Phil Holmes
> 
> Hi all,
> 
> in \paper from lilypond-files-harm/lilypond-files/scoreA-init.ily
> I had changed #ly:optimal-breaking to #ly:one-line-breaking
> and forgot to undo it before sending the zip around.
> 
> I'm afraid compilation needs to be retested if you didn't change it
> back yourself. At least for my modified files.

Undoing that change increases compiletime and VMEM on my machine
somewhat to about 4:10 and 5.5 GB according to top.

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-26 Thread Thomas Morley
2017-06-26 15:47 GMT+02:00 Phil Holmes <m...@philholmes.net>:
> - Original Message - From: "Michael Gerdau" <m...@qata.de>
> To: "Thomas Morley" <thomasmorle...@gmail.com>; "Maxime's Music"
> <craig.dabelst...@gmail.com>
> Cc: "Phil Holmes" <em...@philholmes.net>; "lilypond-user"
> <lilypond-user@gnu.org>
> Sent: Monday, June 26, 2017 11:07 AM
> Subject: Re: Error message
>
>
>>>> Thanks for all your efforts with this. I'm out of internet range till
>>>> Wednesday. Just trying to survive on my phone.
>>>>
>>>> Harm, if you'd like to forward those files, that's fine.
>>>>
>>>> Craig
>>>
>>>
>>> Done.
>>
>>
>> Just for the record:
>>
>> On my about 6 year old 16GB ArchLinux Laptop  (CPU i7-2820QM @ 2.3GHz)
>> it took under 4 minutes to compile Harm's modified Version. VMEM maxed
>> at about 4.5 GB according to top (could do a more thourough analysis if
>> that would be of interest).
>>
>> Doing the same with Craig's unmodified files gives a couple of errors
>> regarding missing stuff (as Harm already mentioned) and is done after
>> about 4:40 with VMEM maxed at 6 GB according to top.
>>
>> Kind regards,
>> Michael
>> --
>> Michael Gerdau   email: m...@qata.de
>> GPG-keys available on request or at public keyserver
>
>
> Further data point.  On Windows vista 64-bit with 6 Gigs memory, I get a
> malloc error on both scores, at just under 1.5 Gigs allocated memory (with
> plenty free) and around 300 seconds processor time.
>
> --
> Phil Holmes

Hi all,

in \paper from lilypond-files-harm/lilypond-files/scoreA-init.ily
I had changed #ly:optimal-breaking to #ly:one-line-breaking
and forgot to undo it before sending the zip around.

I'm afraid compilation needs to be retested if you didn't change it
back yourself. At least for my modified files.

Sorry for that,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-26 Thread Andrew Bernard
Hi Phil,

With the corrected score that produces no warnings I get a fine compile on
Windows 10 with about 3 GiB maximum memory usage. Lilypond 2.19.61. The
score with warnings crashes and does not produce any output.

Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-26 Thread Phil Holmes
- Original Message - 
From: "Michael Gerdau" <m...@qata.de>
To: "Thomas Morley" <thomasmorle...@gmail.com>; "Maxime's Music" 
<craig.dabelst...@gmail.com>
Cc: "Phil Holmes" <em...@philholmes.net>; "lilypond-user" 
<lilypond-user@gnu.org>

Sent: Monday, June 26, 2017 11:07 AM
Subject: Re: Error message



Thanks for all your efforts with this. I'm out of internet range till
Wednesday. Just trying to survive on my phone.

Harm, if you'd like to forward those files, that's fine.

Craig


Done.


Just for the record:

On my about 6 year old 16GB ArchLinux Laptop  (CPU i7-2820QM @ 2.3GHz)
it took under 4 minutes to compile Harm's modified Version. VMEM maxed
at about 4.5 GB according to top (could do a more thourough analysis if
that would be of interest).

Doing the same with Craig's unmodified files gives a couple of errors
regarding missing stuff (as Harm already mentioned) and is done after
about 4:40 with VMEM maxed at 6 GB according to top.

Kind regards,
Michael
--
Michael Gerdau   email: m...@qata.de
GPG-keys available on request or at public keyserver


Further data point.  On Windows vista 64-bit with 6 Gigs memory, I get a 
malloc error on both scores, at just under 1.5 Gigs allocated memory (with 
plenty free) and around 300 seconds processor time.


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-26 Thread Michael Gerdau
>> Thanks for all your efforts with this. I'm out of internet range till
>> Wednesday. Just trying to survive on my phone.
>>
>> Harm, if you'd like to forward those files, that's fine.
>>
>> Craig
> 
> Done.

Just for the record:

On my about 6 year old 16GB ArchLinux Laptop  (CPU i7-2820QM @ 2.3GHz)
it took under 4 minutes to compile Harm's modified Version. VMEM maxed
at about 4.5 GB according to top (could do a more thourough analysis if
that would be of interest).

Doing the same with Craig's unmodified files gives a couple of errors
regarding missing stuff (as Harm already mentioned) and is done after
about 4:40 with VMEM maxed at 6 GB according to top.

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Error message

2017-06-25 Thread Andrew Bernard
Hi All,

I have been working closely with Craig to study the matter. Interestingly,
in this large incomplete score as received, it consumed an ever expanding
amount of memory until it crashed with no output. I observed a set of
warnings regarding missing parts. In my experience one ignores lilypond
warnings, even though not errors, at one's peril. I asked Craig to address
the errors, and then it compiled fine, although still consuming a lot of
memory. That in itself is interesting.

I ran on Linux Mint 18.1, Windows 10, and Mac OS X 10.12.5. All work fine
now. The remaining issue is that as Craig needs to add yet more parts to
this large wind orchestra work that it will max out memory again and fail.
We have yet to see.

Memory use for the lilypond process reaches about 4.9 GiB on linux, and
about 2.9-3 GiB on Windows and OS X.

Looking at the source code, it is clear that Craig is a master user of
lilypond, and I could not find anything obviously funky or misguided or
peculiar in the code that may cause memory blowouts.

My conclusion is that lilypond at this point in time does not handle large
scores in a constrained manner re memory, and as the score gets larger and
longer and longer, so lilypond's memory use just increases in linear
proportion. There must not be any pipelining and parallelism going on.
Indeed, I believe a very closely related thread regarding graphics
pipelining is current in the development list. I can say from this study
here that improvements in this area would welcome, nay, necessary for
ambitiously large projects. If this score reached 200 hundred pages, I doubt
it would compile on 32 bit systems, based in my measurements. And as
mentioned, we fear that adding the remaining parts will require more memory
than is available on 32 bit machines.

Regarding memory usage, I posed a question on the devel list which has so
far been overlooked. Why is the Mac OSX version of lilypond 32 bit, when
Macs have been6 4 bit for a long time? The same question can be asked for
Windows. Why is lilypond on Windows also only 32 bit? Is there some
technical limitation forcing this? Or is it just that the average use does
not make vast scores?

I will mention that it is interesting that on Windows the ram does sit just
under the 3 GiB limit imposed on processes by Microsoft, so perhaps lilypond
is behaving nicely and the linear increase in memory use with size is not
actually correct, and lilypond is managing memory, up to the 32 bit system
limit on Windows, and that it was unaddressed warnings blowing memory out
for some reason.

Andrew




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Thomas Morley
2017-06-26 0:33 GMT+02:00 Maxime's Music :
> Hi all,
>
> Thanks for all your efforts with this. I'm out of internet range till
> Wednesday. Just trying to survive on my phone.
>
> Harm, if you'd like to forward those files, that's fine.
>
> Craig

Done.

Best,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Maxime's Music
Hi all,

Thanks for all your efforts with this. I'm out of internet range till
Wednesday. Just trying to survive on my phone.

Harm, if you'd like to forward those files, that's fine.

Craig
On Mon, 26 Jun 2017 at 8:20 am, Thomas Morley 
wrote:

> 2017-06-26 0:00 GMT+02:00 Michael Gerdau :
> >> I'd be happy to test.  I've an 8 Gig Ubuntu machine (my Gub builder) an
> >> 8 Gig Windows 10 and my day-to-day 6 Gig Vista.  I could test with any
> >> of those.  Would require the score privately.
> >
> > If it is still of interest, I could run on either my 16GB ArchLinux
> > Laptop or my 64GB ArchLinux DB Server.
> >
> > Like Phil I would need the score privately.
> >
> > Kind regards,
> > Michael
>
>
> Hi Phil, Michael,
>
> if of interest, I could send you the .zip with the files Craig sent to
> me and an additional folder where I've put in my changes. The
> saxaphon-music would be still missing, though.
>
> In any case I will wait for Craig's ok, before doing so.
>
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Thomas Morley
2017-06-26 0:00 GMT+02:00 Michael Gerdau :
>> I'd be happy to test.  I've an 8 Gig Ubuntu machine (my Gub builder) an
>> 8 Gig Windows 10 and my day-to-day 6 Gig Vista.  I could test with any
>> of those.  Would require the score privately.
>
> If it is still of interest, I could run on either my 16GB ArchLinux
> Laptop or my 64GB ArchLinux DB Server.
>
> Like Phil I would need the score privately.
>
> Kind regards,
> Michael


Hi Phil, Michael,

if of interest, I could send you the .zip with the files Craig sent to
me and an additional folder where I've put in my changes. The
saxaphon-music would be still missing, though.

In any case I will wait for Craig's ok, before doing so.


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Michael Gerdau
> I'd be happy to test.  I've an 8 Gig Ubuntu machine (my Gub builder) an
> 8 Gig Windows 10 and my day-to-day 6 Gig Vista.  I could test with any
> of those.  Would require the score privately.

If it is still of interest, I could run on either my 16GB ArchLinux
Laptop or my 64GB ArchLinux DB Server.

Like Phil I would need the score privately.

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Phil Holmes
I'd be happy to test.  I've an 8 Gig Ubuntu machine (my Gub builder) an 8 
Gig Windows 10 and my day-to-day 6 Gig Vista.  I could test with any of 
those.  Would require the score privately.


--
Phil Holmes


- Original Message - 
From: "Thomas Morley" <thomasmorle...@gmail.com>

To: "Maxime's Music" <craig.dabelst...@gmail.com>
Cc: "lilypond-user" <lilypond-user@gnu.org>
Sent: Sunday, June 25, 2017 11:34 AM
Subject: Re: Error message



2017-06-23 11:09 GMT+02:00 Maxime's Music <craig.dabelst...@gmail.com>:

Thanks for taking a look at this for me.


Hi Craig,

as long as I don't need to post larger amounts of your code I'll answer 
onlist.

Hope this is ok with you.

That said, I was not able to compile your code in a reasonable amount of 
time.

I always aborted after ~2h compile-time.

Even while using
ly:one-line-breaking
to skip page-breaking I was not successfull, although you forgot to
include the saxaphon-music in the zip-file, so that I excluded it from
\score.
How long did a successful run last for you?

I'm on an admittedly weak laptop, only 4GB RAM. Using Ubuntu 16.04
64-bit with mutiple lily-versions.

Only thing I stumbled across is your use of scaling durations for
every tuplet like:
   \times 2/3  {
 r8*1023/1024 d'8*513/512 ( [ c8*1023/1024 ) ]
   }
This does not make any sense to me. Why do you do so?

Anyway, even after deleting all scaling of this kind I didn't get a
successful run in a reasonable amount of time.

As far as I can tell nothing else in your code should be that
expensive to eat up memory or to let explode compile-time.

Would be great if someone else with a stronger computer could retest.
For example, I didn't try to exclude Melody_engraver.
During the 2h compile-time my computer is not usable for other stuff.
And I need to restart afterwards.
So I give up on this.


Sorry to be of not more help,
 Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-25 Thread Thomas Morley
2017-06-23 11:09 GMT+02:00 Maxime's Music :
> Thanks for taking a look at this for me.

Hi Craig,

as long as I don't need to post larger amounts of your code I'll answer onlist.
Hope this is ok with you.

That said, I was not able to compile your code in a reasonable amount of time.
I always aborted after ~2h compile-time.

Even while using
ly:one-line-breaking
to skip page-breaking I was not successfull, although you forgot to
include the saxaphon-music in the zip-file, so that I excluded it from
\score.
How long did a successful run last for you?

I'm on an admittedly weak laptop, only 4GB RAM. Using Ubuntu 16.04
64-bit with mutiple lily-versions.

Only thing I stumbled across is your use of scaling durations for
every tuplet like:
\times 2/3  {
  r8*1023/1024 d'8*513/512 ( [ c8*1023/1024 ) ]
}
This does not make any sense to me. Why do you do so?

Anyway, even after deleting all scaling of this kind I didn't get a
successful run in a reasonable amount of time.

As far as I can tell nothing else in your code should be that
expensive to eat up memory or to let explode compile-time.

Would be great if someone else with a stronger computer could retest.
For example, I didn't try to exclude Melody_engraver.
During the 2h compile-time my computer is not usable for other stuff.
And I need to restart afterwards.
So I give up on this.


Sorry to be of not more help,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-22 Thread Maxime's Music
Thanks Harm, I'll package it up for you today.
On Fri, 23 Jun 2017 at 5:24 am, Thomas Morley <thomasmorle...@gmail.com>
wrote:

> 2017-06-22 6:27 GMT+02:00 Maxime's Music <craig.dabelst...@gmail.com>:
> > Hi Lilyponders,
> >
> > I've been working on a very big score, adding staves one at a time.
> > There are 34 staves, and the PDF is 107 pages long. When I add in either
> of
> > the final two staves I get this error message:
> >
> >
> > lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
> > (error code=3)
> >
> > *** error: can't allocate region
> >
> > *** set a breakpoint in malloc_error_break to debug
> >
> >
> > Can anyone point me in the right direction to start working out what is
> > wrong?
> >
> >
> > All the best,
> >
> >
> > Craig
>
>
>
> Hi Craig,
>
> I'd offer to have a look at your score, if you send it to me privately.
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-22 Thread Thomas Morley
2017-06-22 6:27 GMT+02:00 Maxime's Music <craig.dabelst...@gmail.com>:
> Hi Lilyponders,
>
> I've been working on a very big score, adding staves one at a time.
> There are 34 staves, and the PDF is 107 pages long. When I add in either of
> the final two staves I get this error message:
>
>
> lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
> (error code=3)
>
> *** error: can't allocate region
>
> *** set a breakpoint in malloc_error_break to debug
>
>
> Can anyone point me in the right direction to start working out what is
> wrong?
>
>
> All the best,
>
>
> Craig



Hi Craig,

I'd offer to have a look at your score, if you send it to me privately.

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-22 Thread David Kastrup
"Maxime's Music"  writes:

> Hi,
>
> I'm on a Mac Sierra 10.12.5, Lilypond 2.19.36
> It has 8GB of RAM but when engraving my score Lilypond is using almost 3GB.
> When it gets close to the 3GB point is when it crashes and I get the malloc
> error. Could it be simply that I don't have enough RAM?

More like LilyPond does not have enough RAM.  I think it is a 32bit
executable.  In that case I don't think it will get much more than 3GB
regardless of what you may have installed.  LilyPond's representation of
printed output items is sort-of wasteful but I am still surprised that
someone manages to hit the 3GB mark.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-22 Thread Maxime's Music
Hi,

I'm on a Mac Sierra 10.12.5, Lilypond 2.19.36
It has 8GB of RAM but when engraving my score Lilypond is using almost 3GB.
When it gets close to the 3GB point is when it crashes and I get the malloc
error. Could it be simply that I don't have enough RAM?

Craig

On Thu, 22 Jun 2017 at 7:14 pm, Andrew Bernard <andrew.bern...@gmail.com>
wrote:

> Hi Craig,
>
> Version number and platform?
>
> I have very large, very complex scores of similar length (100 pages +)
> that compile with no problem (but keyboard music so perhaps considerably
> fewer staves).
>
> Andrew
>
>
> On 22 June 2017 at 14:27, Maxime's Music <craig.dabelst...@gmail.com>
> wrote:
>
>> Hi Lilyponders,
>>
>> I've been working on a very big score, adding staves one at a time.
>> There are 34 staves, and the PDF is 107 pages long. When I add in either
>> of the final two staves I get this error message:
>>
>>
>> lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
>> (error code=3)
>>
>> *** error: can't allocate region
>>
>> *** set a breakpoint in malloc_error_break to debug
>>
>>
>> Can anyone point me in the right direction to start working out what is
>> wrong?
>>
>>
>> All the best,
>>
>>
>> Craig
>>
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-22 Thread Andrew Bernard
Hi Craig,

Version number and platform?

I have very large, very complex scores of similar length (100 pages +) that
compile with no problem (but keyboard music so perhaps considerably fewer
staves).

Andrew


On 22 June 2017 at 14:27, Maxime's Music <craig.dabelst...@gmail.com> wrote:

> Hi Lilyponders,
>
> I've been working on a very big score, adding staves one at a time.
> There are 34 staves, and the PDF is 107 pages long. When I add in either
> of the final two staves I get this error message:
>
>
> lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
> (error code=3)
>
> *** error: can't allocate region
>
> *** set a breakpoint in malloc_error_break to debug
>
>
> Can anyone point me in the right direction to start working out what is
> wrong?
>
>
> All the best,
>
>
> Craig
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error message

2017-06-21 Thread David Kastrup
"Maxime's Music" <craig.dabelst...@gmail.com> writes:

> Hi Lilyponders,
>
> I've been working on a very big score, adding staves one at a time.
> There are 34 staves, and the PDF is 107 pages long. When I add in either of
> the final two staves I get this error message:
>
>
> lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
> (error code=3)
>
> *** error: can't allocate region
>
> *** set a breakpoint in malloc_error_break to debug
>
>
> Can anyone point me in the right direction to start working out what is
> wrong?

Sounds like you are running out of memory.  Are there (artificial)
limits set for the amount of memory an application may use?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Error message

2017-06-21 Thread Maxime's Music
Hi Lilyponders,

I've been working on a very big score, adding staves one at a time.
There are 34 staves, and the PDF is 107 pages long. When I add in either of
the final two staves I get this error message:


lilypond(43147,0xa70c91c0) malloc: *** mach_vm_map(size=1048576) failed
(error code=3)

*** error: can't allocate region

*** set a breakpoint in malloc_error_break to debug


Can anyone point me in the right direction to start working out what is
wrong?


All the best,


Craig
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Urs Liska


Am 14.03.2017 um 11:02 schrieb David Kastrup:
> Urs Liska <u...@openlilylib.org> writes:
>
>> Am 14.03.2017 um 10:43 schrieb David Kastrup:
>>> Urs Liska <u...@openlilylib.org> writes:
>>>
>>>> Am 14.03.2017 um 09:00 schrieb David Kastrup:
>>>>> and then the offending line, split into two just at the offending
>>>>> location.  In your case, the first occurences of h are flagged since h
>>>>> is not part of the default note language.
>>>> To add something more general to that: The "error: unrecognized string"
>>>> indicates that LilyPond is given something to parse (here: "h") which it
>>>> doesn't understand ("recognize") at this place. It can be a note name in
>>>> the wrong language but it could also be a misspelled command (e.g.
>>>> \brake instead of \break) or a variable you have declared in another
>>>> file which you forgot to include.
>>>>
>>>> So essentially this error tells you "There is *something* wrong with
>>>> your input but I can't tell you what exactly". And LilyPond can't tell
>>>> you "this is not a note name" here because there are plenty of other
>>>> valid things that could go there, articulations, dynamics, ties,
>>>> arbitrary commands or Scheme expressions ...
>>> None of which have the form of a string.  I do think that the error
>>> message is too circumlocutory.
>>>
>> Maybe something like Python3:
>>
>>>>> prnit("Something")
>> Traceback (most recent call last):
>>   File "", line 1, in 
>> NameError: name 'prnit' is not defined
>>
>> We could have something like:
>>
>> error: unknown item 'h'
>>
>> in the OP's example?
> Just running "make test" on a proposal of mine: discussion will then be
> best done on the Rietveld issue.
>

OK

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread David Kastrup
Urs Liska <u...@openlilylib.org> writes:

> Am 14.03.2017 um 10:43 schrieb David Kastrup:
>> Urs Liska <u...@openlilylib.org> writes:
>>
>>> Am 14.03.2017 um 09:00 schrieb David Kastrup:
>>>> and then the offending line, split into two just at the offending
>>>> location.  In your case, the first occurences of h are flagged since h
>>>> is not part of the default note language.
>>> To add something more general to that: The "error: unrecognized string"
>>> indicates that LilyPond is given something to parse (here: "h") which it
>>> doesn't understand ("recognize") at this place. It can be a note name in
>>> the wrong language but it could also be a misspelled command (e.g.
>>> \brake instead of \break) or a variable you have declared in another
>>> file which you forgot to include.
>>>
>>> So essentially this error tells you "There is *something* wrong with
>>> your input but I can't tell you what exactly". And LilyPond can't tell
>>> you "this is not a note name" here because there are plenty of other
>>> valid things that could go there, articulations, dynamics, ties,
>>> arbitrary commands or Scheme expressions ...
>> None of which have the form of a string.  I do think that the error
>> message is too circumlocutory.
>>
>
> Maybe something like Python3:
>
>>>> prnit("Something")
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'prnit' is not defined
>
> We could have something like:
>
> error: unknown item 'h'
>
> in the OP's example?

Just running "make test" on a proposal of mine: discussion will then be
best done on the Rietveld issue.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Urs Liska


Am 14.03.2017 um 10:43 schrieb David Kastrup:
> Urs Liska <u...@openlilylib.org> writes:
>
>> Am 14.03.2017 um 09:00 schrieb David Kastrup:
>>> and then the offending line, split into two just at the offending
>>> location.  In your case, the first occurences of h are flagged since h
>>> is not part of the default note language.
>> To add something more general to that: The "error: unrecognized string"
>> indicates that LilyPond is given something to parse (here: "h") which it
>> doesn't understand ("recognize") at this place. It can be a note name in
>> the wrong language but it could also be a misspelled command (e.g.
>> \brake instead of \break) or a variable you have declared in another
>> file which you forgot to include.
>>
>> So essentially this error tells you "There is *something* wrong with
>> your input but I can't tell you what exactly". And LilyPond can't tell
>> you "this is not a note name" here because there are plenty of other
>> valid things that could go there, articulations, dynamics, ties,
>> arbitrary commands or Scheme expressions ...
> None of which have the form of a string.  I do think that the error
> message is too circumlocutory.
>

Maybe something like Python3:

>>> prnit("Something")
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'prnit' is not defined

We could have something like:

error: unknown item 'h'

in the OP's example?

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread David Kastrup
Urs Liska <u...@openlilylib.org> writes:

> Am 14.03.2017 um 09:00 schrieb David Kastrup:
>> and then the offending line, split into two just at the offending
>> location.  In your case, the first occurences of h are flagged since h
>> is not part of the default note language.
>
> To add something more general to that: The "error: unrecognized string"
> indicates that LilyPond is given something to parse (here: "h") which it
> doesn't understand ("recognize") at this place. It can be a note name in
> the wrong language but it could also be a misspelled command (e.g.
> \brake instead of \break) or a variable you have declared in another
> file which you forgot to include.
>
> So essentially this error tells you "There is *something* wrong with
> your input but I can't tell you what exactly". And LilyPond can't tell
> you "this is not a note name" here because there are plenty of other
> valid things that could go there, articulations, dynamics, ties,
> arbitrary commands or Scheme expressions ...

None of which have the form of a string.  I do think that the error
message is too circumlocutory.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Urs Liska


Am 14.03.2017 um 09:00 schrieb David Kastrup:
> and then the offending line, split into two just at the offending
> location.  In your case, the first occurences of h are flagged since h
> is not part of the default note language.

To add something more general to that: The "error: unrecognized string"
indicates that LilyPond is given something to parse (here: "h") which it
doesn't understand ("recognize") at this place. It can be a note name in
the wrong language but it could also be a misspelled command (e.g.
\brake instead of \break) or a variable you have declared in another
file which you forgot to include.

So essentially this error tells you "There is *something* wrong with
your input but I can't tell you what exactly". And LilyPond can't tell
you "this is not a note name" here because there are plenty of other
valid things that could go there, articulations, dynamics, ties,
arbitrary commands or Scheme expressions ...

HTH
Urs

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Scoutladen - Ralph Fröhlich

Thank you very much. This will help me.


Am 14.03.2017 um 09:00 schrieb David Kastrup:

Scoutladen - Ralph Fröhlich <ra...@scoutladen.eu> writes:


Hi,

hope to find some informations here about reading error messages

Example:

Processing `.../file.ly'
Parsing...
.../file.ly:16:30: error: unrecognized string, not in text script or \lyricmode
   fis8 fis fis fis d d d4 g (
  h) h h8 h8
.../file.ly:16:33: error: unrecognized string, not in text script or \lyricmode
   fis8 fis fis fis d d d4 g (h)
 h h8 h8

Where can I find a short description?

It's just filename:linenumber:columnnumber: errormessage

and then the offending line, split into two just at the offending
location.  In your case, the first occurences of h are flagged since h
is not part of the default note language.

Maybe this particular error message should be "`h' is not a notename"
instead.  It's nice that the string would be allowed in a text script or
\lyricmode, but if someone writes

blabla = \new Lyrics { Shall I com- pare thee to a summer's day? }

the error message "`Shall' is not a note name" is probably clue enough
about what is happening.

Namely we should say what is wrong _here_ rather than mentioning where
it could be right.



--
Abonniere unseren Kanal bei Youtube http://www.youtube.de/jurtenland

Besuche uns bei Facebook http://www.facebook.com/zeltemitfeuerimherzen
Folge uns bei Twitter: http://www.twitter.com/jurtenland
_
Jurtenland - Zelte mit Feuer im Herzen!
Troyerladen - Zieht euch warm an!
Kistenladen - Verpacken, transportieren, lagern!
_

Scoutladen
Ralph Fröhlich
Weingartenstr. 35
77654 Offenburg

Tel. 0781 9483517
Fax. 0781 9483518

ra...@scoutladen.de
http://www.scoutladen.de
http://www.jurtenland.de
http://www.troyerladen.de
http://www.kistenladen.de

UstId: DE238956415
_
Textildruck | Ausrüstung | Bekleidung | und mehr...


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread David Kastrup
Scoutladen - Ralph Fröhlich <ra...@scoutladen.eu> writes:

> Hi,
>
> hope to find some informations here about reading error messages
>
> Example:
>
> Processing `.../file.ly'
> Parsing...
> .../file.ly:16:30: error: unrecognized string, not in text script or 
> \lyricmode
>   fis8 fis fis fis d d d4 g (
>  h) h h8 h8
> .../file.ly:16:33: error: unrecognized string, not in text script or 
> \lyricmode
>   fis8 fis fis fis d d d4 g (h)
> h h8 h8
>
> Where can I find a short description?

It's just filename:linenumber:columnnumber: errormessage

and then the offending line, split into two just at the offending
location.  In your case, the first occurences of h are flagged since h
is not part of the default note language.

Maybe this particular error message should be "`h' is not a notename"
instead.  It's nice that the string would be allowed in a text script or
\lyricmode, but if someone writes

blabla = \new Lyrics { Shall I com- pare thee to a summer's day? }

the error message "`Shall' is not a note name" is probably clue enough
about what is happening.

Namely we should say what is wrong _here_ rather than mentioning where
it could be right.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Scoutladen - Ralph Fröhlich

Ok... so far so good... thank you for the tipp. That works fine.



Am 14.03.2017 um 08:54 schrieb Marc Hohl:

Am 14.03.2017 um 08:49 schrieb Scoutladen - Ralph Fröhlich:

Hi,

hope to find some informations here about reading error messages

Example:

Processing `.../file.ly'
Parsing...
.../file.ly:16:30: error: unrecognized string, not in text script or
\lyricmode
  fis8 fis fis fis d d d4 g (
 h) h h8 h8
.../file.ly:16:33: error: unrecognized string, not in text script or
\lyricmode
  fis8 fis fis fis d d d4 g (h)
h h8 h8

Where can I find a short description?


I cannot answer this in general, but this looks like using german note 
names without declaring it first.


Do you have

\language "deutsch"

stated in your input file?

HTH,

Marc



Best regards
Ralph





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


--
Abonniere unseren Kanal bei Youtube http://www.youtube.de/jurtenland

Besuche uns bei Facebook http://www.facebook.com/zeltemitfeuerimherzen
Folge uns bei Twitter: http://www.twitter.com/jurtenland
_
Jurtenland - Zelte mit Feuer im Herzen!
Troyerladen - Zieht euch warm an!
Kistenladen - Verpacken, transportieren, lagern!
_

Scoutladen
Ralph Fröhlich
Weingartenstr. 35
77654 Offenburg

Tel. 0781 9483517
Fax. 0781 9483518

ra...@scoutladen.de
http://www.scoutladen.de
http://www.jurtenland.de
http://www.troyerladen.de
http://www.kistenladen.de

UstId: DE238956415
_
Textildruck | Ausrüstung | Bekleidung | und mehr...


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to read a error message?

2017-03-14 Thread Marc Hohl

Am 14.03.2017 um 08:49 schrieb Scoutladen - Ralph Fröhlich:

Hi,

hope to find some informations here about reading error messages

Example:

Processing `.../file.ly'
Parsing...
.../file.ly:16:30: error: unrecognized string, not in text script or
\lyricmode
  fis8 fis fis fis d d d4 g (
 h) h h8 h8
.../file.ly:16:33: error: unrecognized string, not in text script or
\lyricmode
  fis8 fis fis fis d d d4 g (h)
h h8 h8

Where can I find a short description?


I cannot answer this in general, but this looks like using german note 
names without declaring it first.


Do you have

\language "deutsch"

stated in your input file?

HTH,

Marc



Best regards
Ralph





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to read a error message?

2017-03-14 Thread Scoutladen - Ralph Fröhlich

Hi,

hope to find some informations here about reading error messages

Example:

Processing `.../file.ly'
Parsing...
.../file.ly:16:30: error: unrecognized string, not in text script or \lyricmode
  fis8 fis fis fis d d d4 g (
 h) h h8 h8
.../file.ly:16:33: error: unrecognized string, not in text script or \lyricmode
  fis8 fis fis fis d d d4 g (h)
h h8 h8

Where can I find a short description?

Best regards
Ralph


--
Abonniere unseren Kanal bei Youtube http://www.youtube.de/jurtenland

Besuche uns bei Facebook http://www.facebook.com/zeltemitfeuerimherzen
Folge uns bei Twitter: http://www.twitter.com/jurtenland
_
Jurtenland - Zelte mit Feuer im Herzen!
Troyerladen - Zieht euch warm an!
Kistenladen - Verpacken, transportieren, lagern!
_

Scoutladen
Ralph Fröhlich
Weingartenstr. 35
77654 Offenburg

Tel. 0781 9483517
Fax. 0781 9483518

ra...@scoutladen.de
http://www.scoutladen.de
http://www.jurtenland.de
http://www.troyerladen.de
http://www.kistenladen.de

UstId: DE238956415
_
Textildruck | Ausrüstung | Bekleidung | und mehr...


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-22 Thread David Wright
On Tue 20 Dec 2016 at 03:01:43 (-0700), ptoye wrote:
> David Wright wrote
> > At first glance, it looks as if the problem might be caused by the
> > last line of lilypond/usr/bin/ps2pdfwr which looks like:
> > 
> > exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> > -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f
> > "$infile"
> > 
> > What does the Windows version have here?
> 
> David, it's the same. This is from my Windows installation.
> 
> exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f
> "$infile"

The odd thing here is that your error message's commandline appears
not to be derivable from the above AFAICT.

warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 
-dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 
-sDEVICE=pdfwrite -sOutputFile=./All night.pdf -c.setpdfwrite -fAll night.ps)'

So it leaves me wondering where your gs command is being invoked from.

> It's no longer an issue as I won't use spaces in file names again.

... which is fine as long as others (who might wish to use spaces)
don't hit the same problem. But as you wrote that you moved a few
files around, perhaps this had some bearing on the problem.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-20 Thread ptoye
David Wright wrote
> At first glance, it looks as if the problem might be caused by the
> last line of lilypond/usr/bin/ps2pdfwr which looks like:
> 
> exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f
> "$infile"
> 
> What does the Windows version have here?

David, it's the same. This is from my Windows installation.

exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f
"$infile"

It's no longer an issue as I won't use spaces in file names again.

Peter




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Any-idea-what-this-error-message-means-tp198048p198213.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-17 Thread David Wright
On Thu 15 Dec 2016 at 20:32:47 (+0100), Jean Brefort wrote:
> Le jeudi 15 décembre 2016 à 19:16 +, Peter Toye a écrit :
> > As far as I can tell, all I did was move a few files into different
> > directories. And I am now getting this message when it tries to
> > convert the PS file to PDF. The PS file is is still on the disk and
> > looks OK. Any idea what it means and how I can get my output back?
> > 
> > Layout output to `All night.ps'...
> > Converting to `./All night.pdf'...
> > warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
> > -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE
> > -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf
> > -c.setpdfwrite -fAll night.ps)' failed (1)
> > fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All
> > night/Gsharpm/All night.ly"
> > 
> > 
> > Regards,
> > 
> > Peter
> > mailto:lilyp...@ptoye.com
> > www.ptoye.com
> > 
> The white space inside the file name might be the issue. On *nix the
> command would fail because of that, white spaces need to be escape.

Debian's 2.18.2 passes this whitespace test just fine, below.
2.19 avoids part of the potential problem by using a nonce PS filename.

At first glance, it looks as if the problem might be caused by the
last line of lilypond/usr/bin/ps2pdfwr which looks like:

exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite 
-sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"

What does the Windows version have here?


$ lilypond space\ in\ filename.ly
GNU LilyPond 2.18.2
Processing `space in filename.ly'
Parsing...
space in filename.ly:1: warning: no \version statement found, please add

\version "2.18.2"

for future compatibility
Interpreting music...[8][16]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `space in filename.ps'...
Converting to `./space in filename.pdf'...
Success: compilation successfully completed
$ 

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-16 Thread Jacques Menu Muzhic

> Le 16 déc. 2016 à 13:47, Peter Toye  a écrit :
> 
> Jean,
> 
> Thanks to all who answered. It seems to be the space in the file name. I 
> replaced it with an underline and it seems OK now.
> 
> Should be a warning to all application developers: if you're going to put 
> Windows file names in a script, always enclose them in quotes!

The same holds for Linux and Mac OS, it’s a shell feature actually.

JM

> 
> Best regards,
> 
> Peter
> mailto:lilyp...@ptoye.com 
> www.ptoye.com 
> 
> -
> Thursday, December 15, 2016, 7:32:47 PM, you wrote:
> 
> > Le jeudi 15 décembre 2016 à 19:16 +, Peter Toye a écrit :
> >> As far as I can tell, all I did was move a few files into different
> >> directories. And I am now getting this message when it tries to
> >> convert the PS file to PDF. The PS file is is still on the disk and
> >> looks OK. Any idea what it means and how I can get my output back?
> 
> >> Layout output to `All night.ps'...
> >> Converting to `./All night.pdf'...
> >> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
> >> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE
> >> -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf
> >> -c.setpdfwrite -fAll night.ps)' failed (1)
> >> fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All
> >> night/Gsharpm/All night.ly"
> 
> 
> >> Regards,
> 
> >> Peter
> >> mailto:lilyp...@ptoye.com 
> >> www.ptoye.com 
> 
> > The white space inside the file name might be the issue. On *nix the
> > command would fail because of that, white spaces need to be escape.
> 
> > Hope this helps
> > Jean
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-16 Thread SoundsFromSound
Michael Gerdau wrote
> I've only seen things like that on Windows (as is your case too) and when
> it happened I *always* had the to-be-created PDF open in an external
> viewer (not Frescobaldi). 
> 
> Kind regards,
> Michael
> -- 
>  Michael Gerdau   email: 

> mgd@

>  GPG-keys available on request or at public keyserver
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> signature.asc (499 bytes)
> http://lilypond.1069038.n5.nabble.com/attachment/198072/0/signature.asc;

Same here, I've only had this issue on Windows and it's happened enough
times where I was getting very frustrated. I almost never boot up my Win10
machine anymore these days, so when I do, this is just one of the many
annoyances with Microsoft that reminds me of how good I have it with Debian.
:)

Linux has no issues with the PDF external or otherwise, for sure!




-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Any-idea-what-this-error-message-means-tp198048p198080.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-16 Thread Peter Toye
Jean,

Thanks to all who answered. It seems to be the space in the file name. I 
replaced it with an underline and it seems OK now.

Should be a warning to all application developers: if you're going to put 
Windows file names in a script, always enclose them in quotes!

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Thursday, December 15, 2016, 7:32:47 PM, you wrote:

> Le jeudi 15 décembre 2016 à 19:16 +, Peter Toye a écrit :
>> As far as I can tell, all I did was move a few files into different
>> directories. And I am now getting this message when it tries to
>> convert the PS file to PDF. The PS file is is still on the disk and
>> looks OK. Any idea what it means and how I can get my output back?

>> Layout output to `All night.ps'...
>> Converting to `./All night.pdf'...
>> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
>> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE
>> -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf
>> -c.setpdfwrite -fAll night.ps)' failed (1)
>> fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All
>> night/Gsharpm/All night.ly"


>> Regards,

>> Peter
>> mailto:lilyp...@ptoye.com
>> www.ptoye.com

> The white space inside the file name might be the issue. On *nix the
> command would fail because of that, white spaces need to be escape.

> Hope this helps
> Jean___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-15 Thread Michael Gerdau
> As far as I can tell, all I did was move a few files into different
> directories. And I am now getting this message when it tries to convert
> the PS file to PDF. The PS file is is still on the disk and looks OK. Any
> idea what it means and how I can get my output back?
> 
> Layout output to `All night.ps'...
> Converting to `./All night.pdf'...
> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH
> -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf -c.setpdfwrite
> -fAll night.ps)' failed (1) fatal error: failed files:
> "D:/Peter/Music/Lilypond/Gurney/All night/Gsharpm/All night.ly"

On top what all the others already said here is my experience:

I've only seen things like that on Windows (as is your case too) and when
it happened I *always* had the to-be-created PDF open in an external
viewer (not Frescobaldi). On Linux that works w/o problems is is then
reloaded automatically in the viewer, but on Windows I always have to
close the viewer, run Lp and reopen the viewer.

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-15 Thread SoundsFromSound
Peter Toye wrote
> As far as I can tell, all I did was move a few files into different
> directories. And I am now getting this message when it tries to convert
> the PS file to PDF. The PS file is is still on the disk and looks OK. Any
> idea what it means and how I can get my output back?
> 
> Layout output to `All night.ps'...
> Converting to `./All night.pdf'...
> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH
> -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf -c.setpdfwrite -fAll
> night.ps)' failed (1)
> fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All
> night/Gsharpm/All night.ly"
> 
>  
> Regards,
> 
> Peter
> mailto:

> lilypond@

> www.ptoye.com
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Peter,

I've actually seen that error a few times in the past when trying to engrave
to PDF via Frescobaldi, for example. It is related to the PDF output I
believe, I narrowed it down. No clue what triggers it but I fixed it by
simply renaming the file and Windows liked it.

Hope that helps.

B



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Any-idea-what-this-error-message-means-tp198048p198059.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-15 Thread Jean Brefort
Le jeudi 15 décembre 2016 à 19:16 +, Peter Toye a écrit :
> As far as I can tell, all I did was move a few files into different
> directories. And I am now getting this message when it tries to
> convert the PS file to PDF. The PS file is is still on the disk and
> looks OK. Any idea what it means and how I can get my output back?
> 
> Layout output to `All night.ps'...
> Converting to `./All night.pdf'...
> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28
> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE
> -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./All night.pdf
> -c.setpdfwrite -fAll night.ps)' failed (1)
> fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All
> night/Gsharpm/All night.ly"
> 
> 
> Regards,
> 
> Peter
> mailto:lilyp...@ptoye.com
> www.ptoye.com
> 
The white space inside the file name might be the issue. On *nix the
command would fail because of that, white spaces need to be escape.

Hope this helps
Jean


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Any idea what this error message means?

2016-12-15 Thread Jacques Menu Muzhic
Hello Peter,

Maybe the problem stems from spaces in file names such as :

All night.pdf

You could avoid them, or place such files names in quotes such as 'All 
night.pdf’.

Can you try that?

JM

> Le 15 déc. 2016 à 20:16, Peter Toye  a écrit :
> 
> As far as I can tell, all I did was move a few files into different 
> directories. And I am now getting this message when it tries to convert the 
> PS file to PDF. The PS file is is still on the disk and looks OK. Any idea 
> what it means and how I can get my output back?
> 
> Layout output to `All night.ps'...
> Converting to `./All night.pdf'...
> warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 
> -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 
> -sDEVICE=pdfwrite -sOutputFile=./All night.pdf -c.setpdfwrite -fAll 
> night.ps)' failed (1)
> fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All 
> night/Gsharpm/All night.ly"
> 
> 
> Regards,
> 
> Peter
> mailto:lilyp...@ptoye.com
> www.ptoye.com
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Any idea what this error message means?

2016-12-15 Thread Peter Toye
As far as I can tell, all I did was move a few files into different 
directories. And I am now getting this message when it tries to convert the PS 
file to PDF. The PS file is is still on the disk and looks OK. Any idea what it 
means and how I can get my output back?

Layout output to `All night.ps'...
Converting to `./All night.pdf'...
warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 
-dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 
-sDEVICE=pdfwrite -sOutputFile=./All night.pdf -c.setpdfwrite -fAll night.ps)' 
failed (1)
fatal error: failed files: "D:/Peter/Music/Lilypond/Gurney/All 
night/Gsharpm/All night.ly"

 
Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypon error message: "Programming error -- bounds of the piece aren't breakable"

2016-11-03 Thread Urs Liska
If you run that score with the current development version it will not
crash but produce the attached result (for your reference).

But the log shows that you have errors in it (you can ignore the
warnings about strange time signatures but look for warning: mid-measure
time signature without \partial). Obviously LilyPond 2.18 didn't
gracefully handle the faulty input.

Starting lilypond 2.19.50 [Untitled]...

Processing `/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly'

Parsing...

Interpreting music...

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:53:20 <0>: warning:
strange time signature found: 2885/403

\time 2885/403

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:89:20 <1>: warning:
strange time signature found: 7706/693

\time 7706/693

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:63:22 <2>: warning:
strange time signature found: 4285/631

\time 4285/631

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:63:22 <3>: warning:
mid-measure time signature without \partial

\time 4285/631

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:93:20 <4>: warning:
strange time signature found: 4127/393

\time 4127/393

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:93:20 <5>: warning:
mid-measure time signature without \partial

\time 4127/393

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:71:22 <6>: warning:
strange time signature found: 1071/115

\time 1071/115

/tmp/frescobaldi-GQAw3f/tmp5ji_kp/document.ly:71:22 <7>: warning:
mid-measure time signature without \partial

\time 1071/115

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `/tmp/lilypond-QRomN1'...

Converting to `document.pdf'...

Deleting `/tmp/lilypond-QRomN1'...

Success: compilation successfully completed

Completed successfully in 1.1".

Am 04.11.2016 um 04:27 schrieb mclaren:
> Now we get to the interesting Lilypond scores, the ones that cause Lilypond
> to crash or produce error messages.  
>
> This simple score makes Lilypond die and stop engraving after a couple of
> measures with the error message "Programming error: bounds of this piece
> aren't  breakable."  Lilypond gives lots of "continuing -- crossing fingers"
> and ultimately fails to engrave the score.  Yet Lilypond claims "Completed
> successfully"!
>
> This simple score is broken up into measures of tuplets each of which has a
> large time signature. Because these time signatures would make Lilypond
> crash (LILYPOND HAS STOPPED WORKING is the error message), I have had to
> approximate the time signatures with smaller rational fraction
> approximations in each case.  This is a workaround, but it seems to work in
> other Lilypond scores without trouble.
>
> For example, the time signature 21632/3135 had to be approximated by the
> smaller time signature 2285/403. The smaller time signature is accurate to
> within a couple of parts per million, though, so it works out okay.
>
> That's not the issue. The issue is that Lilypond just can't seem to handle a
> score in which every note is a broken tuplet, and in which large time
> signatures are used. 
>
> Notice that by the time we reach the dotted quarter note tuplet 14 in the
> time of 11 B in the top measure, Lilypond has given up the ghost. Lilypond
> doesn't even print the tuplet. It has freaked out. Lilypond is no longer
> working properly.
>
> Clearly, this score makes Lilypond blow its stack. What I'd like to know is:
> is there any workaround? Any suggestions for getting Lilypond to actually
> engrave what I've entered?
>
> Lilhypond gives the message "Completed successfully" but clearly Lilypond
> isn't completing anything successfully. It gives up and stops engraving the
> score after the first two and a  half measures.
>
> Here's the Lilypond score:
>
> \version "2.18.2"
>
> \header { 
>   tagline = ""  % removed 
> } 
>
> #(set-default-paper-size "a4" 'landscape)
> \layout {
>
> %\paper  {}
> indent=0
>   % Create time signature context
>   % Source: http://lsr.di.unimi.it/LSR/Snippet?id=272
>   % (modified)
>   \context {
> \type Engraver_group
> % Add elements that _can_ be printed
> \consists "Timing_translator"
> \consists "Time_signature_engraver"
> \consists "Axis_group_engraver"
> \name "TimeLine"
> \alias "Staff"
> 
> % Align time signatures on barlines
> \override TimeSignature.X-offset =
>   #ly:self-alignment-interface::x-aligned-on-self
> \override TimeSignature.self-alignment-X = #CENTER
>   }
>   \context {
> \Score
> \accepts "TimeLine"
> \override TupletNumber.text = #t

Lilypon error message: "Programming error -- bounds of the piece aren't breakable"

2016-11-03 Thread mclaren
Now we get to the interesting Lilypond scores, the ones that cause Lilypond
to crash or produce error messages.  

This simple score makes Lilypond die and stop engraving after a couple of
measures with the error message "Programming error: bounds of this piece
aren't  breakable."  Lilypond gives lots of "continuing -- crossing fingers"
and ultimately fails to engrave the score.  Yet Lilypond claims "Completed
successfully"!

This simple score is broken up into measures of tuplets each of which has a
large time signature. Because these time signatures would make Lilypond
crash (LILYPOND HAS STOPPED WORKING is the error message), I have had to
approximate the time signatures with smaller rational fraction
approximations in each case.  This is a workaround, but it seems to work in
other Lilypond scores without trouble.

For example, the time signature 21632/3135 had to be approximated by the
smaller time signature 2285/403. The smaller time signature is accurate to
within a couple of parts per million, though, so it works out okay.

That's not the issue. The issue is that Lilypond just can't seem to handle a
score in which every note is a broken tuplet, and in which large time
signatures are used. 

Notice that by the time we reach the dotted quarter note tuplet 14 in the
time of 11 B in the top measure, Lilypond has given up the ghost. Lilypond
doesn't even print the tuplet. It has freaked out. Lilypond is no longer
working properly.

Clearly, this score makes Lilypond blow its stack. What I'd like to know is:
is there any workaround? Any suggestions for getting Lilypond to actually
engrave what I've entered?

Lilhypond gives the message "Completed successfully" but clearly Lilypond
isn't completing anything successfully. It gives up and stops engraving the
score after the first two and a  half measures.

Here's the Lilypond score:

\version "2.18.2"

\header { 
  tagline = ""  % removed 
} 

#(set-default-paper-size "a4" 'landscape)
\layout {

%\paper  {}
indent=0
  % Create time signature context
  % Source: http://lsr.di.unimi.it/LSR/Snippet?id=272
  % (modified)
  \context {
\type Engraver_group
% Add elements that _can_ be printed
\consists "Timing_translator"
\consists "Time_signature_engraver"
\consists "Axis_group_engraver"
\name "TimeLine"
\alias "Staff"

% Align time signatures on barlines
\override TimeSignature.X-offset =
  #ly:self-alignment-interface::x-aligned-on-self
\override TimeSignature.self-alignment-X = #CENTER
  }
  \context {
\Score
\accepts "TimeLine"
\override TupletNumber.text = #tuplet-number::calc-fraction-text
  }
  \context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"

  }
}

{
  
  
<<
  
\new Staff { \clef "treble"
 \relative c''
{

\override Staff.TimeSignature #'stencil = ##f 
%\time 86772/12121
  \time 2885/403
  { \tuplet 17/15 {c4} 
\tweak direction #up
\tuplet 23/19 {d8[ f]} \tuplet 31/29{e b4 c8}}
 

%\time 21632/3135
  \bar "|"
  
  {
  \time 4285/631
  \tuplet 11/9{d4.} 
   \tweak direction #up
   \tuplet 15/13{f8} \tuplet 19/17{e2}}
  
  
 \bar "|"
 {
 \time 1071/115
 \tuplet 14/11{b4.} \tuplet 23/17{c8} \tuplet 1/15{d8[ f e b]} \tuplet
17/13{c2}
 
  \bar "|"
 }

}
}
  


\new Staff { \clef "treble"
 \relative c''
{


\override Staff.TimeSignature #'stencil = ##f 
\time 7706/693
{ \tuplet 17/15{c8[ d f e]} \tuplet 11/7{b2.} \tweak direction #down \tuplet
5/3{r4} \tuplet 7/6 {c16[ d16]} \tuplet 9/8 {f4} }
 \bar "|"
 \time 4127/393
 {\tuplet 13/10{r4.} \tuplet 3/4{e8} \tuplet 7/5{b[ c d]} \tuplet 8/5{d8 f4
e8} \tuplet 23/17{b4.}}
 \bar "|"
  e8  b] c[ d16 f e8 b c16 d f8 e b c] d[ f e b16 c d8 f e b16 c  d8]  
}  
}


>>
 
}





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypon-error-message-Programming-error-bounds-of-the-piece-aren-t-breakable-tp196123.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme error message

2016-04-22 Thread Urs Liska
Hi Andrew,

thank you for these explanations. I wouldn't have thought of trying the
construct in another Scheme implementation (although Racket should still
be installed somewhere on my PC ...).

So it more or less boils down to a syntax error that Guile doesn't
really understand. Maybe because the (1 . 2) looks somewhat like an
improper list to the parser?

Anyway, now I'm closer to provide a proper explanation (you know where).

Best

Urs


Am 22.04.2016 um 03:04 schrieb Andrew Bernard:
> Hi Urs,
>
> I’d say it is poor error reporting on the part of guile. (Oh no, I’m
> not starting that again! :-))
>
> If you look at what racket says in these cases, which is clear, you
> can see tha guile makes a poor job of explaining to the user in your
> example. No wonder you are confused by guile.
>
> racket:
>
> > (1 2 3)
> application: not a procedure;
>  expected a procedure that can be applied to arguments
>   given: 1
>   arguments...:
>2
>3
>   context...:
>/home/andro/racket/collects/racket/private/misc.rkt:87:7
> > (1 . 2)
> stdin::40: application: bad syntax
>   in: (1 . 2)
>   context...:
>/home/andro/racket/collects/racket/private/misc.rkt:87:7
>
>
> Something I notice is that you get an ABORT which is presumably the
> result of an error having been thrown, and guile does not have an
> appropriate key for this so they just use the wrong number of
> arguments key. There needs to be a key ‘bad syntax’ to throw for this
> error. That would be better.
>
> In guile 2 we get:
>
> scheme@(guile-user)> (1 2 3)
> ERROR: In procedure 1:
> ERROR: Wrong type to apply: 1
>
> scheme@(guile-user)> (1 . 2)
> While compiling expression:
> ERROR: Syntax error:
> unknown file:1:0: source expression failed to match any pattern in
> form (1 . 2)
>
> So this has been addressed in guile 2.
>
> Andrew
>
>


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme error message

2016-04-21 Thread Andrew Bernard
Hi Urs,

I’d say it is poor error reporting on the part of guile. (Oh no, I’m not 
starting that again! :-))

If you look at what racket says in these cases, which is clear, you can see tha 
guile makes a poor job of explaining to the user in your example. No wonder you 
are confused by guile.

racket:

> (1 2 3)
application: not a procedure;
 expected a procedure that can be applied to arguments
  given: 1
  arguments...:
   2
   3
  context...:
   /home/andro/racket/collects/racket/private/misc.rkt:87:7
> (1 . 2)
stdin::40: application: bad syntax
  in: (1 . 2)
  context...:
   /home/andro/racket/collects/racket/private/misc.rkt:87:7


Something I notice is that you get an ABORT which is presumably the result of 
an error having been thrown, and guile does not have an appropriate key for 
this so they just use the wrong number of arguments key. There needs to be a 
key ‘bad syntax’ to throw for this error. That would be better.

In guile 2 we get:

scheme@(guile-user)> (1 2 3)
ERROR: In procedure 1:
ERROR: Wrong type to apply: 1

scheme@(guile-user)> (1 . 2)
While compiling expression:
ERROR: Syntax error:
unknown file:1:0: source expression failed to match any pattern in form (1 . 2)

So this has been addressed in guile 2.

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme error message

2016-04-21 Thread Urs Liska


Am 21.04.2016 um 21:27 schrieb David Kastrup:
> Urs Liska <u...@openlilylib.org> writes:
>
>> Hi all,
>>
>> I understand what this error message means:
>>
>> |guile> (1 2 3) standard input:98:1: In expression (1 2 3): standard
>> input:98:1: Wrong type to apply: 1 ABORT: (misc-error) |
>>
>> But I'm at a loss with that:
>>
>> |guile> (1 . 2) standard input:82:1: In expression (1 . 2): standard
>> input:82:1: Wrong number of arguments to 1 ABORT: (wrong-number-of-args) |
>>
>>
>> ||
>> Please, I don't want to know how to do it correctly (which I do) but
>> what Scheme "thinks" in the second case: What kind of "1" is it that
>> expects a "number of arguments"?
> "Wrong number of arguments" is apparently Guile's phrasing for "bad
> argument list".  Guile apparently never gets as far as checking whether
> 1 is callable.
>

Hm, strange. I can see your point but don't understand what really
happens. Makes a hard time explaining things you don't have a clue about ...

Interestingly Scheme *does* make a difference:

guile> (random . 2)
standard input:121:1: While evaluating arguments to random in expression
(random . 2):
standard input:121:1: Wrong number of arguments to #
ABORT: (wrong-number-of-args)



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme error message

2016-04-21 Thread David Kastrup
Urs Liska <u...@openlilylib.org> writes:

> Hi all,
>
> I understand what this error message means:
>
> |guile> (1 2 3) standard input:98:1: In expression (1 2 3): standard
> input:98:1: Wrong type to apply: 1 ABORT: (misc-error) |
>
> But I'm at a loss with that:
>
> |guile> (1 . 2) standard input:82:1: In expression (1 . 2): standard
> input:82:1: Wrong number of arguments to 1 ABORT: (wrong-number-of-args) |
>
>
> ||
> Please, I don't want to know how to do it correctly (which I do) but
> what Scheme "thinks" in the second case: What kind of "1" is it that
> expects a "number of arguments"?

"Wrong number of arguments" is apparently Guile's phrasing for "bad
argument list".  Guile apparently never gets as far as checking whether
1 is callable.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   3   >