Core dump: measure-final, length-1 tuplet + tight spacing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Core dump: measure-final, length-1 tuplet + tight spacing

Trevor Bača-2
Hi,

This very specific combination of circumstances causes Lily to core dump:

1. A length-1 tuplet (ie, tuplet containing only a single note or rest);
that
2. occurs as the last element of a measure; followed by
3. more music in the following measure; and with
4. proportional spacing turned on and set to a value that is "too tight"

%%% BEGIN CORE DUMP %%%

\version "2.19.82"
\new Staff
{
    \override Score.SpacingSpanner.strict-grace-spacing = ##t
    \override Score.SpacingSpanner.strict-note-spacing = ##t
    \override Score.SpacingSpanner.uniform-stretching = ##t
    \set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
    \set Score.tupletFullLength = ##t
    c'2.
    c'16
    c'16
    c'16
    \times 1/1
    {
        c'16
    }
    c'1
}

%%% END CORE DUMP %%%

Lily output:

GNU LilyPond 2.19.82
Processing `test.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/interval.hh:227:
failed assertion `!is_empty ()'

Increasing proportional spacing from 1/16 up to, say, 1/32 makes the
problem go away; this is the workaround to document until the bug is fixed.

(Choice of time signature, multiplier of the tuplet, vertical position of
notes on the staff all make no difference in resulting behavior.)

I think the problem's been in Lily for a while (it's definitely not a
2.19.82-only bug); it entered sometime during or after 2014.


Trevor.

--
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca
_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: Core dump: measure-final, length-1 tuplet + tight spacing

Palmer Ralph
On Tue, Feb 12, 2019 at 5:19 PM Trevor Bača <[hidden email]> wrote:

> This very specific combination of circumstances causes Lily to core dump:

Thanks, Trevor. This has been entered as issue #5479.
All the best,
Ralph

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond