[Feedback Form] Crash on changing notes after transposition
"Ok - I was able to duplicate a crash. Here’s the scenario:
Import midi file.
Hide all instruments except violin.
Transpose to C
Attempt to move all notes up one step … crash
It is consistently repeatable."
I can reproduce on both 3.0.5 and master:
#0 0x0000000100a90583 in Ms::ScoreElement::isSystem() const at /Users/anatoly-os/Work/MuseScore/libmscore/scoreElement.h:290 #1 0x0000000100cbccf0 in Ms::toSystem(Ms::ScoreElement*) at /Users/anatoly-os/Work/MuseScore/libmscore/scoreElement.h:530 #2 0x0000000100cafb0d in Ms::Beam::system() const at /Users/anatoly-os/Work/MuseScore/libmscore/beam.h:102 #3 0x0000000100cafa39 in Ms::Beam::pagePos() const at /Users/anatoly-os/Work/MuseScore/libmscore/beam.cpp:123 #4 0x0000000100cafb39 in Ms::Beam::canvasPos() const at /Users/anatoly-os/Work/MuseScore/libmscore/beam.cpp:136 #5 0x00000001001460cf in Ms::Element::canvasBoundingRect() const at /Users/anatoly-os/Work/MuseScore/libmscore/element.h:245 #6 0x00000001011b7aa7 in Ms::changeSelection(Ms::Element*, bool) at /Users/anatoly-os/Work/MuseScore/libmscore/select.cpp:287 #7 0x00000001011b7848 in Ms::Selection::clear() at /Users/anatoly-os/Work/MuseScore/libmscore/select.cpp:306 #8 0x0000000100d58e26 in Ms::Score::upDown(bool, Ms::UpDownMode, bool) at /Users/anatoly-os/Work/MuseScore/libmscore/cmd.cpp:1520 #9 0x0000000100d60eaa in Ms::Score::cmdPitchUp() at /Users/anatoly-os/Work/MuseScore/libmscore/cmd.cpp:3063 #10 0x0000000100e24a88 in Ms::Score::cmd(QAction const*, Ms::EditData&)::$_124::operator()() const at /Users/anatoly-os/Work/MuseScore/libmscore/cmd.cpp:3676
In debug, the crash happens even earlier when you make instruments invisible one by one and you reach the last one:
Q_ASSERT(partiturList->currentItem() == item);