musescore / musescore/MuseScore

Corrupted score when copying these measures in this specific score

Open
#15,959 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

corruption
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:

  1. Open this score:
    score 2 cleared everything.mscz.zip

  2. Select m.112-113 of the flute and copy it using Ctrl-C

  3. Paste into the piccolo part at m.112 (or m.88) using Ctrl-V

  4. Save score, close and reopen

  5. Get corrupted file warning

Screenshots
Screenshot of the corrupted score:
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.