Crash by switching in Continuous View when a tie extends in another system

• Jul 30, 2017 - 17:22
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Having a score with violin as instrument for 2 staffs (that means, used twice in 2 different staffs). Now I call "edit->instruments" and removing the 2nd staff using violin. If saying OK, mscore crashes.

You can try this in the attached score by removing the Violin for the V2 staff.

This will not happen if only 1 staff uses an instrument, for example if removing the ViolinCello instrument in the VC staff.

Platform: LINUX Fedora 26, x86_64, all updates applied. 1. Satz.mscz


Comments

Status (old) needs info active

Ok, here I can by deleting the piano (first instrument) and cello (last one) in the attached score.
But I can't reproduce yet from scratch.

Also with: untick "Visible" the piano -> Ok -> Undo

Title removing an instrument from the instruments and then saying OK: mscore will die. Remove a instrument if a tie extends on another system in second instrument causes a crash
Status (old) needs info active

ec9be4b / Windows10

From scratch, steps:

1) Create a score for piano and violin (4 measures only)
2) Enter 16th notes in the top staff until a second system is created, approximately from the middle of the third measure
3) Enter a whole note, measure 3 violin staff, and hit "+" for adding a tie (so it extends to the second system)

- The test file at this step: test piano violin.mscz
- Another one with "Untitled" score 4 measures + flute: test untitled flute.mscz

4) "I" -> Remove the piano -> Ok

Result: crash

- No issue if no tie between the two G in violin staff

Title Remove a instrument if a tie extends on another system in second instrument causes a crash Remove an instrument if a tie extends on another system in second instrument causes a crash

It seems the attachment 1. Satz_4_5.mscz differs in some way from my primarily attached 1. Satz.mscz.

My result: crash with 16c32ca using my original 1. Satz.mscz, but not if using 1. Satz_4_5.mscz.

I found out that I can provoke a crash too if selecting all measures for the V2 staff and then entering the CtrlDel key (I used this shortcut previously for "removing" all measures in the V2 staff)

No, MuseScoreNightly-201707301802-master-16c32ca-x86_64.AppImage does not crash if I remove the Violin instrument in the V2 (with edit instruments) staff and confirming with OK!

Sorry for inconvience: I had attached the wrong score: I attached now the right one (from Mozart's little nightmusic), and here, removing the violin from the V2 staff and confirming with OK, lets MuseScoreNightly-201707301802-master-16c32ca-x86_64.AppImage crash.

Attachment Size
1. Satz.mscz 48.19 KB

Thanks very much for the hint! But it's not forbidden to make a tie between these 2 notes spanning over 2 pages, I think :-)
I could get rid from my problem by inserting a page break in measure # 80.

Who said it was "forbidden to add a tie between 2 notes spanning over 2 pages"? No one.

Remember that you are working with a development version, always unstable and prone to this kind of disadvantage.
And from what I see, there has been a new implementation of the ties and their editing recently.

Keep in mind that the best way to avoid this is to work (especially on scores of this magnitude) with a stable version.

Title Remove an instrument if a tie extends on another system in second instrument causes a crash Crash by toggle in Continuous View when a tie extends on another system

GIT commit 6c735b8/ Windows10
Minimal sequence of steps for reproduce (no need to have two instruments, and to delete something: that was another aspect of this issue)

So:
1) "Untitled" score
2) Enter a whole note in measure 4
3) Press "+" to tie another whole note in measure 5 (next system)
tie system.jpg
4) Switch in Continuous View

Result: crash

Title Crash by toggle in Continuous View when a tie extends on another system Crash by switching in Continuous View when a tie extends in another systemCrash by toggle in Continuous View when a tie extends on another system
Title Crash by switching in Continuous View when a tie extends in another systemCrash by toggle in Continuous View when a tie extends on another system Crash by switching in Continuous View when a tie extends in another system

Oops...! :)