Crash on loading a file with incomplete slur spanners and linked parts
I get a segfault:
This file was created by a precedent build.
Revision 82f1b1f
Compiled in Mageia (Linux)
Attachment | Size |
---|---|
TELL_ME_A_JAZZ_STORY.mscz | 8.89 KB |
I get a segfault:
This file was created by a precedent build.
Revision 82f1b1f
Compiled in Mageia (Linux)
Attachment | Size |
---|---|
TELL_ME_A_JAZZ_STORY.mscz | 8.89 KB |
Comments
Confirmed - thanks!
Using MuseScore 2.0 Nightly Build (f5dc176) - Mac 10.7.5.
crashes also under Mint14 64 bits, with the two revisions f5dc176 and 82f1b1f, my own compilations, uploaded on http://prereleases.musescore.org/linux/nightly/
The problem seems to lie in slurs (slur spanners?).
Indeed, by manually extracting the mscx file and deleting, by mean of a text editor, all slur instances, I managed to load the file.
Here is a retrieved version, saved with revision 4d17135 (Windows XP SP3, personal build).
Thanks for retrevied it.
Is the format illegal ?
[ For what concerns file format (if I understood the question):
mscz = compressed MuseScore file
mscx = uncompressed MuseScore file
The two formats are equivalent (there are maybe differences if embedded images are present). ]
If possible, can you try opening the file in one recent build and re-insert the slurs as they were in the original file?
Then can you save in a new file and post it here?
Thanks.
I am trying to understand where the problem comes from and if there may be incompatibilities between saving and loading files.
I am not sure if the retrieved file is a "legitimate" file or not. When loading, I see problem when toggling concert pitch on and off, but I am not sure if maybe this is a different bug not necessarily related to this specific file.
After more analysis, I found that the crash is due to the presence of some incomplete slurs, in particular slurs without end element.
Changing title accordingly.
Hello,
I added slur in the retrieved file, saved it. I join it.
It can yet be opened without problem. I suppose that a precedent version of mscore has altered the file.
82f1b1f
Thanks for the file.
Indeed, the file opens without problem. However, if I manually delete one of the Slur end element, there is a crash.
If the linked part is manually removed from the file, such crash disappears.
So I think that the crash is related to the presence of both an incomplete slur spanner AND a linked part.
Changing the title accordingly.
Could it be a conflict between the slur in the score and the slur in the linked part?
Submitted a pull request:
https://github.com/musescore/MuseScore/pull/216
which fixes loading of this file.
The presence of a second xml tag due to the presence of the linked part was originating a second loop over the list of spanners. This second loop was trying to access spanners which had already been deleted during the first loop (for the first tag). By deleting these incomplete spanners also from the list, the program no more tries to access them, thus avoiding the segfault.
Fixed in 5a2fcd7526
Automatically closed -- issue fixed for 2 weeks with no activity.