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

Issue 6943072: Checks for recursive element behavior

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by MikeSol
Modified:
11 years, 4 months ago
Reviewers:
Keith, dak, mike7
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

Checks for recursive element behavior

Patch Set 1 #

Patch Set 2 : Checks for recursive element behavior #

Patch Set 3 : Now with 3040 #

Patch Set 4 : Raises programming error instead of assert. #

Patch Set 5 : Moves programming error out of production code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M lily/include/pointer-group-interface.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/pointer-group-interface.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 10
MikeSol
Hey all, I'm ok w/ this on the countdown but can someone check out David's ...
11 years, 4 months ago (2012-12-21 07:59:02 UTC) #1
dak
On 2012/12/21 07:59:02, MikeSol wrote: > Hey all, > > I'm ok w/ this on ...
11 years, 4 months ago (2012-12-21 09:09:02 UTC) #2
Keith
On 2012/12/21 07:59:02, MikeSol wrote: > I'm ok w/ this on the countdown but can ...
11 years, 4 months ago (2012-12-22 06:23:06 UTC) #3
mike7
On 21 déc. 2012, at 10:09, dak@gnu.org wrote: > On 2012/12/21 07:59:02, MikeSol wrote: >> ...
11 years, 4 months ago (2012-12-22 06:41:06 UTC) #4
Keith
http://en.wiktionary.org/wiki/irony
11 years, 4 months ago (2012-12-22 07:41:09 UTC) #5
dak
On 2012/12/22 06:41:06, mike7 wrote: > On 21 déc. 2012, at 10:09, mailto:dak@gnu.org wrote: > ...
11 years, 4 months ago (2012-12-22 08:25:33 UTC) #6
mike7
On 22 déc. 2012, at 09:25, dak@gnu.org wrote: > On 2012/12/22 06:41:06, mike7 wrote: >> ...
11 years, 4 months ago (2012-12-22 08:29:59 UTC) #7
dak
On 2012/12/22 08:29:59, mike7 wrote: > Where in the new code are things being allocated ...
11 years, 4 months ago (2012-12-22 08:46:21 UTC) #8
mike7
On 22 déc. 2012, at 09:46, dak@gnu.org wrote: > On 2012/12/22 08:29:59, mike7 wrote: >> ...
11 years, 4 months ago (2012-12-22 10:51:21 UTC) #9
Keith
11 years, 4 months ago (2012-12-22 20:46:43 UTC) #10
On Sat, 22 Dec 2012 00:46:21 -0800, <dak@gnu.org> wrote:

> In this particular case, however, the problem is adding an axis group to
> an axis group.  _Any_ old axis group to _any_ old axis group.

No no.  The reported problem
    \new StaffGroup \RemoveEmptyStaves <<b1 b>>
causes a StaffGrouper to be added to the VerticalAxisGroup created in the
StaffGroup context.

That by itself seems fine, as I would expect that StaffGrouper's elements to be
the VAGs from the two grouped staves.  For some reason, though, that
StaffGrouper gets the VAG from the enclosing StaffGroup context added to its
list.

StaffGroups nest, which adds StaffGroupers to the elements of the outer
StaffGroupers with no problem, so we are accustomed to letting grouping-objects
have elements that are themselves objects of the same type.


On Sat, 22 Dec 2012 02:01:25 -0800, mike@mikesolomon.org <mike@mikesolomon.org>
wrote:

> My patch is intended to avoid this segfault by not allowing recursive nesting
of elements in theelements list.
>

Yes, but usually we look for the cause of a situation that triggers such an
error-trap, when the situation itself seems incorrect.  Does it not seem
incorrect that the same VAG both contains and is an element of a StaffGrouper ? 
What correct processing of objects would make either of these inclusions ?

Also, you still get segfault as soon as you add a second staff and complete at
least one bar.  (Try the example above as-is and substituting ChoirStaff.)

If we use the Hara_kiri_engraver by default, and define removeEmptyStaves as
  \override VerticalAxisGroup #'remove-empty = ##t
then it could be set at any level like the other options.  I've just made this
change on my Windows installation, and now my LilyPond works, and yours doesn't,
nyah.

Sign in to reply to this message.

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