XML-Import Crash

• Jan 28, 2014 - 20:55

I got four MusicXML Scores which lead to a crash in MuseScore 1.3 and the 2.0Nightly.
One of the is attached .. if necessary, I can attach the others too ...

It is XML 3.0 from finale 2012. They load without problems into SmartScore and Harmony Assistant.

Thanks, Ernst

Attachment Size
Misa Tango - 2 Gloria.xml 1.82 MB

Comments

Confirmed, with a self build ea1e881
Debug output:
Debug: importMusicXml(0x235c31e8, .../Misa Tango - 2 Gloria.xml)
Debug: Validation time elapsed: 28582 ms
Debug: importMusicXml() file .../Misa Tango - 2 Gloria.xml' is a valid MusicXML file
Debug: MxmlReaderFirstPass::MxmlReaderFirstPass()
Debug: MxmlReaderFirstPass::parseFile() begin
Debug: part list
Debug: part 1 id 'P1'
Debug: part 2 id 'P2'
Debug: part 3 id 'P3'
Debug: part 4 id 'P4'
Debug: part 5 id 'P5'
Debug: part 6 id 'P6'
Debug: part 7 id 'P7'
Debug: part 8 id 'P8'
Debug: part 9 id 'P9'
Debug: part 10 id 'P10'
Debug: Parsing time elapsed: 412 ms
Debug: MxmlReaderFirstPass::parseFile() end
Debug: system distance 10.300000
Debug: MusicXml::xmlScorePart: instruments part P1
Debug: MusicXml::xmlScorePart: instrument id P1-I10 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:148 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P2
Debug: MusicXml::xmlScorePart: instrument id P2-I1 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:166 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P3
Debug: MusicXml::xmlScorePart: instrument id P3-I2 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:184 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P4
Debug: MusicXml::xmlScorePart: instrument id P4-I3 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:202 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P5
Debug: MusicXml::xmlScorePart: instrument id P5-I4 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:220 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P6
Debug: MusicXml::xmlScorePart: instrument id P6-I5 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:238 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P7
Debug: MusicXml::xmlScorePart: instrument id P7-I6 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:256 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P8
Debug: MusicXml::xmlScorePart: instrument id P8-I7 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:274 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:283 col:18 part-group:part-list:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:284 col:26 part-group:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P9
Debug: MusicXml::xmlScorePart: instrument id P9-I8 name ARIA Player
Debug: <.../Scores/Misa Tango - 2 Gloria.xml>:line:297 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: MusicXml::xmlScorePart: instruments part P10
Debug: MusicXml::xmlScorePart: instrument id P10-I8 name ARIA Player
Debug: <.../Misa Tango - 2 Gloria.xml>:line:314 col:19 score-part:part-list:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:328 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:467 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:626 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:984 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1269 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1349 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1426 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1560 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1597 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1720 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:1978 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:2456 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:2533 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:2601 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:2709 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Scores/Misa Tango - 2 Gloria.xml>:line:2813 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:3037 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:3135 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:3203 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:3283 col:21 print:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:4729 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:7744 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:7766 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:10485 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:10578 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:10761 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:10886 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:11029 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:12705 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:12727 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:15479 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:15559 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:15745 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:15865 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:16020 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:17462 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:17484 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:20268 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:20349 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:20506 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:20626 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:20802 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:22889 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:22911 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:25631 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:25712 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:25851 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:26048 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:26309 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: ImportMusicXML: unknown clef
Debug: <.../Misa Tango - 2 Gloria.xml>:line:28390 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: <.../Misa Tango - 2 Gloria.xml>:line:28412 col:18 key:attributes:measure:part:score-partwise:: Unknown Node , type 1
Debug: too much lyrics (>8)

I believe the culprit is the lyrics to Bariton starting measure 23, it is 9 lines of lyrics, the first 8 being empty! Or Bass, same measure, it has even 11 lyrics lines, 10 empty!
MAX_LYRICS is 8 in MuseScore' s MusicXML import, and the place where this gets detected lacks a 'return;' so later a just deleted instance gets dereferenced.

Why that many empty lines?

In reply to by Jojo-Schmitz

> Why that many empty lines?

There are 8 "voices" in the score; they sing at different times:
Mezzosoprano Solo
Bariton Solo
Soprano
Mezzosoprano
Alto
Tenori
Baritoni
Bassi

I don't know, why there are 11 lyrics lines.

Attached you will find the pdf of the score in finale (before xml-Export). Some lyric lines look (are) misplaced, that is, because the score originally stems from SmartScore.
The main goal of the project is not to have a good looking score (since we have it in paper form) but the playing of the score in order to learn the different voices for our choir.
However, the xml imports fine into Harmony Assistant or in SmartScore.

Ernst

Attachment Size
Misa Tango - 2 Gloria.pdf 1.09 MB

In reply to by Jojo-Schmitz

Lyric numbers are incorrect, they should be unique for a part, but are unique for the score. The first part uses lyric number = 1, the second lyric number = 2 etc. As a result MuseScore assumes the first part has one line of lyrics, the second part has two lines (first one empty) until the last part, which seems to have 11 lines of lyrics.

The lacking return is what causes the crash.

Workaround available in pull request 675.

In reply to by Leon Vinken

Hi Leon
Thanks for your work!
I don't exactly understand what you mean but it sounds "similar" to what I found out just before.

The score came with the Lyrics from SmartScore.
There was one score from the same mass, which worked without problems.
I did a comparison between the one which worked and the others which failed in MS-import.

In finale there are three distinct type of lyrics: for each Verse, Chorus or Section.
The one which worked, had all the lyrics for each of the 8 voices in the same Verse (No 1).
The Lyrics of the other scores (the one I posted in my first post, with the problem, was one of it) have the lyrics of each voice split into verses. That means, that the lyrics of Mezzosprano Solo (the first voice) shows up in the textwindow for Verse 1. The lyrics for Baritone Solo Show up in Verse 2 etc.
I don't know if this "splitting up" in verses is done by SmartScore's (XML-Export) or by finales import.

Regarding the score I posted first:
Meanwhile I also found some "false lyrics" - these were 3 fractions of wrongly as text recognised score-parts by SmartScore. They were placed as additional verses - which lead to 11 lines I guess: One line for each of the 8 voices (From Mezzosoprano to Bassi) plus three "false lyrics fractions". I have removed this fractions. However, they still won't import in MuseScore. I guess, there are still 11 lines - since when I import this xml in Harmony Assistant and try to play it with the virtual voice function, Harmony Assitant tells me that it computes 11 human voices - and fails in this.
BUT: When I import the xml (where I have removed the wrong fractions) into finale, the lyrics of the 8 voices have moved to the verse numbers 1 to 8. I can see, that there are somehow still 3 empty verses. After I export this from finale into xml I can open it in MuseScore. However - the lyrics look misplaced.

I will attach three scores.
A) the one which did work from start, which all the lyrics in the same verse (after opening it in finale). This file is directly after SmartScore export (hasn't been in finale yet)
b) the one I posted in my first post - but this time after removing the three junk-lyric-parts. It is also after SmartScore export
c) the file under b) but after importing it into finale and exporting it again into xml. This is the one which opens in MuseScore.

By the way: My workaround for the moment will be in removing all the lyrics in finale and then exporting into xml. The xml files are needed by my choir-colleagues and the lyrics are not too important. I can't use the file like I attach under c) because SmartScore at the moment has another serious xml-export problem. (look at here http://bsmartscoreusertechresources.runboard.com/t10897 ). In finale I have corrected all the instances of wrong exported notes of SmartScore and I don't want to repeat this ...

I hope you can understand what I mean - English is not my first language and I'm living in a German speaking country ... - sorry.

Attachment Size
Scores.zip 177.97 KB

Do you still have an unanswered question? Please log in first to post your question.