[MusicXML import] incomplete import from ScoreScan XML file

• Jan 20, 2021 - 17:21
Reported version
3.6
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

I have saved a project from ScoreScan as a xml file.

When I load this file in Musescore some staves are empty and the piano staves are totaly empty trio 4 Danses Slaves 3.xml trio 4 Danses Slaves 3.xml

Attachment Size
trio 4 Danses Slaves 3.xml 734.55 KB

Comments

Quick investigation: caused by a MusicXML import bug. The parser gets out of sync when reading the notations element at line 4181 in the attached file. Structural issue, should be easy to fix.

Status PR created fixed

Fixed in branch 3.x, commit 9c35ca1070

_Fix #315904: [MusicXML import] incomplete import from ScoreScan XML file

Resolves: https://musescore.org/en/node/315904

An incorrect readNext() caused the MusicXML parser to get out of sync
if no white space is present between the end elements of fingering
and technical. This is legal but seems to occur only in files produced
by ScanScore. It results in incomplete import._

Fixed in branch 3.6.2, commit d954d283a1

_Fix #315904: [MusicXML import] incomplete import from ScoreScan XML file

Resolves: https://musescore.org/en/node/315904

An incorrect readNext() caused the MusicXML parser to get out of sync
if no white space is present between the end elements of fingering
and technical. This is legal but seems to occur only in files produced
by ScanScore. It results in incomplete import._

Can't really be the same, as this issue here is fixed in 3.6.2, that other is still happening there. And the symptom with the xml from this issue is different too,: on top of the corruption and empts staves (indeed fioxed in 3.6.2) it also reports invaild XML:

Fatal error: line 26 column 22 Element staff-layout is not defined in this scope.

More likely #317098: [MusicXML import] check code for white space issues?

Nah, it is #319210: MusicXML import detect corrupted file when the file is minified

Fix version
3.6.2