Dialogs on bad MusicXML and crash on non-existent file in converter mode

• Jan 21, 2015 - 17:55
Type
Functional
Severity
S3 - Major
Status
closed
Project

Comments

The crash when calling MuseScore in converter mode with a non-existing file has the following stack trace:

0 Ms::Score::setPrinting score.h 707 0xaa432a
1 Ms::MuseScore::savePng file.cpp 2286 0x56f7e1
2 Ms::MuseScore::savePng file.cpp 2275 0x56f788
3 Ms::processNonGui musescore.cpp 2128 0x4705db
4 main musescore.cpp 4885 0x480f9d

Probably best fix would be to check after mscore/musescore.cpp, line 2092 whether cs is valid, otherwise any of those saveXxx methods get call with and invalid pointer.