[GP] Crash on a gpx file import
MuseScore 2.0.2 / Windows 7
1) Open this gpx (GP6) file: Coldplay - Clocks.gpx
Result: crash
By exporting the same file in gp5 format, its opening works as expected.
Coldplay - Clocks.gp5
MuseScore 2.0.2 / Windows 7
1) Open this gpx (GP6) file: Coldplay - Clocks.gpx
Result: crash
By exporting the same file in gp5 format, its opening works as expected.
Coldplay - Clocks.gp5
Comments
Problem seems to have something to do with an ottava, somehow we are confused about where it ends maybe. Do you see any unusual ottavas in the the original? There don't appear to be any in the gp5 version - or at least, MuseScore did not seem to recognize any.
Indeed, there is an ottava 8va... permanent over the top staff (vocals part).
But by opening the two files (gpx and gp5) with GP6, this ottava which extend on 162 measures (!) is the same, always present, and I don't see an unusual other thing, and another difference between the two files (after a first checking).
Well, after some effort, I can reproduce from scratch with GP6 a minimal crash - 1 measure, 2 staves :)
better than the initial file...!
Involving an ottava indeed.
Conditions:
1) File with a staff, and a note with ottava: test.gpx
Result at the opening: ok
2) Adding a second staff, but the measure is empty: test1.gpx
Result at the opening: ok
3) Adding a note in the measure of the second staff. Like this:
Result at opening of the gpx file: test2.gpx
Crash
If you delete the ottava: sans ottava.gpx
No crash.
That definitely is reproducible and with further investigations I found that the ottava parsing in MS GP6 import seems a bit broken. It behaves as if the ottava could never end. I'm currently designing a fix that we'll discuss in a PR.
I think I can assign that bug to myself.
Related PR : https://github.com/musescore/MuseScore/pull/2252
It definitely requires a code review.
PR got closed, unmerged, long time ago, so back to the drawing board?
emeric/eplanet has not been active since more than year, so I'm unassigning the issue
I both couldn't find inspiration and time to fix this issue… Maybe I'll work on it later, but I agree it should be unassigned to make room so that somebody can fix it.
See:
https://github.com/musescore/MuseScore/pull/2987
and
https://musescore.org/en/node/93116#comment-650991
I will add tests with the given files.
@cadiz1 or someone else with GuitarPro6:
could you please provide other simple files for tests, trying to cover different situations for ottavae?
Updated pull request:
https://github.com/musescore/MuseScore/pull/2988
See also comment https://musescore.org/en/node/93116#comment-651876
Fixed in branch master, commit 07c5181cb6
fix #70571 fix #93116 [GP6] crash when importing gpx ottava
Fixed in branch master, commit b92296da04
Merge pull request #2988 from AntonioBL/gp6ottava
fix #70571 fix #93116 [GP6] crash when importing gpx ottava
waiting for the fix for 2.1, in https://github.com/musescore/MuseScore/pull/2989
Fixed in branch 2.1, commit 6bb4fdf175
fix #70571 fix #93116 [GP6] crash when importing gpx ottava
Fixed in branch 2.1, commit df6ca35407
Merge pull request #2989 from AntonioBL/2.1
fix #70571 fix #93116 [GP6] crash when importing gpx ottava [2.1 branch]
Automatically closed -- issue fixed for 2 weeks with no activity.