Crash on startup if user templates folder contains empty subfolders

• Jun 23, 2018 - 13:49
Reported version
2.3
Type
Functional
Severity
S2 - Critical
Status
closed
Project
  1. Do factory reset on MuseScore (it should subsequently open).
  2. 'MuseScore'>'Preferences'>'General'.
  3. Change Templates location folder to Desktop.
  4. 'OK'.
  5. Quit MuseScore.
  6. Open MuseScore.

Result: Crash (see attached log).

Note: It is also reproducible (in beta and nightly) if you change the location in 2.2.1.

Using MuseScore 2.3 Beta and 2.3 Nightly Build 8718b62 - Mac 10.11.6.


Comments

I can't confirm, but I wonder if somehow this might not just affect templates, because I had another crash and I don't know if I changed its location.

It was the same log though, I think.

I wonder if it's related to the actual contents of your desktop? Is this totally reproducible for you using that folder? What if you choose a different one - and empty one, perhaps?

Marc, I tried a new, empty folder called test, and I couldn't reproduce.

EDIT: After some more testing, I think it's because MuseScore doesn't like if there's a subfolder.

Title Crash after changing Templates location Crash on startup if user templates folder contains subfolders
Status (old) needs info active
Status needs info active

Thanks for the continued investigation. That was the clue I needed. Indeed, I got it crash just by adding an empty subfolder called "subfolder" to my empty Templates folder. The crash happens at the start of ScoreBrowser::setScores(), on the first line "qDeleteAll(scoreLists)". scoreLists appears to have trashed, not sure how. I'll let someone else investigate from here...

Title Crash on startup if user templates folder contains subfolders Crash on startup if user templates folder contains empty subfolders