bug-lilypond
[Top][All Lists]
Advanced

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

Re: Segfault


From: Mats Bengtsson
Subject: Re: Segfault
Date: Fri, 16 Feb 2007 11:19:07 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

This example gives a segfault already with version 2.8.
However, the real problem with the example is that it hasn't been
properly updated with convert-ly. Just run
convert-ly --from=2.6.0 ...
on the example and it should work fine. However, the whole
example is obsolete, since the following solution provides the
same output and is much much simpler:

\version "2.10.0"
\score  {
    \relative c'' <<
       \new Staff { \repeat volta 2 {
                c4 c4 \stopStaff s \startStaff b4 }
                b4
       }
       \new Staff { \repeat volta 2 {
       \stopStaff s4 \startStaff e d f }
       }
   >>

\layout{ragged-right = ##t }
}

In general, I hope you keep an eye on the examples in LSR and make sure
that they are relevant.

  /Mats

Cameron Horsburgh wrote:
Hi folks,

The following file, which comes to you courtesy of the LilyPond
Snippet Repository, segfaults when compiled with 2.10.16:


\version "2.10.12"

\header { texidoc = "
<p>In this preliminary test of a modern score, the staff lines are washed
out temporarily. This is done by making a tuned <code>StaffContainer</code>,
which <code>\skip</code>s some notes without printing lines either and
creates a <code>\new Staff</code> then in order to create the lines again.
(Be careful if you use this; it has been done by splitting the
grouping <code>Axis_group_engraver</code> and creating functionality into separate contexts, but the clefs and time signatures may not do
what you would expect.)

" }

\score  {
     \relative c'' <<
        \new StaffContainer {

%% need << >>, otherwise we descend to the voice inside SA << \new Staff { c4 c4 } >>
            \skip 4  % s4 would create staff.
<< \new Staff { b4 b4 } >> }
        \new StaffContainer {
            \skip 4
            << \context Staff { e d f \bar ":|" } >>
            \skip 4
        }
    >>

    \layout {
        \context {
            \Score
            \accepts StaffContainer
            \denies Staff
        }
        \context {
            \type Engraver_group_engraver
            \consists Clef_engraver
            \consists Time_signature_engraver
            \consists Separating_line_group_engraver
            \consists "Axis_group_engraver"
            \accepts "Staff"
\name StaffContainer
        }
        \context {
            \Staff
            \remove Axis_group_engraver
            \remove Separating_line_group_engraver
            \remove Clef_engraver
            \remove Time_signature_engraver
        }
        raggedright=##t
    }
}





--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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