Crash when Timeline is shown with enabled multimeasure rests
Current 3.0. dev. 90efb7f/ Windows10
1) "Untitled" score
2) Create parts -> New all -> Ok
3) Hit F12 (for opening Timeline)
4) Click on the tab for viewing part
Result: crash
- No matter if Navigator is also enabled (by default), or not (if you have unticked it before in View): same result with or without
Comments
This issue is related to multimeasure rests.
Indeed, if you swap the steps #3 and #4 (ie View part -> then hit F12), you get the same crash.
But if you do: View part -> press M (for disable multimeasure rests) -> Hit F12: it works.
But by pressing again M -> you receive again a crash
Well, in fact, I observe the "minimal" issue is only the association Timeline/Multimeasure rests.
No need to create parts.
1) "Untitled" score
2) Press M
3) Hit F12
Result: crash
Or so,
1) "Untitled" score
2) Hit F12
3) Press M
---> crash
Confirmed. Working on it now. Error found in Timeline::updateView(double, double). sys is found null with multimeasure rests but is not checked for null before using it. Upon using multimeasure rests, the visible measures is not updated on the timeline to show measures included in the multimeasure rest.
Fixed in branch master, commit 8f36ca8866
fix #230941: Crash when Timeline is showed with enabled multimeasure rests
Fixed in branch master, commit 042d5b495f
Merge pull request #3235 from JoshuaBonn1/230941-timeline-multimeasure-rests
fix #230941: Crash when Timeline is showed with enabled multimeasure …
thank you Joshua for fixing this. I should have checked this before telling you to make a PR.
Automatically closed -- issue fixed for 2 weeks with no activity.