bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lilypond crash signal 6


From: Sean Reed
Subject: lilypond crash signal 6
Date: Sat, 28 Aug 2004 18:14:25 +0200

dear lilypond bug control,

below is a copy of the code i'm using on macos 10.3.5 with lilypond 2.2.5 which results in this crash and error message:
../flower/include/array.hh:149: failed assertion `i >=0&&i<size_'
lilypond: error: LilyPond crashed (signal 6).
lilypond: error: Please submit a bug report to address@hidden

it seems to happen when i add square braces to a beat which includes rests with less than two visible beams, but somehow not always (sorry!)

i am including a copy of the code with THREE systems (one violin, two for piano) for the following reason: the change which causes the crash is in the violin line, but the crash only seems to occur when the other two staves are present.

removing the square brackets here from the violin line:
r8[ f16-. r16]
gets rid of the crash when the piano lines are present (a warning message remains).

when i isolated just the violin line by removing the piano parts (also see below), the crash no longer occurred, although the warning message ("less than two visible beams") still remains.

thanks,
sean reed
------------------------------------------
Sean Reed
Hamburg, Germany
Web: www.seanreed.de

% *********************
% this code crashes until i remove the square brackets in the middle of the violin notes
% *********************

\header {
        title = "lb gent"
        composer = "Sean Reed"
        dedication = "for Lauma and Baiba"
}
        
violinNotes = \notes {
        #(set-accidental-style 'modern)
        \override Staff.TimeSignature #'style = #'numbered
        \time 4/4
        \tempo 4 = 60
        \clef violin
        \set Staff.midiInstrument = #"violin"
        \set Staff.instrument = "Violin  "
        \set Staff.instr = "Vln  "
        \relative c'' {
<g' b>16\mp([ f16-.) r16. a32-.->\>] r8[ f16-. r16] r4 r8 des16-.\p\! r16 |
        }
}

pianoRhNotes = \notes {
        #(set-accidental-style 'modern)
        \override Staff.TimeSignature #'style = #'numbered
        \set Staff.midiInstrument = #"acoustic grand"
        \relative c' {
r8 <es' f>16-. r r8 <es, es'>16-. r r16 <ces' es>-. r8 <a b>16-.[ r8 <g b>16-.] |
        }
}

pianoLhNotes = \notes {
        #(set-accidental-style 'modern)
        \override Staff.TimeSignature #'style = #'numbered
        \clef bass
        \set Staff.midiInstrument = #"acoustic grand"
        \relative c {
\times 2/3 {r8 <des f>-.-> r8} r16 <a des f>-.-> r8 <des es>16-.->[ r r <a des es>-.->] r8 a16-.-> r |
        }
}

        
\score {
        <<
        \time 4/4
        \new Staff <<
        \violinNotes >>
        \new PianoStaff <<
        \set PianoStaff.instrument = "Piano  "
        \set PianoStaff.instr = "Pno "
        \new Staff \pianoRhNotes
        \new Staff \pianoLhNotes
        >>
        >>
        \midi { \tempo 4 = 60 }
        \paper {
                #(set-paper-size "a4")
        }
}

% *************
% this code gives me a warning but does not crash
% **************

\score {
        \notes {
<g b>16\mp([ f16-.) r16. a32-.->\>] r8[ f16-. r16] r4 r8 des16-.\p\! r16 |
        }
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]