Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3218)

Issue 7069044: Issue 2990: \RemoveEmptyStaves in StaffGroup context crashes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dak
Modified:
11 years ago
Reviewers:
Keith, mike7
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Issue 2990: \RemoveEmptyStaves in StaffGroup context crashes The problem is caused by multiple axis group engravers, and in particular nested VerticalAxisGroup grobs in connection with the skyline code. An extensive fix catching any recursive grob definition will lead to quite more cryptic error messages rather than this hand-tailored fix for the special case of VerticalAxisGroup nesting. The solution chosen here is to complain when a VerticalAxisGroup is announced from a subordinate context and let the current group commit suicide.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M lily/axis-group-engraver.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Keith
Anything with a line break still causes a crash. I can't say exactly why, because ...
11 years, 3 months ago (2013-01-10 06:40:08 UTC) #1
dak
On 2013/01/10 06:40:08, Keith wrote: > Anything with a line break still causes a crash. ...
11 years, 3 months ago (2013-01-10 09:00:43 UTC) #2
mike7
On 10 janv. 2013, at 07:40, k-ohara5a5a@oco.net wrote: > Anything with a line break still ...
11 years, 3 months ago (2013-01-10 09:05:21 UTC) #3
dak
On 2013/01/10 09:05:21, mike7 wrote: > It's actually not as bad as you'd think. The ...
11 years, 3 months ago (2013-01-10 09:19:09 UTC) #4
mike7
On 10 janv. 2013, at 10:19, dak@gnu.org wrote: > On 2013/01/10 09:05:21, mike7 wrote: > ...
11 years, 3 months ago (2013-01-10 09:21:33 UTC) #5
dak
11 years, 3 months ago (2013-01-10 09:37:58 UTC) #6
On 2013/01/10 09:21:33, mike7 wrote:
> On 10 janv. 2013, at 10:19, mailto:dak@gnu.org wrote:
> 
> > On 2013/01/10 09:05:21, mike7 wrote:
> > 
> >> It's actually not as bad as you'd think.  The Hara_kiri_engraver is
> > just a thin
> >> wrapper around the Axi_group_engraver.  Everything can be switched on
> > and off
> >> via an extra context property haraKiri.  I was able to drum up a
> > sketch in 10
> >> minutes.  Running the regtests now.
> > 
> > Why would one even need an extra context property?  Isn't that what the
> > remove-empty property is already supposed to be for?
> > 
> > https://codereview.appspot.com/7069044/
> 
> Didn't really look into it, as remove-empty is a grob property so I assumed
that
> it was for the actions performed by the grob, not by the engraver making the
> grob.

I don't think that is a contradiction.  After announcing the grob, overrides,
tweaks and so on should be applied to it, and I think that referencing the
remove-empty property of the grob at that time in order to decide whether to do
the listening and bookkeeping for a harakiri engraver should be fine.

> I'll have a look later.

Thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b