musescore / musescore/MuseScore
Corrupted score when copying these measures in this specific score
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
Describe the bug
Copying m.112-113 from the flute part into m.112-113 of the piccolo part causes the score to be corrupted. See attached score:
To Reproduce
Steps to reproduce the behavior:
-
Open this score:
score 2 cleared everything.mscz.zip -
Select m.112-113 of the flute and copy it using Ctrl-C
-
Paste into the piccolo part at m.112 (or m.88) using Ctrl-V
-
Save score, close and reopen
-
Get corrupted file warning
Screenshots
Screenshot of the corrupted score:

Platform information
OS: macOS 12.5, Arch.: x86_64, MuseScore version (64-bit): 4.0.1-230121751, revision: github-musescore-musescore-9b70a8c
Additional context
Strangely enough, pasting these two measures into other parts of the score (I tested m.64 piccolo, m.114 piccolo, m.88 flute, m.114 piccolo) doesn't seem to cause corruption.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the attached “score 2 cleared everything.mscz” file: copy measures 112–113 from the flute part into the piccolo part, save, close, and reopen. Trace the part-measure copy/paste and score serialization paths; done means this specific operation no longer produces a corrupted-file warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100