Adding Chord Symbol with Part containing linked Staffs causes overabundance of linkedTo and Harmony elements
I've been seeing a lot of crashes when trying to add or edit chord symbols and fretboard diagrams, including strange layering behavior where there are many (thousands) of the same chord symbol or fret diagram layered on top of each other. After some experimentation, I was finally able to reproduce this behavior. Here's the repro:
[note: see comment #10 for a repro with a much simpler, from-scratch score]
1) Open attached file "DCD before adding chord symbol at measure 40.mscx"
2) Go to measure 40
3) Click on the "2" at the top of the tablature staff to select the note
4) Press Ctrl+K to add a chord symbol
5) Type "Gmaj"
6) Click anywhere else to move focus outside the chord symbol text entry box
7) Save the file to a different name.
The result (for me, at least) was 100% repeatable and is shown in attached "DCD after adding chord symbol at measure 40.mscx". I was not able to reproduce this effect with a trivial score, so I'm not certain of the base conditions to reproduce.
What's wrong with the "after" case?
a) Instead of 7 linkedTo elements, there are now 6145.
b) Instead 25 (26 including the new one) Harmony elements, there are now 2072.
Adding further chord symbols or moving chord symbols or fret diagrams will eventually result in a crash. The only way I've found to prevent this is to edit the file in notepad++ and remove the duplicated linkedTo and Harmony elements, which is obviously not practicable.
This may be the root cause of https://musescore.org/en/node/89106.
(edited to avoid the element names being eaten--removed brackets)