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

Fix crash when opening score with instruments without instrumentId and without InstrChannels #16284

Merged

Conversation

cbjeukendrup
Copy link
Contributor

@cbjeukendrup cbjeukendrup commented Feb 8, 2023

Resolves: #16248
Resolves: #16235

Maybe a candidate for the patch release? Two reports already.

@cbjeukendrup cbjeukendrup changed the title Fix crash when opening old score with instruments without InstrChannels Fix crash when opening score with instruments without instrumentId and without InstrChannels Feb 8, 2023
@cbjeukendrup
Copy link
Contributor Author

Now that I think a bit more about it, I'm wondering how it is possible that these instruments without an ID got written to a 4.0.0 file. You'd say that the ID should be determined when opening the score in 4.0.0+, and then it should be written to the file.
Anyway, I still think this fix would make sense...

@MarcSabatella
Copy link
Contributor

Perhaps the ID was lost as a result of trying to replace the instrument from 4.0, then backing out of the dialog? See #14303 for a report of this losing the mixer channel immediately, and a reference to another report in the forum of this then leading to a crash on save/reload.

@cbjeukendrup
Copy link
Contributor Author

Thanks, that sounds very likely. I'll take a look at that issue too.

@Tantacrul
Copy link
Contributor

@RomanPudashkin - if you're happy, I'm happy to include in the patch release.

@DmitryArefiev
Copy link
Contributor

Tested #16248 #16235 on Win10, Mac12, LinuxUbuntu 22.04 - FIXED

@RomanPudashkin RomanPudashkin merged commit 3785ebb into musescore:master Feb 10, 2023
@RomanPudashkin RomanPudashkin mentioned this pull request Feb 10, 2023
@cbjeukendrup cbjeukendrup deleted the crash_instrument_no_channels branch February 10, 2023 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MU4 Issue] Musescore crashing when opening a project [MU4 Issue] Musescore crashes when opening the score
5 participants