Bracket problems

• Apr 16, 2015 - 00:03
Priority
P2 - Medium
Type
Functional
Severity
S3 - Major
Status
active
Regression
No
Workaround
No
Project

There are multiple issues here.

1. Open attached score: Bracket_example_Concert_band_template.mscz
2. Zoom in and find the bracket at left of first page starting with Bb Trumpet parts.
3. Open Brackets palette and drag the one identified as "Square" to a staff somewhere in the middle of the bracket, like Horn 1 2.

Expected result: the square bracket will attach outside of the main bracket, looking like one of the many other examples visible. Actual result: the two brackets lie precisely on top of each other.

4. Drag another square bracket to Bb Trumpet 1, where the large bracket begins.

Expected result: the square bracket will attach outside of the main bracket. Actual result: the main bracket disappears!

5. Choose Edit -> Undo, or use corresponding shortcut.

Expected result: the square bracket will disappear again and the main bracket will return. Actual result: the square bracket disappears, but the main bracket has vanished beyond recovery. Undo command does not restore everything.

I should note that I'm not sure exactly how to reproduce these issues in a new score, but if you try it with the attached score this is what happens.


Comments

?? Critical = crash, or corruption. This does seem nearly so serious unless there is something I am missing. Everything is fine if you simply reapply the brackets, is it not? Seems like somehow the brass bracket is messed up somehow, but if you delete it and reapply it, all is well as far as I can tell.

Status (old) active needs info

The score is corrupted.
There are two brackets in correspondence of Bb trumpet 1:
<bracket type="-1" span="0"/>
<bracket type="0" span="10"/>
The first one should be the continuation of the bracket above, but that ended before (since its span is only 5).
Indeed, if you delete the bracket starting from Bb trumpet 1 and insert a new one all the problems you see in the report disappear.

Do you know the steps used to create this score?
[ Please keep in mind that there were a couple of problems in the bracket area (in particular undo operations) which got fixed shortly before the release of MuseScore 2.0 ]

That's the thing—I kept adding and adjusting brackets, then editing the instrument selection, then adjusting the brackets again. Somewhere along the way it got confused, but I have no clue where.

Status (old) needs info active

Reproduced from scratch:
1- Create a score with 3 one-staff instruments (e.g. 3 flutes);
2- Insert a bracket on the first one;
3- Extend the bracket down to the third one;
4- Insert a second bracket on the second instrument;
5- Extend this second bracket down to the third instrument;
6- Edit the first bracket and reduce it to only the first instrument; when exiting edit mode, the second bracket adjusts itself with respect to horizontal offset;
7- Now the second bracket behaves as the problematic bracket of the initial report.

I think that the problem may arise from residual <bracket type="-1" span="0"/> not updated when the span of the first bracket is changed.

MuseScore 2.0, Windows 8.1

Can this issue still be reproduced in current stable version?

If yes, please respond with [#303762]- at least if i understand correctly that this involves a situation where hitting undo does not restore the previous state correctly.

If no, please close.

Status needs info active

Yes, for example with these steps:
1- Create a score with 3 one-staff instruments (e.g. 3 flutes);
2- Insert a bracket on the first one;
3- Extend the bracket down to the third one;
4- Insert a second bracket on the second instrument;
5- Extend this second bracket down to the third instrument;
6- Edit the first bracket and reduce it to only the first instrument; when exiting edit mode, the second bracket adjusts itself with respect to horizontal offset;
7- Drag a new bracket on top of the bracket on the second instrument; the old bracket is replaced by this new one;
8- Undo three times -> crash.

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.4.2.9788, revision: 148e43f

Related to #303762: [EPIC] Collection of Undo issues.