Crash upon creating a new score

• Jun 20, 2018 - 00:08
Reported version
S2 - Critical

When selecting a template in the New Score Wizard, after clicking one, Musescore instantly crashes.

Steps to recreate:
1. Open Musescore (version 2.2.9), and open the New Score Wizard
2. Click next until you reach the templates.
3. Click on one.
This will cause Musescore to crash. Not sure what causes it though.
(OS: Windows , Arch.: x86_64, MuseScore version (32-bit): 2.2.9, revision: 3bb48cb)


Confirmed using Treble Clef template. Note: I have installed the MDL extension, suspect OP has as well? Crash happens drawing the keysig palette, presumably in the next screen of the wizard, because the score is null. No idea why that would have changed.

Same here, but without reset to factory (i.e. installed and then removed MDL, and crashes on every template)

As per the crash log it crashes in Ms::ScoreBrowser::setScores(QList<QFileInfo>&)

I guess the origin of this issue has been identified.
If need to be confirm, I see the change yesterday, June 19 (some commits related to "an easy way to install soundfonts, templates etc.")

This nightly works : 9aa4bb2
Crash with the next one: d41ed2a

Stack trace is somewhat surprising:

1 QSharedDataPointer::operator-> qshareddata.h 69 0xca9a0c
2 Ms::MStyle::spatium style.cpp 1625 0x7ae9af
3 Ms::Score::spatium score.h 883 0xcaffd6
4 Ms::Element::spatium element.cpp 227 0x7cc407
5 Ms::KeySig::layout keysig.cpp 91 0x8c6cca
6 Ms::Palette::paintEvent palette.cpp 851 0x4bc6a4
7 ZN7QWidget5eventEP6QEvent 0x1cc9bcc0
8 ?? 0x3271dc3b
9 ntdll!RtlFreeHeap 0x770df570

Trying to layout a keysig of a score that doesn't yet exist?

Title Crash upon selecting a template in new score wizard Crash upon creating a new score

It is not just on creating a new score from a template, but also when selecting instruments.

I have the same issue in this 2.3-dev version. But it's not just templates, it's also if i add the instruments manually in the new score wizard. If I add an alto saxophone, and click next, the application crashes. Should I just wait and reinstall the 2.3-dev version?