unwanted system with InstrumentName BarLine & Bracket if VBox immediately after HBox

• Sep 19, 2015 - 11:52
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Steps to reproduce on 3543170 and 2.0.2 release:

  1. Start with two-meas multi-part score (e.g. SATB):
    test_instname_between_vframe_hframe_step1_downsized.png
  2. Insert horizontal frame between meas 1 & meas 2 (can drag & drop hframe onto meas 2):
    test_instname_between_vframe_hframe_step2_addhframe_downsized.png
  3. Insert vertical frame between meas 1 & meas 2 (can drag & drop vframe onto meas 2):
    test_instname_between_vframe_hframe_step3_addvframe_downsized.png

Notice the unwanted instrument names and initial barline and bracket, circled in red. By examining object debugger, I've determined that mscore is actually inserting an entire *system* element, circled in red here:
test_instname_between_vframe_hframe_object_debugger.png


Comments

Interestingly, if I start with that .mscz, I can get more glitches:

4) select the HBox and delete it will result in:
test_instname_between_vframe_hframe_step4_deleted-hbox-turns-into-vbox.png
apparently it has somehow turned into a system of a {barline,bracket,VBox}!

5) then undo (Ctrl->z) will result in:
test_instname_between_vframe_hframe_step5_press_undo-results-in-more-glitch.png
note: that glitched VBox starts right after the vbox and continues for a whole page width across the margin. ObjectDebugger seems to be in same state as in previous object debugger pic.

6) then selecting that glitch box (circled in red above) and deleting it will result in
test_instname_between_vframe_hframe_step6_try-to-delete-the-glitched-box-doesnt-fix.png
apparently that vbox is now part of the system with meas 2, according to object debugger:
state-after-undo-and-after-delete.png

I can also produce some more funny things.

if I use a single-instrument score, then the moment I insert the VBox after the HBox I do not see any VBox added to the score (nothing changes visually), but I do know that that VBox is present because the object debugger indicates that a VBox is added to the second system. Then deleting the HBox again results in the bizarre glitch whereby it turns into a VBox.

So at this point, I'm not sure the error is actually due to the generated instrument names, but is something to do with adding VBox after HBox.

>> "it will be very important to test any changes against those other bugs to make sure they aren't re-broken"

If I see an old fixed bug doesn't have test files associated with it, I suppose that means I should go ahead and add some test cases for them.

Would preventing systems with 0 measures also prevent an HBox at the end of a system? I have used them several times in my scores.

Also, a VBox is actually a system with 0 measures (IIRC, the VBox itself is a MeasureBase, but not a Measure).

>> "Would preventing systems with 0 measures also prevent an HBox at the end of a system?"

According to object debugger, a HBox at the end of a system does not form a new system:
hbox-end-of-system.png

But HBox forms a new system when followed by Measures. What I was saying is that if laying out a system and layout discovers when starting a new system that the first measure won't fit on the file, then will simply not layout that system and measure on that line, and instead start a new line and retry.

>> "the VBox itself is a MeasureBase, but not a Measure"

I'm aware of distinction between Measure vs. MeasureBase, which is why I said "Measure" in #6 :)

>> "Also, a VBox is actually a system with 0 measures"

Yes, a VBox or TBox do form a system of themselves only. And I guess I can even create a system of one HBox only if I add a line break to a HBox.

Anyway, right now after investigating a bit more, I think I realize that the 0-measure system is not the issue. I'm noticing if I create a new score of two meas, then add HBox before meas 2, and then add TBox before meas 2, then I get the following state in object debugger:

meas-hbox-tbox-meas.png

I selected the TBox in the debugger, but I'm noticing the TBox isn't displayed on score layout, even though it is part of the system of meas 2. So must be something else at issue.