Shortening a measure one beat after another one causes crash
OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.0.0, revision: 7f19224
1) Load this file: measure test.mscz
2) Select first note C -> Ctrl + Del
3) Select second note D -> Ctrl + Del
4) Undo twice
Result: crash
- No matter the deleted notes and beats (3+4, or 1+3 etc). The crash occurs when deleting one note/rest + another one (ie in 2 steps), and Undo twice.
Comments
I think I've found a fix, but it seems a bit too simple: https://github.com/musescore/MuseScore/pull/3917
Crash and corruption are assigned to critical priority.
This is the same crash as described in #275805: Change actual duration after joining measures leads to crash, and my proposed fix for that issue fixes this one as well. The purpose of qFatal() is to catch errors and force us to correct them. We do not want to replace it with qDebug().
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.