MIDI import: Crash when changing to swing
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
- Open attached MIDI (from [[http://musicnoteslib.com/tabs/Whitney_Houston-Just_The_Lonely_Talking_A…|here]]).
- Change 'Detect swing' in the 'All' column of the MIDI Import Panel to 'Swing (2:1)'.
- 'Apply'.
Result: Crash (see attached log).
Note: Reproducible in MuseScore 2.1.
Using MuseScore 2.2 Nightly Build 437001d and 3.0 Nightly Build 49cf62c - Mac 10.11.6.
Attachment | Size |
---|---|
Crash when changing to swing.mid | 53.71 KB |
Crash when changing to swing [Log - 2.2 Nightly Build].txt | 73.38 KB |
Comments
FWIW, in master at least, the problem seems to have something to do with a nested tuplet, where the inner tuplet has a bad value for its parent.
This problem is related to another: if you save the imported midifile as .mscz (I mean right before crashing), the saved file is corrupted. Even when you don't change any import option. Try it yourself with the attached sockhop midifile.
Problem 1: import it in MuseScore (any version) then save as .mscz, then close the file and open the .mscz file ==> Result: file corrupted
Problem 2: import again, turn the swing option on and play the song ==> MuseScore crashes after a few seconds
These problems occur with many midifiles.