Menu

#5561 crash: Assertion `scores.size () > 0' failed.

Fixed
Crash
2019-10-07
2019-09-28
No

[cf7be2a0d5093fb890083d09c1e320d8e06d3991]

This small input file

{
  \omit Stem
  \omit NoteHead

  b( b)
}

makes lilypond crash with

lilypond: slur-scoring.cc:767:
  std::vector<Slur_configuration*>
  Slur_score_state::enumerate_attachments(Drul_array<double>) const:
  Assertion `scores.size () > 0' failed.

Related

Issues: #5562

Discussion

  • Malte Meyn

    Malte Meyn - 2019-09-29

    Hm … is it really a bug that LilyPond cannot find a nice slur config if it has nothing to attach the slur to?

    If you need an invisible attachment point, you can use point-stencil:

    {
      \omit Stem
      \override NoteHead.no-ledgers = ##t
      \override NoteHead.stencil = #point-stencil
    
      b( b)
    }
    
     
    • David Kastrup

      David Kastrup - 2019-09-29

      "Malte Meyn" maltem@users.sourceforge.net writes:

      Hm … is it really a bug that LilyPond cannot find a nice slur config
      if it has nothing to attach the slur to?

      No, but the reaction should not be a failed assertion but a warning and
      some fallback behavior. Failed assertions are for conditions the
      programmer considers indicative of a condition where the program cannot
      safely continue. Programming errors are for conditions that are
      unexpected but where a reasonably safe way of continuing suggests
      itself. Errors are for invalid input, warnings are for invalid
      conditions.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/testlilyissues/issues/5561/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      David Kastrup

       
  • Malte Meyn

    Malte Meyn - 2019-09-30
    • status: New --> Started
    • assigned_to: Malte Meyn
     
    • Malte Meyn

      Malte Meyn - 2019-10-01

      This one will be fixed together with [#5562].

       

      Related

      Issues: #5562

  • Malte Meyn

    Malte Meyn - 2019-10-07
    • labels: --> Fixed_2_21_0
    • status: Started --> Fixed
     
  • Malte Meyn

    Malte Meyn - 2019-10-07

    This was fixed together with [#5562]:

    commit 7e6a95662522ef586614bf547539b2b05e4afb23 (HEAD -> malte/crash-slur-5562, origin/staging)
    Author: Malte Meyn lilypond@maltemeyn.de
    Date: Mon Sep 30 16:58:59 2019 +0200

    Issue 5561/5562: slurs work without NoteHead stencil
    
    While searching for slur configurations LilyPond crashed on NoteHeads
    without stencil because of empty extents. Also, when there cannot be
    found a viable slur config, this is reported as a warning rather than a
    failed assertion.
    
     

    Related

    Issues: #5562