Crash of MuseScore 3 on opening a certain 2.x score
Reported version
3.0
Priority
P1 - High
Type
Performance
Frequency
Once
Severity
S1 - Blocker
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
Hello,
I just tried to open a Musescore 2 file of this:
https://musescore.com/user/6105546/scores/2592131
But Musescore 3 always refuses to open it. When I open it again, Musescore quits after asking yes or no of an unnormally opened file. What's wrong?
Regards
Haipeng
Fix version
3.0.1
Comments
That score got created (or rather last saved) with MuseScore 2.0.3. Attached here in case it gets removed or changed on musescore.com.
Exporting as musicxml in 2.3.2 (attached) and importing that in 3.0 works (after ignoring a MusicXML error reg. some figured bass element, guess we need a separate issue for this), so this might serve as a workaround (as does opening it with 2.x).
Latest master build crahes on it too. 'fammous last words':
Fatal: ASSERT: "!isEmpty()" in file C:/Qt/5.12.0/mingw73_64/include/QtCore/qvector.h, line 237 (C:/Qt/5.12.0/mingw73_64/include/QtCore/qvector.h:237, )
the musicxml import issue is now reported in #281133: [MusicXML] Score exported to XML doesn't import back cleanly
In reply to the musixxml import issue is… by Jojo-Schmitz
...is not reported in...
...is now reported in...
oops
The easiest way to prevent this crash is to add these lines at the beginning of Beam::addSkyline()
I don't know why a beam's beamSegments list would be empty, but I feel good about this solution because these two lines appear at the beginning of Beam::draw(), and they were added by Werner on 25 October 2016.
See https://github.com/musescore/MuseScore/pull/4531.
Fixed in branch master, commit 004a31af62
fix #281130: Crash of MuseScore 3 on opening a certain 2.x score
Fixed in branch master, commit c38df7ab53
Merge pull request #4531 from mattmcclinch/281130-no-beam-segments
fix #281130: Crash of MuseScore 3 on opening a certain 2.x score
In reply to Git webhook message by Git Message
This sounds suspiciously like a problem I had shortly after the alpha was released. @mattmcclinch, I thought you said you ran across the same issue when I was making some beams horizontal. You fixed it so the score would open, but I can't find the issue right now.
I believe you are referring to #276139: Using Inspector after leaving edit mode causes crash..
Well, really Opening file leads to crash in 3.0.
Also, I discovered that Musescore 3 files have no bar numbers when stating measures, while 2 have. This Stravinsky work has two bar number changes so that every piece starts from bar 1. But Musicxml exports all bars continuously, without any resets. So should I open another issue to say this?
Haipeng
Haipeng, I don't see how this relates to the issue in this subject. Start a thread in the General discussion forum.
@matt, I remember a file I couldn't open, and I thought it was you that fixed it, but it might have been someone else and there may not have been an issue but rather only a forum post.
Yes, it was me, and it was the forum post I linked to above.
Ok, I'll try to describe the measure numbers in general discuss. Now I'm a bit afraid to use Musescore directly to convert into Musicxml, for I just found there are lots of texts missing when exporting. E.g., there are texts attached to hairpins, the "simile" at the 3rd bar of movement 2 and the cresc. near the beginning of movement 3. I need to create text tags out of the hairpins to use them. Perhaps this can be an issue.
Haipeng
I looked at the issue and it blinded my to the forum post.
a prime example of what happens when a forum post about a genuine bug gets forgotten to get entered into the issue tracker :-/
Had it been, this issue would probably been fixed before any Beta release...
Not accusing anyone, just noting and putting emphasis on the importance of the issue tracker
Automatically closed -- issue fixed for 2 weeks with no activity.