Crash when opening this MIDI file

• Jan 18, 2017 - 18:53
Reported version
2.1
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Open attached file (taken from here ).

Result: Crash.

Using MuseScore 2.1 Nightly Build 4a34643 - Mac 10.11.6.

Attachment Size
guide.mid 9.63 KB
Crash when opening this MIDI file.txt 70.58 KB

Comments

master crashes too, stack trace:
1 Ms::Measure::getSegment measure.cpp 699 0x7cae20
2 Ms::MidiKey::assignKeyListToStaff importmidi_key.cpp 62 0x654a2b
3 Ms::MTrack::createKeys importmidi.cpp 596 0x6135f3
4 Ms::createKeys importmidi.cpp 988 0x6151ae
5 Ms::convertMidi importmidi.cpp 1149 0x615c3f
6 Ms::importMidi importmidi.cpp 1211 0x615fbe
7 Ms::readScore file.cpp 2133 0x5a245c
8 Ms::MuseScore::readScore file.cpp 331 0x59290b
9 Ms::MuseScore::openScore file.cpp 310 0x5927a8
10 Ms::MuseScore::loadFiles file.cpp 291 0x59246a
11 Ms::MuseScore::cmd musescore.cpp 4669 0x49de98
12 Ms::MuseScore::cmd musescore.cpp 4524 0x49d52e
13 Ms::MuseScore::qt_static_metacall moc_musescore_IKSZSQWDH4YDZS.cpp 733 0x693ca0
14 ZN11QMetaObject8activateEP7QObjectiiPPv 0x68a08942
15 ZN12QActionGroup7hoveredEP7QAction 0x1d1b5295
16 ?? 0x23140cc0
17 ZN7QAction8activateENS_11ActionEventE 0x1d1b4248
18 ?? 0x28c918
19 ?? 0x909001fb
20 ?? 0xa9c825ff
...

Also some debug Output, not sure whether it is related:
Debug: there is alread a type at 0 (...\MuseScore\libmscore\staff.cpp:955, Ms::StaffType* Ms::Staff::setStaffType(int, const Ms::StaffType*))
Debug: tick2measure 97920 (max 80640) not found (...\MuseScore\libmscore\utils.cpp:60, Ms::Measure* Ms::Score::tick2measure(int) const)

Edit: at least that last message is related, because tick2measure doesn't find tick 97920 , it Returns a nullptr and this gets dereferenced in the next step