File Names & Corrupt File Error
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
1) Save a score with an upper case file extension (i.e.: .MSCZ).
2) Open MuseScore, and then attempt to open the score that has been saved with an upper case file extension.
You get this error:
If you choose [Ignore], you get an empty workspace.
Merely renaming the file with a lower case extension cures the problem.
Fix version
4.0.0
Comments
You're all but one, crashes and corruptions are critical, there's a (rather easy) workaround.
I still dont understand how you save a score with an upper case extension. I tried it and could not make it happen.
If I open a score in MuseScopre 3.6.2 on Wondows 10, go to File > Save as and in that dialog change to another directory, then change the ".mscz" to ".MSCZ" and hit "Save", the score does not get saved at all!
Only way I gould reproduce it it by using Windows WExplorer to rename the file.
Anyway, the fix is a simple one-liner for 3.x:
but quite a bit more involved for master AKA 4.x
That one-liner fix is part of my (huge) PR https://github.com/musescore/MuseScore/pull/9000, you might try the artifacts (AKA development builds) from that if you like. As no further 3.x is planned, it won't make much sense to make this a PR of its own.
I'll be working on a PR for master though.
FWIW: Works just fine with MuseScore 1.3, no error message with MuseScore 2.(0.0 - .2.3) but shows as an empty score, so this seems to be a regression since 2.0, with the slight improvement in 3.x to warn about the corruption.
It seems that really only the extensions .MSCZ and .MSCZ, (backup file) are affected by that, .MSCX, .MSCX, (backup file) and .XML, .MUSICXML, .MXL as well as the GuitarPro extensions (which use the same code as the one liner above already) all work properly.
See https://github.com/musescore/MuseScore/pull/9052
Fixed in branch master, commit 013afc0406
_Fix #324413: Allow importing files with uppercase extensions
Same method is used for GuitarPro .gtp, .pg and .gpx too._
Fixed in branch master, commit 2987c68932
_Merge pull request #9052 from Jojo-Schmitz/case-insensitive-extensions
[MU4] Fix #324413: Allow importing files with uppercase extensions_
Automatically closed -- issue fixed for 2 weeks with no activity.