XML Import of certain malformend file crashes MuseScore 3

• Jan 23, 2019 - 10:41
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
Yes
Workaround
Yes
Project

Steps to reproduce:
mscore viva.xml -o viva.ogg
or from UI: file->export -> (choose .ogg as type)

gdb shows the error is due to Tremolo.

Opening the xml with mscore shows that it is slightly malformed but it still opens it correctly.
If it is then saved as mscz file, then opening that mscz file also causes a segfault.

As the XML is shown to be malformed, I'd guess its a minor issue, but segfaults might be indicative of some deeper bugs.


Comments

The XML indeed is malformed:

Fatal error: line 107136 column 18 Content of element duration does not match its type definition: Double content does not match the minExclusive facet..

When ignoring that it reports corruption:

Measure 20, staff 5 incomplete. Expected: 67/64; Found: 401/384
Measure 20, staff 6 incomplete. Expected: 67/64; Found: 401/384
Measure 20, staff 8 incomplete. Expected: 67/64; Found: 401/384
Measure 20, staff 9 incomplete. Expected: 67/64; Found: 403/384
Measure 85, staff 20 incomplete. Expected: 67/64; Found: 203/192
Measure 85, staff 26 incomplete. Expected: 67/64; Found: 203/192
Measure 118, staff 1 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 2 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 3 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 4 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 5 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 6 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 7 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 8 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 9 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 10 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 11 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 12 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 13 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 14 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 15 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 16 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 17 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 18 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 19 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 20 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 21 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 22 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 23 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 24 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 25 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 26 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 27 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 28 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 29 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 30 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 31 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 32 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 33 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 34 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 35 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 36 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 37 incomplete. Expected: 4545/4096; Found: 71/64
Measure 118, staff 38 incomplete. Expected: 4545/4096; Found: 71/64

After that all bets are off. You'd need to fix the corruptions first, which ma not be possible, as when ignoring those MuseScore 3.0.1 just crashes.

Not debating that fact.
More of a meta question but should it load the xml at all in this case, especially considering common things like exporting ogg and saving as mscz then lead to segfaults?
Also, a meta-meta question: should I report cases like this in the future? We often get malformed xml where I work, so this is likely to come up again.

Title XML file export to ogg causes segfault XML Import of certain malformend file crashes MuseScore 3

It is not the OGG export but the XML import causing the crash

Ok, thank you. I was running the stable release 3.0.1.
Could you also answer regarding my meta-meta question about reporting such things in the future?