F9 to hide palettes crashes MuseScore
Reported version
3.5
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Randomly
Status
needs info
Regression
No
Workaround
No
Project
I don't know fixed scenario to reproduce, only that it happens to me several times a day with all kind of scores, not a specific one.
I have send trace report as suggested by the dialog box appearing at crash, hopefully that will be enough to understand the cause
Comments
I think (but not 100% sure) that all these crashes happens in that scenario:
MuseScore is maximized with Mixer, Inspector and Palettes opened.
1) resize half screen by drag and drop the MuseScore window
2) close F8 F10 F9 => crash at F9. Not sure at all if I do F8 F10 or F10 F8
I don't understand step 1
In reply to I don't understand step 1 by Jojo-Schmitz
I'm on Window 10, I don't know if that exists in Linux.
With the mouse drap and drop the title bar of the MuseScore window to the right (or the left) of the screen. MS-Windows will automatically resize your window half-screen (and asks you which window you want to display on the other half of screen, in my case will be VLC)
I see. No crash for me though
May this be related to #309333: F9 to hide the palette occasionally crashes MuseScore 3?
In reply to May this be related to … by dmitrio95
I'm trying to reproduce with the steps of #309333 but can't, do you still have the bug using these steps?
If so would you mind explaining them again?
Yes, I can always reproduce a crash following the steps from this comment. Actually the same works with Mixer as well, even with less steps:
1) Ensure palettes are hidden (if not, hide them with F9 or by closing the panel).
2) Open Mixer, drag a volume slider for some instrument (I don't get a crash with "master gain" slider though).
3) Press F9 to show palettes.
4) Press F10 to close Mixer.
5) Press F9 to hide palettes.
At step 5 I always get a crash.
I am not sure whether it is exactly the same issue you have reported but conditions seem to be quite similar.
I can reproduce too. Crash occurs here:
https://github.com/musescore/MuseScore/blob/3.x/mscore/musescore.cpp#L6…
I guess lastFocusWidget is not null, but isn't really valid either. Didn't get cleared when the mixer was closed? I don't actually see anywhere that it ever gets set or cleared in any way aside from a few lines above.
Been this way for several years I guess. The intent seems to be to remember where the focus was when the palette was enabled, and return focus there when it is closed. I'd just as soon see it go to the scoreview regardless of where it might have been at some point in the past.
I could just as well close this as a duplicate of the other issue (for which I just submitted a PR), but just in case there is something different going on and the steps don't involve closing another window between the time the palette was opened and the time it was closed, I'll leave it open for steps to reproduce.
Came up again in https://musescore.org/en/node/324463
I can't reproduce though with @dmitrio95's steps