Cyclic dependencies with \afterGrace and cross-staff notes

Knute Snortum <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CALmeJxRPKpowuyaONgv+m7GDxEv=UGv0pkmU5AJFvMa+C5TwNA@mail.gmail.com>
Hi all.  I've encountered a problem when using \afterGrace and cross-staff
notes.  It may  be related to these issues:

https://gitlab.com/lilypond/lilypond/-/issues/6171
https://gitlab.com/lilypond/lilypond/-/issues/6197

Here is the MWE:

%%%
\version "2.25.7"

rightHand = \relative {
  c''1~ \startTrillSpan |
  \afterGrace 15/16 c1 { b16[ \stopTrillSpan c] } |
  c8 g e c \change Staff = "lower" g e c g |
}

leftHand = \relative {
  \clef bass
  c4 c c c |
  c4 c c c |
  s1 |
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" \rightHand
    \new Staff = "lower" \leftHand
  >>
}
%%%

This produces several programming errors:

programming error: cyclic dependency: calculation-in-progress encountered
for VerticalAxisGroup.adjacent-pure-heights

continuing, cross fingers

--
Knute Snortum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.