Segfault due to faulty xml import

• Mar 1, 2019 - 08:44
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
Tags

Segfault happens on SVG export of the attached file, (mscore AllOfMe.xml -o aom.svg).
Digging into it is caused by _numOfDashes being 421660560 for a LyircsLineSegment.

An easy hotfix to stop segfaults is to edit LyricsLineSegment::LyricsLineSegment(Spanner* sp, Score* s) to set _numOfDashes(0) (and this will stop the segfault),
but the real underlying problem is that for some reason, layout is not called on the element before drawing. As the problem is fixed when the file is first converted to .mscz and then exported to svg, I assume it is due to an xml loading issue.

Attachment Size
AllOfMe.xml 1.94 MB