crash on up/down arrow after entering new pitch for note in repitch mode

• Oct 25, 2013 - 20:26
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Windows 7, GIT commit: 47cd803

Using Promenade or any score:

1) click a single note
2) press N for Note Input mode
3) turn on repitch mode
4) press any letter to change pitch of current note
5) press Up to raise pitch further

Result: crash

Terminal error message:
Fatal: ASSERT: "noteIndex >= 0" in file C:\Users\Marc\Src\MuseScore\libmscore\undo.cpp, line 405

Sure enough, browsing with debugger a bit, it seems the note being passed to undoChangePitch points to a chord that does not contain that note. Guessing either the old note got passed in or else the new note is passed in but the chord hasn't been updated to contain it yet?

Note: step 4 is the key - up/down arrow keys work fine if you don't first change pitch with a letter key. Also, it works fine if you cursor away and then back between steps 4 & 5.


Comments