Trying to open a locked GuitarPro (.gp) file crashes MuseScore
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:
-
Open Musescore
-
The Start Center window pops up. Click the "Open a Score..." button in the lower left-hand corner.
-
Navigate to wherever you've saved the "Biaxident (solo).gp" file and open it.
-
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
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?
Status "needs info" related to the question of the password?
Of course, the crash should not occur despite all.
Yes. Only with that or an unlocked version we can be sure that it is the lock that causes the crash.
In reply to Yes. Only with that or an… by Jojo-Schmitz
I got in touch with the author of the file who said that they won't provide the password for the file.
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.
See #317854: Program crashes when importing a locked Guitar Pro File
In reply to See #317854: Program crashes… by Jojo-Schmitz
Oops, that sounded vaguely familiar to me, but I had forgotten it!
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.
But as MuseScore has no locking, the only choice is to not read it at all
In reply to But as MuseScore has no… by Jojo-Schmitz
It's nothing to do with whether Musescore has locking or not.
I was just trying to shed some light on why the GP score may be locked.