MXML export: crash with score starting with a multi-measure rest.
Context: Commit 151403416 (2014-09-18) self-compiled under Linux Mint 14.
Steps:
- Load the attached sample score test_mmrest2xml_1.mscx (a very simple score with just some MM-rests and one note);
- Export to MusicXML.
Result: the programme crashes.
Notes:
The crash happens within the m->system()->page()
function called at:
https://github.com/musescore/MuseScore/blob/master/mscore/exportxml.cpp…
as, in this context, some of the measures making up the MM-rest measure have no parent and then system()
returns null
.
Note that this does not happen if the MM-rest is not at the beginning of the system, as the other sample score attached, test_mmrest2xml_2.mscx, shows up.
Thanks,
M.
Attachment | Size |
---|---|
test_mmrest2xml_1.mscx | 23.27 KB |
test_mmrest2xml_2.mscx | 23.13 KB |
Comments
Does this still reproduce ? I just built the current trunk (commit d9bf96ba9a) on OS X 10.7.5), but do not get a crash wen exporting either file as MusicXML.
Note that all measures are exported as normal measures, I cannot get them to export as multi-measure rests. Am still investigating …
See #34046: [MusicXML] multi-measure rest not exported
I just updated sources a minute ago, and #1 crashes for me on Linux as advertised, same line.
The crash happens in a block of code protected by "doLayout"
https://github.com/musescore/MuseScore/blob/1fb21ebeaa65cc0f1d45954ef5b…
So, Leon, if you don't see the crash, it could be due to your settings?
Indeed, that explains it. I now get the same crash.
3740b47
Automatically closed -- issue fixed for 2 weeks with no activity.