Crash on load of score containing "one-plet"

• Dec 18, 2014 - 17:55
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Ubuntu 14.04, GIT commit: 3f842fb

1) empty score, 4/4
2) note entry
3) press 5 for quarter note
4) notes / tuplets / other
5) enter 1 & 4 into boxes - thus creating a "one-plet" (one sixteenth in the space of four)
6) OK
7) save
8) close
9) open

Result: crash. Duration fraction has zero denominator.

Reported in http://musescore.org/en/node/41701, with an attached (large) MusicXML file that contains such a "one-plet". Or at least, it does upon import - that might be a bug in the importer as well for all I know. But the steps above show this can be reproduced from scratch with no MusicXML involved.


Comments

The score, once written, lacks an "actualNotes" tag, because the correct value - 1 - is the property default. We could either change the default to something else - say, 0 - to force it to always be written, or we could initialize it to 1 upon reading. Or both. The first would mean we write more sensible tags in the future, the second would be a workaround for existing scores, should there be more than just the one in the forum.