Corruption/crash after repeating a 256th note or smaller

• Feb 12, 2021 - 20:24
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
  1. Enter a note anywhere in any score.
  2. Leave note input mode.
  3. Use the Q key to change the duration of the selected note to a 256th note.
  4. Press R to repeat the selected note. Notice that there are now too many rests in the measure, one of which is now included in the selection.
  5. Press R again. This will cause MuseScore to crash.

Comments

Status PR created fixed

Fixed in branch 3.x, commit c6423f21eb

_Fix #317425: Corruption/crash after repeating a 256th note or smaller.

Resolves: https://musescore.org/en/node/317425.

In the MIME data for a StaffList, the starting tick and tick length are encoded as integers, which is not sufficient when dealing with durations shorter than 1/128th. But there is really no reason for this, since ticks are stored internally as Fractions, and Fractions can be converted to and from strings without any loss in precision._