Infinite loop on some notes hangs strongly the program that becomes impossible to use

• Sep 11, 2017 - 09:48
Reported version
P1 - High
S1 - Blocker
needs info

2.1 version / Windows7

1) Open this file, XML file import (Harmony Assistant): Schubert Messe 1-Kyrie.mscz
(from this thread):

First result: an extreme slowness (a few minutes...) for opening and then for any edition of the file.

2) Now open this excerpt (the first five measures of the 2nd violin): Five measures.mscz
(note that already the slowness)

If you click on the first notes, everything is fine.
But by clicking on the first C of the measure 5 (image below), disaster: the playback fails, ie the C goes in an infinite loop and totally hangs/crashes the program.
do loop.jpg
The problem is identical for the Viola (first note of the fifth measure always), but not for the first violin.

3) By removing the content of this fifth measure (since the C can not be selected), and re-entering the content, everything is fine again: Kyrie2.mscz


Other aspect which deserves to be checked :
by removing the large part of the score (except the first page, the first 6 measures, in the hope of saving time for loading!), the file becomes impossible to open:
"Warning: load error ": Kyrie 1page.mscz

Attachment Size
Kyrie 1page.mscz 23.92 KB

The mscz file Schubert Messe 1-Kyrie.mscz in the top post contains over 172000 slurs... the MusicXML would be useful.

Five measures.mscz contains 65000 slurs... From there, everything can happen, and I'm not surprise there is a crash at one given moment.

Original file, XML format: Schubert Messe 1-Kyrie orchestre-transpose.xml

Main comment of the user:

"- This is the first time I have tried the functions of "Parts" in Musescore and it is true that I have quite "tweaked" my file by creating, deleting and modifying parts in order to understand the operation of this tool, very high performance.
I was trying to understand especially if the changes made in the main partition were automatically carried over to the parts, and vice versa. I'm not sure if everything will be transferred automatically, especially the layout settings. I will go into the question again.
- At first the file was responding normally and it was only after several manipulations that it became unusable."

In reply to by cadiz1

Importing that gives
Fatal error: line 144 column 18 Content of element midi-channel does not match its type definition: 0 is not valid according to xs:positiveInteger..

If ignored the reslting score is reported corrupt:
Measure 12 Staff 2 incomplete. Expected: 3/4; Found: 10/8
Measure 13 Staff 2 incomplete. Expected: 3/4; Found: 10/8
Measure 14 Staff 2 incomplete. Expected: 3/4; Found: 10/8
Measure 79 Staff 2 incomplete. Expected: 3/4; Found: 10/8
Measure 80 Staff 2 incomplete. Expected: 3/4; Found: 10/8
Measure 81 Staff 2 incomplete. Expected: 3/4; Found: 10/8

Status active needs info

The file is corrupted and cannot be loaded. Question is how the huge amount of slurs were created. That's the real bug and its not clear this can still happen in 3.x.