Crash opening vtest/tremolo-1.mscx

• Dec 14, 2018 - 13:15
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Trying to write new vtests. With current master from git even trying to preview vtest/tremolo-1.mscx musescore crashes.


Comments

Backtrace:

#0 0x00007fffebf99e97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007fffebf9b801 in __GI_abort () at abort.c:79
#2 0x00007fffec983fa7 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3 0x00005555566c1eba in Ms::Chord::tremoloChordType() const (this=0x5555599f7950) at /home/hvo/github/MuseScore/libmscore/chord.cpp:2862
#4 0x00005555567e1059 in Ms::renderTremolo(Ms::Chord*, QList&) (chord=0x5555599f7950, ell=...) at /home/hvo/github/MuseScore/libmscore/rendermidi.cpp:900
#5 0x00005555567e3dec in Ms::renderChord(Ms::Chord*, int, int, int) (chord=0x5555599f7950, gateTime=95, ontime=0, trailtime=0) at /home/hvo/github/MuseScore/libmscore/rendermidi.cpp:1616
#6 0x00005555567e4c98 in Ms::Score::createPlayEvents(Ms::Chord) (this=0x555559a9c760, chord=0x5555599f7950) at /home/hvo/github/MuseScore/libmscore/rendermidi.cpp:1803
#7 0x00005555567e4f3e in Ms::Score::createPlayEvents() (this=0x555559a9c760) at /home/hvo/github/MuseScore/libmscore/rendermidi.cpp:1828
#8 0x00005555569b4208 in Ms::readScore(Ms::Score
, Ms::XmlReader&) (score=0x555559a9c760, e=...) at /home/hvo/github/MuseScore/libmscore/read206.cpp:3693
#9 0x00005555569b4d3c in Ms::MasterScore::read206(Ms::XmlReader&) (this=0x555559a9c760, e=...) at /home/hvo/github/MuseScore/libmscore/read206.cpp:3783
#10 0x00005555569338d8 in Ms::MasterScore::read1(Ms::XmlReader&, bool) (this=0x555559a9c760, e=..., ignoreVersionError=false) at /home/hvo/github/MuseScore/libmscore/scorefile.cpp:961
#11 0x0000555556933026 in Ms::MasterScore::loadMsc(QString, QIODevice*, bool) (this=0x555559a9c760, name=..., io=0x7fffffffd7f0, ignoreVersionError=false) at /home/hvo/github/MuseScore/libmscore/scorefile.cpp:879
#12 0x0000555556932e70 in Ms::MasterScore::loadMsc(QString, bool) (this=0x555559a9c760, name=..., ignoreVersionError=false) at /home/hvo/github/MuseScore/libmscore/scorefile.cpp:866
#13 0x000055555633c570 in Ms::readScore(Ms::MasterScore*, QString, bool) (score=0x555559a9c760, name=..., ignoreVersionError=false) at /home/hvo/github/MuseScore/mscore/file.cpp:2238
#14 0x000055555632b370 in Ms::MuseScore::readScore(QString const&) (this=0x555559332660, name=...) at /home/hvo/github/MuseScore/mscore/file.cpp:341
#15 0x00005555560a1673 in Ms::loadScores(QStringList const&) (argv=...) at /home/hvo/github/MuseScore/mscore/musescore.cpp:3223
#16 0x00005555560c0912 in main(int, char**) (argc=2, av=0x7fffffffde98) at /home/hvo/github/MuseScore/mscore/musescore.cpp:7385

Status PR created fixed

Fixed in branch master, commit fd96abaacb

fix #280012: Crash fix for reading old MuseScore 206 files with tremolos.

Don't call createPlayEvents() at the end at of readScore() in read206.cpp anymore.