Errors and crashes when opening a GP6 file directly.

• Jul 14, 2017 - 08:50

As the title. Attached the files as previous ones.
Forwarded this discussion from the Feature request as the following:

Posted by Javis English on July 14, 2017 - 7:22am
I attached two sample files of part of Bach's Goldberg variation 9. One GP6 and one MusicXML created by GP6. It was typed in two parts in GP6 with annotations of chords and notes, and exported as MusicXML.
It will be great if MuseScore can import GP6 directly. Please let me know how if it does. Thanks.
Good to hear that news. Looking forward to the next major version.

Attachment

Size
Sample, Variatio 9 Part1.gpx 25.07 KB
Sample, Variatio 9 Part1.xml 187.48 KB
reply

Posted by Jojo-Schmitz on July 14, 2017 - 7:56am

Interesting, MuseScore 2.1 crashes when trying to load the GPX file.

On loading the XML it 1st complains about

Fatal error: line 80 column 18 Element octave is not defined in this scope.

Seems GP6 has a flaw in ist XML Export. The offending line is

NaN

NaN, Not a Number...
Once that is ignored, MuseScore complains about

Measure 16 Staff 1 incomplete. Expected: 4097/4096; Found: 96/96
Measure v16 Staff 2 incomplete. Expected: 4097/4096; Found: 1/1
Measure 16 Staff 3 incomplete. Expected: 4097/4096; Found: 1/1

Once that is ignored too, it loads, but has the piano staves with swapped clefs, bass clef in top staff, treble cleff in bottom staff and also the drumset is imported quite badly
Not having encoded the octave correctly is likely the culprit here?

Trying to load the GPX in the lasted development build Shows

Debug: Unknown instrument: "a-piano-gs" (...\MuseScore\mscore\importgtp-gp6.cpp:425, void Ms::GuitarPro6::readTracks(QDomNode*))
Debug: GuitarPro6:findNumMeasures: bars 8 < numMeasures 12
(...\MuseScore\mscore\importgtp-gp6.cpp:545, int Ms::GuitarPro6::findNumMeasures(Ms::GuitarPro6::GPPartInfo*))

and crashes after that with stack trace

1 Ms::Element::setParent element.h 179 0xd5cc17
2 Ms::Segment::add segment.cpp 438 0x86310f
3 Ms::GuitarPro6::readBeats importgtp-gp6.cpp 1243 0x5776f1
4 Ms::GuitarPro6::readBars importgtp-gp6.cpp 1457 0x57b2cf
5 Ms::GuitarPro6::readMasterBars importgtp-gp6.cpp 1759 0x57e4f1
6 Ms::GuitarPro6::readGpif importgtp-gp6.cpp 1822 0x57f031
7 Ms::GuitarPro6::parseFile importgtp-gp6.cpp 248 0x56da1a
8 Ms::GuitarPro6::readGPX importgtp-gp6.cpp 232 0x56d95b
9 Ms::GuitarPro6::readGPX importgtp-gp6.cpp 204 0x56d6fe
10 Ms::GuitarPro6::read importgtp-gp6.cpp 1841 0x57f2eb
11 Ms::importGTP importgtp.cpp 2261 0x563948
12 Ms::readScore file.cpp 2166 0x5b474f
13 Ms::MuseScore::readScore file.cpp 329 0x5a4700
14 Ms::MuseScore::openScore file.cpp 310 0x5a45da
15 Ms::MuseScore::loadFiles file.cpp 291 0x5a42bb
16 Ms::MuseScore::cmd musescore.cpp 4766 0x49d9a0
17 Ms::MuseScore::cmd musescore.cpp 4620 0x49d02d
18 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 740 0x6b21ef
19 ZN11QMetaObject8activateEP7QObjectiiPPv 0x68c03046
20 ZN12QActionGroup7hoveredEP7QAction 0x21fc4d65
...

apparently on trying to add a fretboard diagram

Attachment Size
Sample, Variatio 9 Part1.xml 187.48 KB
Sample, Variatio 9 Part1.gpx 25.07 KB

Comments

In reply to by Jojo-Schmitz

@Javis English: after checking your score in GP6 (last version 6.2.0), I note in this comment some inconsistencies: https://musescore.org/fr/node/232776#comment-750596

Can you shed some light on the construction and use of your file?

Indeed, the Gp5 format (after export) displays two piano staves (the second is empty: why, how? ) and a drumkit staff.

But the Gpx file shows, in particular, that the second staff is filled with notes (why, how?)
and no drumkit staff in full score (F3 multipist feature)

In reply to by cadiz1

Okay, forget.
I can recover the drumkit with GP6 (no say why exactly, but it works: Add a new drumkit staff -> Delete the initial one -> F3 for multipist -> Undo: and so, I recover the good drumkit staff filled)

But it's not related to this problem. I think I just understood the source of this issue.

EDIT: A main problem (which causes the crash) and another thing unexpected.

Do you still have an unanswered question? Please log in first to post your question.