[GP6] Crash on a file involving arpeggios, ties and capo feature

• Feb 19, 2017 - 13:42
Reported version
2.1
Type
Functional
Severity
S2 - Critical
Status
closed
Project

This guitar PRO file downloaded from James Bartholemew's website crashes Musescore when I attempt to open it. It will crash both 2.0.3 and 3.0.0 unstable under Windows. The file was downloaded here: https://static1.squarespace.com/static/58407949725e25370863b59e/58408cd…
and I've also attached the offending file.

Attachment Size
Photograph.gpx 49.11 KB

Comments

Stack trace in master (d93ac18):

1 Ms::Note::tieFor note.h 404 0xdbdc0c
2 Ms::Note::lastTiedNote note.cpp 2873 0x7e79be
3 Ms::Note::playTicks note.cpp 912 0x7de2ee
4 Ms::renderArpeggio rendermidi.cpp 857 0x8d2c03
5 Ms::renderChord rendermidi.cpp 1466 0x8d4954
6 Ms::Score::createPlayEvents rendermidi.cpp 1636 0x8d55f2
7 Ms::Score::createPlayEvents rendermidi.cpp 1661 0x8d5815
8 Ms::Score::doLayoutRange layout.cpp 3395 0x874d8f
9 Ms::Score::doLayout layout.cpp 3372 0x874b7c
10 Ms::importGTP importgtp.cpp 2450 0x54bd97
11 Ms::readScore file.cpp 2129 0x5979c2
12 Ms::MuseScore::readScore file.cpp 329 0x587dd4
13 Ms::MuseScore::dropEvent musescore.cpp 1966 0x48c0f9
14 ZN7QWidget5eventEP6QEvent 0x1ef6de01
15 ?? 0x28c548

Title Guitar Pro file crashes musescore [GP6] Crash on a file involving arpeggios, ties and capo feature

I have not quite settled this issue (not try by now to reproduce from scratch, no sure to succeed because there is a few entangled things apparently), but I probably have made good progress.

There is an incredible bunch of ties in this file (I do not know how this file was entered in GP ... but that's another story)
See the pdf of this file: Photograph.pdf

So, I managed to isolate two measures where the problem occurs.

- Load this file: with arpeggio and capo indication: 1 with arpeggio.gpx
Pdf file: 1 with arpeggio.pdf

Result: crash

- Load this second file: without arpeggio and always with capo indication: 2 without arpeggio with capo.gpx
Pdf file: 2 without arpeggio with capo.pdf

Result: crash

- Load this third file: without arpeggio and deletion of capo indication: 3 without arpeggio and capo.gpx
Pdf file: 3 without arpeggio and capo.pdf

Result: okay

BUT, now: add an arpeggio eg on the first chord: select F # -> double-click on an arpeggio

Result: crash

- So, now:
1) export this file in XML format: 3 without arpeggio and capo.xml
You note this format fixes the crash when you add an arpeggio eg on the first chord
2) Create parts
3) View part

Result (don't know by now if it's really related in a manner or another): three unexpected "orphan" (or falses?) ties which begin at the middle of the first measure and extend to the end of the second measure.
Sans titre 1.jpg