Crash when closing a score after trying to delete a spacer on a reordered instrument

Aperta
#35,849 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ajuncosa ci sta già lavorando.

Dal 1/12/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

crash P1
Issue type

Crash or freeze

Description with steps to reproduce
  1. Create a score with two instruments
  2. Add a Staff spacer down to b.1 of the upper instrument
  3. In the Layout panel, move the upper instrument below the other one
  4. Select the spacer and press Delete

Result: The spacer isn't deleted.

  1. Close the score without saving

Result: Crash.

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/e9ee9ca0-8c61-4ab6-a153-05ef6fd1d709

In which versions of MuseScore Studio is this issue present?

Reproduced in 4.6.5, 4.7.7 and nightly main

Regression

No.

Operating system

macOS 27.2.1

Additional context
  • With #35184, replacing a spacer after reordering instruments is also affected: a spacer on another staff can be removed, and undo puts the original spacer back on the wrong staff.
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
Lingua principale
C++
Stelle
15.5k
Fork
3.5k
Merge medio
2g 19h
PR unite (30g)
124

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di musescore/MuseScore

Tutte le issue di musescore/MuseScore

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.