Crash on startup or on close last score
Lasted nightly (ac13db4) crashes immediatelly (continuing previous session, whatever was in there) or on close of (last) score.
Stack trace (self-built, Windows 7):
1 Ms::Timeline::setScoreView timeline.cpp 1326 0x4c458f
2 Ms::MuseScore::setCurrentScoreView musescore.cpp 1791 0x48aca7
3 Ms::MuseScore::setCurrentView musescore.cpp 1727 0x48a8b0
4 Ms::loadScores musescore.cpp 2543 0x48e38c
5 main musescore.cpp 6212 0x4a865b
Comments
Going back in the commits shows that this crash got introduced with a64198e, https://github.com/musescore/MuseScore/pull/3230
Crashes only if timeline is not active when closing last score
(Too?) Simple fix: in mscore/musescore.cpp line 1790 add a check for cv
It seems this is actually an issue with timeline() returning 0, thus causing the segfault on attempted access. Should be a simple fix, expect a PR in the near future.
While at that, although completly unrelated, I get the following warning:
Warning: QMainWindow::saveState(): 'objectName' not set for QDockWidget 0x29fa3a68 'Timeline; (:0, )
Seems something for you to work on too?
Shoot! I thought I set it. It must have been in a branch that I abandoned or something. I'll make sure to remove the warning.
Patch by JoshuaBonn1: https://github.com/musescore/MuseScore/pull/3237
Fixed in branch master, commit b648b29639
fix #231946: Crash on startup or on close last score
Fixed in branch master, commit de8605ff7f
Merge pull request #3237 from JoshuaBonn1/231946-timeline-crash-startup-close
fix #231946: Crash on startup or on close last score
Automatically closed -- issue fixed for 2 weeks with no activity.