Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bogus and useless corruption message #20728

Open
Jojo-Schmitz opened this issue Dec 27, 2023 · 14 comments · May be fixed by #26053
Open

Bogus and useless corruption message #20728

Jojo-Schmitz opened this issue Dec 27, 2023 · 14 comments · May be fixed by #26053
Assignees
Labels
needs review The issue needs review to set priority, fix version or change status etc. regression MS3 Regression from MS3 (3.6.2) UI Visual issues affecting the UI (not notation)

Comments

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Dec 27, 2023

Issue type

UI bug (incorrect info or interface appearance)

Bug description

No response

Steps to reproduce

Open the score from https://musescore.org/en/node/358354
(or the one attached here Alimento Espiritual.zip)

Error message:
image

No filename, no error detail.
From the log.

2023-12-27T16:53:02.455 | ERROR | main_thread | Read410::readScore410 | MSCX Fehler in Zeile 0: Ungültige Taktlänge: 1728/768
2023-12-27T16:53:02.456 | ERROR | main_thread | NotationProject::load | failed load, err: [2010] Die Datei „“ ist kritisch beschädigt und kann nicht bearbeitet werden.

Proper details, except for the wrong line number and, again, the missing filename.

Mu3 (rightfully!) reports (on the mscx, resp. Mu3.7 on the mscz):
image
Filename, line number and the error itself

How the score got into that corrupt state is a different issue... the score stems from Mu 4.1.1

Screenshots/Screen recordings

No response

MuseScore Version

4.2.0

Regression

Yes, this used to work in MuseScore 3.x and now is broken

Operating system

Windows 11

Additional context

We should at the very least give the same detailed error messages as Mu3 did

As a bonus: don't stop at the 1st error, but report them all...

Even better: automagically fix them, by reducing. In this case from 1728/768 to 9/4

@muse-bot muse-bot added regression MS3 Regression from MS3 (3.6.2) UI Visual issues affecting the UI (not notation) labels Dec 27, 2023
@Jojo-Schmitz Jojo-Schmitz changed the title Bogus and useless coeeuprion message Bogus and useless corruption message Dec 27, 2023
@bkunda bkunda assigned cbjeukendrup and unassigned Eism Dec 29, 2023
@bkunda bkunda added the needs info More information is required before action can be taken label Dec 29, 2023
@bkunda
Copy link

bkunda commented Dec 29, 2023

@cbjeukendrup could you please investigate this?
I recall the reason for this dialog variant was that MS4 couldn't actually open the file at all (as opp. to the "open at your own risk" variant).

@Jojo-Schmitz
Copy link
Contributor Author

Whether Mu4 can open the file or not is not really relevant here, this issue is about the error message being wrong, incomplete and useless

@Jojo-Schmitz
Copy link
Contributor Author

In https://musescore.org/es/node/358525 you'd find another score corrupted in this way

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Jan 6, 2024

Another occurrence in https://musescore.org/en/node/358820

Here with a measure len of 12/128, easily reduced to 3/32

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Feb 1, 2024

And another, https://musescore.org/en/node/360049

We'd still need another issue for those bogus measure durations, but I have no idea how to reproduce this.

Although reducing them seems a good step.

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented May 16, 2024

Came up in https://musescore.org/en/node/364069 again

Here a measure len of 1680/1920, which could (and should) get reduced to 7/8 automagically

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Dec 3, 2024

Came up again in https://musescore.org/en/node/372371

In this case reducing the bogus len of 200/320 to 10/16 fixed the issue, this could (and should) even be done automagically

@bkunda what info do you need?

So far all the score that reported this error could get fixed by normalizing these bogus measure lengths.

@cbjeukendrup
Copy link
Contributor

I seem to recall this is actually more a "needs review" than a "needs info", to investigate where does it go wrong, how big the impact is, etc.
If anyone happens to have time to perform such investigations, that is of course appreciated.

@cbjeukendrup cbjeukendrup added needs review The issue needs review to set priority, fix version or change status etc. and removed needs info More information is required before action can be taken labels Dec 3, 2024
@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Jan 5, 2025

Came up again in https://musescore.org/en/node/373531

In this case an invalid and non-reducable measure lenght of -4/4 (well, reducable to -1/1, but that'd still be invalid)
Here dropping the - allows the score to get opened, but reported as corrupt in the affected measure, still better than refusing to open it alltogether and with this meaningless and unhelpull error message

@Jojo-Schmitz
Copy link
Contributor Author

And another one https://musescore.org/en/node/373769, again easily reducable (120/160 -> 3/4)

@cbjeukendrup cbjeukendrup linked a pull request Jan 10, 2025 that will close this issue
@cbjeukendrup
Copy link
Contributor

@Jojo-Schmitz Could you check if #26053 does the job?

@Jojo-Schmitz
Copy link
Contributor Author

Sure, but not today anymore...

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Jan 10, 2025

(it is tomorrow meanwhile ;-))

Here's a set of test files (collected from the cases mention in this issue)
bogus-measure-lenghts.zip

@Jojo-Schmitz
Copy link
Contributor Author

Of these most open, some with reporting (other) corruptions, some without any issues, some aske to gate saved when closing so something seems to have changed in them

One does not open:
image
When hittiting "Open anyway", MuseScore crashes. Probably entirely unrelated to the uissue at hand.

This doesn't open either:
image
So a good error message and no crash

So as far as I'm concerned this PR is ready to get merged ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review The issue needs review to set priority, fix version or change status etc. regression MS3 Regression from MS3 (3.6.2) UI Visual issues affecting the UI (not notation)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants