[Windows XP] Opening 1.2 score with non-ASCII characters in title causes crash

• Jun 18, 2012 - 19:23
Type
Functional
Severity
S2 - Critical
Status
closed
Project

MS nightly 2012-06-15-b2ef1ee.7z crash when open score that's created with MS 1.2
On Window XP, SP3, see attachments

Attachment Size
MS_Crash.jpg 15.92 KB
TestScore.mscz 5.92 KB

Comments

Title MS nightly 2012-06-15-b2ef1ee.7z crash when open score create with MS 1.2 MS nightly 2012-06-15-b2ef1ee.7z won't open score create with MS 1.2 in Windows XP

MuseScore doesn't crash.

Just won't open the file - subject altered accordingly.

The reason being that the Page General style had negative values - obviously the load in code needs adjusting to cope with this.

The attached version loads fine with these altered to 0

MuseScore 2.0 Rb2ef1ee/Windows XP Pro SP3

Attachment Size
TestScore1.mscz 5.9 KB

Unfortunalty it's not the cause... The main issue is that the title of the file is not ASCII. The MSCZ file contains a XML file containing the name of the MSCX file "Biển Xanh Tình Hồng.mscx". The entry in the zip file doesn't match and so MuseScore fails to open the zip file. It only happens on windows because of the way, windows deals with encoding and filenames...

@Churchorganist you solved this issue by extracting the MSCX file manually and save it again in MSCZ file after altering it in a text editor right ? Then, you also change the filename of the MSCX file embedded in the MSCZ and hide the first bug.

"@Churchorganist you solved this issue by extracting the MSCX file manually and save it again in MSCZ file after altering it in a text editor right ? Then, you also change the filename of the MSCX file embedded in the MSCZ and hide the first bug."

No I opened the file in 1.2, altered the Page General Style and then resaved it.

I did wonder whether it was the top bit set characters which were the problem.

Just opened the mscz files with 7zip and all has become clear.

When I resaved the file in 1.2 it changed the name of the file in the archive, so clearing the bug.

Negative numbers in Page General Style were nothing to do with it.

Just confirmed that merely resaving the file in 1.2 enabled it to load in Rb2ef1ee

Which begs the question is it the topbit set characters in the file name the original cause of the file not opening?

The answer to the above appears to be yes.

Just resaved the file in 1.2 with the title as the filename.

Rb2ef1ee then wouldn't open it.

1.2 will, so either there is code to handle this in 1.2 or it's not entirely a Windows problem?

My Linux box isn't running atm - it's dual boot and I had to reinstall Windows after changing the motherboard and haven't got round to reinstalling the Grub bootloader - so I can't test on that.

Title MS nightly 2012-06-15-b2ef1ee.7z won't open score create with MS 1.2 in Windows XP [Windows XP] 1.2 score with non-ASCII characters in title causes crash

Just changing the title - once we've established more details, feel free to change again.

Title [Windows XP] 1.2 score with non-ASCII characters in title causes crash [Windows XP] Opening 1.2 score with non-ASCII characters in title causes crash