Trying to open a locked GuitarPro (.gp) file crashes MuseScore

• Nov 4, 2021 - 23:08
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
duplicate
Regression
No
Workaround
No
Project

This happens on both the latest release (3.6.2.548021803) and on the latest nightly build (MuseScoreNightly-202111040428)

Steps to reproduce bug:

  1. Open Musescore

  2. The Start Center window pops up. Click the "Open a Score..." button in the lower left-hand corner.

  3. Navigate to wherever you've saved the "Biaxident (solo).gp" file and open it.

  4. MuseScore crashes and the Crash Reporter window pops up asking if you'd like to send a report.

Using the regular load score function (Ctrl+O or File>Open) yields the same result.

Expected behavior

  • I expect MuseScore to be able to open the file so that I can edit it and play it back like I would for any other score

Actual behavior

  • The entire program crashes

Version number

  • MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34

Operating System

  • OS: Windows 10 (10.0)
Attachment Size
Biaxident (solo).gp 225.65 KB

Comments

Stack trace:

1 Ms::GuitarPro6::findNumMeasures importgtp-gp6.cpp 663 0x847118
2 Ms::GuitarPro6::readGpif importgtp-gp6.cpp 2484 0x859d67
3 Ms::GuitarPro7::read importgtp-gp7.cpp 117 0x85d9b5
4 Ms::importGTP importgtp.cpp 2733 0x833c1e
5 Ms::readScore file.cpp 2407 0x4cc754
6 Ms::MuseScore::readScore file.cpp 474 0x4bce7c
7 Ms::MuseScore::openScore file.cpp 416 0x4bc93c
8 Ms::MuseScore::doLoadFiles file.cpp 349 0x4bc083
9 Ms::MuseScore::openFiles file.cpp 314 0x4bbccc
10 Ms::MuseScore::cmd musescore.cpp 6252 0x43184b
11 Ms::MuseScore::cmd musescore.cpp 6044 0x43077a
12 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 610 0x5eed5d
13 void doActivate(QObject *, int, void * *) 0x68b978bb
14 QActionGroupPrivate::_q_actionTriggered() 0x327e4cc2
15 QActionGroup::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x327e5299
16 void doActivate(QObject *, int, void * *) 0x68b978bb
17 QAction::activate(QAction::ActionEvent) 0x327e3df3
18 QAbstractButtonPrivate::click() 0x328c5ffb
19 QAbstractButton::mouseReleaseEvent(QMouseEvent *) 0x328c61d1
20 QToolButton::mouseReleaseEvent(QMouseEvent *) 0x3299b7fe
...

It seems MuseScore finds no measures in it

Title Trying to open GuitarPro (.gp) file crashes MuseScore Trying to open a locked GuitarPro (.gp) file crashes MuseScore

When opening this file with GP7, a warning indicates that the file is locked - see image below.
You can't edit it, nor export it to another format. I guess you must have a password for unlock it, and you don't have it? MuseScore has nothing to do with it, and I guess the crash is related to this lock?

unlock.jpg

Status "needs info" related to the question of the password?
Of course, the crash should not occur despite all.

The question then is, in order to prevent such a crash, how to detect whether a qp file is locked, emit an corresponding error message and not crash.
Or whether to simply take the fact that no measures are found to mean just that?

And, still, whether the crash really is related to the lock.

The only locked GP files that I've come across are ones that are locked because of copyright: I can view and play them in GP but cannot edit. So maybe Musescore should not try to circumvent this locking.