Inserting a note corrupts the bar when a staff has a local time signature

Open
#35,783 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend, desktop

Research direction

Reproduce the corruption using the two score setups and insertion steps in the issue; the report names no source files or tests. Start by tracing note insertion with Ctrl+I when a staff has a local time signature, then identify the affected code and any relevant tests. Done means saving either reproduced score no longer corrupts it.

Written by the indexing model from the issue text.

Description

corruption P2
Issue type

File corruption

Description with steps to reproduce

Part 1: inserting on the staff with the local time signature

  1. Create a new score for e.g. Oboe and Clarinet in B♭, in 4/4
  2. Ctrl+drag 3/4 from the Time signatures palette onto b.1 of the oboe (local time signature)
  3. Enter C D E as quarter notes in b.1 of the oboe
  4. Select the D, press N, then Ctrl+I (Insert input) and type F
  5. Save
    Result: Score is corrupted.

Part 2: inserting on another staff

  1. Create a new score for e.g. Flute and Oboe, in 4/4
  2. Ctrl+drag 3/4 from the Time signatures palette onto b.1 of the oboe (local time signature)
  3. Select the flute's rest in b.1, press N, then Ctrl+I (Insert input), and add a quarter note
  4. Press Esc, then save
    Result: Score is corrupted
Supporting files, videos and screenshots

PART 1:

https://github.com/user-attachments/assets/525f80c1-5961-48c4-8a65-614c7440a789


PART 2:

https://github.com/user-attachments/assets/1f478280-e811-4305-8044-53cae060fe22

In which versions of MuseScore Studio is this issue present?

Nightly main

Regression

No.

Operating system

macOS 27.2.1

Additional context

No response

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
Dominant language
C++
Stars
15.5k
Forks
3.5k
Avg merge
2d 19h
Merged PRs (30d)
124

Getting set up

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.

More from musescore/MuseScore

All issues in musescore/MuseScore

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.