bug-lilypond
[Top][All Lists]
Advanced

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

page breaker crash


From: Nicolas Sceaux
Subject: page breaker crash
Date: Sat, 23 Sep 2006 12:51:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

Hi,

The following snippet makes lily to crash:

\score {
  \new StaffGroup <<
    \new Staff <<
      {
        \break
        \overrideProperty #"Score.NonMusicalPaperColumn"
        #'line-break-system-details
        #'((alignment-extra-space . 20))
      }
      { \clef french c''1 c''1 } 
    >>
    \new Staff { \clef soprano g'1 g'1 }
    \new Staff { \clef mezzosoprano e'1 e'1 }
    \new Staff { \clef alto g1 g1 }
    \new Staff { \clef bass c1 c1 }
  >>
  \header {
    piece = "Score A, with tweaks"
  }
}
\score {
  \new StaffGroup <<
    \new Staff { \clef french c''1 c''1 }
    \new Staff { \clef soprano g'1 g'1 }
    \new Staff { \clef mezzosoprano e'1 e'1 }
    \new Staff { \clef alto g1 g1 }
    \new Staff { \clef bass c1 c1 }
  >>
  \header {
    piece = "Score B, no tweak"
  }
}

-*- mode: compilation; default-directory: "~/tmp/" -*-
Compilation started at Sat Sep 23 12:46:26

lilypond /Users/nicolas/tmp/page-breaker-crash.ly
GNU LilyPond 2.9.19
Processing `/Users/nicolas/tmp/page-breaker-crash.ly'
Parsing...
Interpreting music... [2]
Preprocessing graphical objects... 
Interpreting music... [2]
Preprocessing graphical objects... 
programming error: tried to space systems on a bad number of pages
continuing, cross fingers

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffff8
space_systems_on_best_pages (address@hidden, page_height=147.74976377952757, 
odd_pages_penalty=0, ragged=false, ragged_last=true) at page-spacing.cc:432
432       best.force_.back () += (min_p_count % 2) ? odd_pages_penalty : 0;
(gdb) print best
$1 = (Spacing_result &) @0xbfffc4c8: {
  systems_per_page_ = {
    <__vector<vsize,std::allocator<vsize> >> = {
      <_Vector_base<vsize,std::allocator<vsize> >> = {
        _M_impl = {
          <allocator<vsize>> = {
            <new_allocator<vsize>> = {<No data fields>}, <No data fields>}, 
          members of _Vector_impl: 
          _M_start = 0x0, 
          _M_finish = 0x0, 
          _M_end_of_storage = 0x0
        }
      }, <No data fields>}, <No data fields>}, 
  force_ = {
    <__vector<Real,std::allocator<Real> >> = {
      <_Vector_base<Real,std::allocator<Real> >> = {
        _M_impl = {
          <allocator<Real>> = {
            <new_allocator<Real>> = {<No data fields>}, <No data fields>}, 
          members of _Vector_impl: 
          _M_start = 0x0, 
          _M_finish = 0x0, 
          _M_end_of_storage = 0x0
        }
      }, <No data fields>}, <No data fields>}, 
  penalty_ = 0, 
  demerits_ = inf
}
(gdb) bt
#0  space_systems_on_best_pages (address@hidden, 
page_height=147.74976377952757, odd_pages_penalty=0, ragged=false, 
ragged_last=true) at page-spacing.cc:432
#1  0x000dd6ac in Optimal_page_breaking::try_page_spacing (this=0xbfffc5a8, 
address@hidden) at optimal-page-breaking.cc:48
#2  0x000ddbcc in Optimal_page_breaking::solve (this=0xbfffc5a8) at 
optimal-page-breaking.cc:92
#3  0x000e1e04 in ly_optimal_breaking (pb=0xbfffc4c8) at 
page-breaking-scheme.cc:29




reply via email to

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