MuseScore crashes when trying to open a no longer existing score
Reported version
3.x-dev
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
- Build MuseScore yourself, using a Debug setup (like using QtCreator/MinGW), using recent code from the master branch
- Set up MuseScore to restore last session
- Start it and open some score
- Close it and delete that score
- Start it again
- A dialogbos shows complaining aboutz a score that can't be found
- Continue
-> crash , due to a failed assertion:
Critical: "ASSERT FAILED!": data.isValid() in ...mscore/scoretab.cpp 1line 71
Workaround: revert to factory settings or place a score with the same name at the same place.
Won't crash in and non-Debug build, as there the assertion evaluate to a NOP
Happens since 0b0ea52d01
Fix version
3.5.0
Comments
See: https://github.com/musescore/MuseScore/pull/5916
Fixed in branch master, commit 43c4e5eb58
fix #303585 added return from restore session if failed read score
Fixed in branch master, commit b93f390f2a
_Merge pull request #5916 from igorkorsukov/tracker/303585_assert_on_reopen_removed_score
fix #303585 added return from restore session if failed read score_
Automatically closed -- issue fixed for 2 weeks with no activity.