Inability to show multi-measure rests in Continuous View

• Oct 15, 2016 - 08:02
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project

GIT commit: ac629b7 / Windows7

1) "My First Score"
2) Format -> General Style -> Tick "Create Multi-measure rests" -> Ok
First result in "Page View": as expected
3) Switch in "Continuous View"
Unexpected result: no MM rests shown
View continuous.jpg
4) "I" -> Add an instrument, eg Flute -> Ok

Result: crash


Comments

I see a change on May, 18.

With this Nightly: 26e443c, I get this result in Continuous View (MM rests shown, but unexpected end barline,
18 mai deuxième.jpg
which leads to this, after appending a measure (don't recall by now if it was another reported issue?)
after adding a measure.jpg
- And the change is here (no MM rests shown in Continuous View, which leads to crash) with this commit: b448ab9
18 mai première.jpg

Dies of a failed Assertion:
Fatal: ASSERT failure in QList::operator[]: "index out of range", file C:/Qt/5.6/mingw49_32/include/QtCore/qlist.h, line 535 (:0, )

Severity S2 - Critical S3 - Major

This issue goes back to a year and a half.
With the current 3.0 dev. ( b92a6e0), the step #4 (add an instrument) don't lead to crash.

Title Inability to show multi-measure rests in Continuous View leads to a crash Inability to show multi-measure rests in Continuous View
Status (old) patch (code needs review) fixed
Status fixed

Fixed in branch master, commit b259099300

fix #275552 fix#137501: Inability to show MM rests in Continuous View

1) The reason of crash is utilizing already deleted pointer. Each element are lying in tree. The parent of VBox element is System element. When we change mode to continuous view MS deleted all system elements and create new one. Then populate new tree with new system which root. But VBox is not shown in continuous view and MS do not set new parent for VBox. Sow VBox have pointer to deleted SYstem element. I fixed it.
2) Add header file to libmscore/CMakeLists. It doesn't effect on building, But it is necessary to include header files to Visual Studio IDE

3) Fix inability to show multi-measure rests in Continuous View see https://musescore.org/en/node/137501