Keyboard input randomly stops working
OS: macOS 10.16, Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548020600, revision: 3224f34
When the problem occurs, I can still enter notes with the cursor, but not with the keyboard. The problem seems to occur at random.
Keyboard entry on new scores stops working, too. Closing the score and re-opening it doesn't help. Quitting MuseScore and re-launching it makes it work right again, until the same problem re-occurs. I've been noticing this for the past year or more, and it is not getting better. It happens about once every half hour of use, I'd estimate. I can't figure out how to reproduce it.
You probably already know about this, but I thought you'd want to know.
Comments
Is it a wireless keyboard?
In reply to Is it a wireless keyboard? by Jm6stringer
Good question! No, it's, a MacBook Air (M1, 2020)
If you have any guesses what triggers the bug, I'll try to reproduce it for you. So far, I've tried to detect a pattern, but haven''t found one.
The machine works perfectly in every other respect.
When this happens again, look at the right side of the Status Bar at the bottom of the screen. What does it say?
See:
https://musescore.org/en/handbook/3/viewing-and-navigation#status-bar
In reply to When this happens again,… by Jm6stringer
Will do. It might take a few days. Should I reply on this thread, or start a new one?
In reply to Will do. It might take a few… by Timborino
O.K.
Always return here for this particular issue.
In reply to O.K. Always return here for… by Jm6stringer
Okay, the problem just occurred. I haven't used MuseScore much lately.
I can fix it by quitting and restarting MuseScore, but I won't do that until I get a reply, in case I can help with troubleshooting.
To answer your question, the right side of the status bar at the bottom of the screen says, "Normal mode." If I click on the "note input" button at the upper left of the screen, then the right side of the status bar at the bottom of the screen says "steptime note input mode."
Musescore was working normally until I inserted a new key signature part way through a score that previously had a different key signature. I'm not sure that this is always a trigger for the problem, but it might be.
Any other way I can help troubleshoot before quitting and restarting, thereby making the problem go away?
In reply to Okay, the problem just… by Timborino
Strange... It started working again. Don't know why. I named the score, which was new, and saved it. Toggled the "pan score" and "metronome" buttons on and off. I'm not sure that's the reason it started working again. I've had this problem several times, and I'm pretty sure it doesn't happen because I'm making a dumb mistake. Don't know what to think now. I'll keep you posted.
In reply to Strange... It started… by Timborino
Okay, it happened again, i.e., MuseScore once again became unresponsive to keyboard input. My current theory is that it happens when I view the palette and drag something - a time signature, this time - from the palette to the score. The palette was closed when it stopped working but dragging a time signature from the palette and then closing the palette was the last thing I did before MuseScore stopped responding to the keyboard. By trial and error, I got MuseScore working again by viewing the palette again and then closing it again.
I'll keep you posted.
In reply to Okay, the problem just… by Timborino
This has been reported often enough that there is no doubt it's a real problem - pretty much exclusively on macOS - but unfortunately still so rare that no one has succeeded in finding a way to reproduce it. Knowing you are in Normal mode does help confirm it's a real problem, in case there was any doubt, as it eliminates the possibility you were in Edit mode. That which would be the one known "user error" that would disable most keyboard commands.
In reply to This has been reported often… by Marc Sabatella
Glad to know it's not just me. It's possible that MuseScore thinks the palette window is still active, even though I've closed it. I'll try to reproduce it that way.
In reply to Glad to know it's not just… by Timborino
I tried doing a few things with the palette, like I did before. Couldn't reproduce the problem. Reproducing it probably requires a specific set of circumstances or sequence of events. I think it's related to dragging something from the palette to the score, for what it's worth.
In reply to I tried doing a few things… by Timborino
Okay, I kinda sorta reproduced it. I opened the palette, dragged a couple of time signatures into the score, closed the palette. (This doesn't always lock out the keyboard, but seems to cause it pretty often.) The keyboard stopped responding. The cursor keys didn't work nor did the number keys or note keys. Saving didn't help, toggling other things didn't help. Opening the palette and closing it again got things back to working normally.
Edit: Just reproduced it again, this time with a key signature from the palette. Opening and closing other windows didn't un-freeze the keyboard, but opening and closing the Master Palette did un-freeze it, even though I triggered the freeze with the Palette (not master). I hope that will help you track it down.
In reply to Okay, I kinda sorta… by Timborino
You wrote:
...opening and closing the Master Palette did un-freeze it...
Hmm...
So, with the keyboard (shortcut fn+Shift+F9) being locked, you were only able to access the Master Palette using the mouse and the menu: View → Master Palette to un-freeze. Yes?
In reply to You wrote: ...opening and… by Jm6stringer
I think that's correct.
I never use the function keys, I'm not sure I even know how. I don't think I'm bumping the function key by accident.
I did access the Master Palette using the mouse and the menu: View → Master Palette to un-freeze
Does this user's issue seem related?
https://musescore.org/en/node/332236
In reply to Does this user's issue seem… by Jm6stringer
It's hard to say if it's related. Most of the time, keyboard entry works for me. I think I sometimes trigger the problem by dragging something from the palette to the score, like a time signature or key signature. When I correct the problem by opening the palette or master palette, then closing again, it works fine again, for awhille.
The same issue arose again, on Mac OS 12.5.1. I'm pretty sure it happened after I used the palette, then closed it. This time I was able to get keyboard working again by simply re-opening the palette, and possibly selecting an item from the palette. I took a screenshot. If that would be useful, I will upload it.
In reply to The same issue arose again,… by Timborino
Sorry this is still happening. There's probably nothing that can be told from a screenshot, as it can't show where the keyboard focus actually is. Presumably it's somewhere other than the score. I assume you tried hitting Esc, but just in case - that's the usual way to return focus to the score if it's elsewhere. Also to exit edit mode, if that happened to be the problem. Also try pressing tab and watching three screen closely to see if you can track where the focus is as you keep pressing it - usually a few dozen keypresses will take you across the whole interface.
If you can turn on VoiceOver (not sure how, but presumably a web search would tell you), try that if it happens again. This will start reading things aloud that might give you an idea of where keyboard focus is. If you can't figure it out from there, try hitting cursor keys, or tab, to see what gets reported.
In reply to Sorry this is still… by Marc Sabatella
This is almost certainly the problem I reported before.
https://musescore.org/en/node/309211
But oddly, it hasn't happened to me recently!
David
In reply to Sorry this is still… by Marc Sabatella
No need for apologies. I'm just glad you and the team are chasing down bugs. I'll try the other stuff you mentioned.
According to the indicator on the lower right hand portion of the window, when the issue occurs, I am in "steptime note input mode" The arrow keys definitely don't work at those times.
In reply to No need for apologies. I'm… by Timborino
Right, I don't expect they'd navigate the score, but they might be navigating the UI - highlighting different toolbar buttons, for instance. Or navigating between fields on a dialog box that is hidden from view. That's what I'll be curious if VoiceOver reports anything - it would read whatever the keyboard focus is on, whether that thing is visible or not.
In reply to Right, I don't expect they'd… by Marc Sabatella
The issue just occurred. Esc key does nothing, tab key does nothing. Mouse and mouse-clicks work as usual, though I forgot to check if I could input notes with the mouse. Out of curiosity, I switched to another app, to see if keyboard input was working. It was. When I switched back to MuseScore (without quitting or closing document) keyboard input started working. Didn't get a chance to try VoiceOver. I'll try that next time.
In reply to The issue just occurred. Esc… by Timborino
Okay, I think I have replicated the issue, at least partially.
1-In note entry mode
2-Open palette
3-Do something with the palette - like enter a dynamic for a random measure
4-Close palette window
5-MuseScore is completely unresponsive to keyboard. Note entry with mouse still works.
6-Switch to another app, maybe any app. In my case, an app window in the background..
7-Switch back to MuseScore. Keyboard entry starts working again.
In reply to Okay, I think I have… by Timborino
Do you have a midi keyboard connected?
In reply to Okay, I think I have… by Timborino
I can't reproduce on Linux, but can you be more specific about steps 3-4? I assume you are navigating to the note/rest while in note input, and then what - the palette is already open, and you are using the mouse to click on a symbol you wish to attach to the selected note/rest? Or you are dragging a symbol to a note/rest that is not currently selected? Or to the note that is? Or something else? And are you closing the palette by clicking the "x" or by keyboard shortcut or via the menu?
In reply to I can't reproduce on Linux,… by Marc Sabatella
Marc,
I appreciate your dilligence.
I think we previously established that this issue is specific to Mac OS.
I don't use a midi keyboard.
Re steps 3-4: I haven't checked every variation, but these steps reliably reproduce the issue:
--In steptime note input mode, enter a note in a score
--View: Palettes (As far as I can tell, Palettes triggers the issue, Master Palette doesn't.)
--Enter Edit mode
--Select a note or measure
--Click a dynamic on the palette to enter the dynamic in the selected location. (It doesn't have to be a dynamic. I tried it with some other items from the palette, but did not test exhaustively. As far as I can tell, any item from the palette will trigger the issue.)
--Click on the big N in the upper left corner to enter Steptime Note Input Mode
--Select a measure, try to enter a note from the keyboard. They keyboard will be locked out.
--Switch to a window for some open app, like your web browser. Switch back to MuseScore. The keyboard will no longer be locked out.
In reply to Marc, I appreciate your… by Timborino
One last thing.
I repeated the above steps but didn't actually use the palette. I just opened the Palette, entered Edit mode, didn't use the Palette at all, closed the Palette. Issue happened.
Forgot to answer your other question. I tried both ways of closing the palette -- by clicking the little red dot at the upper left corner of the palette and by choosing View: Palette, to un-check the Palette item in the menu. Same result.
In reply to Marc, I appreciate your… by Timborino
Well, we've established that the known cases of this seem to be on macOS, but that's not the same as saying it can only happen there. Sometimes something seems to only happen on a given OS because it's something that only people on that OS are likely to do, because it fits in with how other things are done on that OS.
Anyhow, the steps you post above are very different from your original steps, so can you clarify? In particular, your original steps didn't mention edit mode at all. And your original steps had the user entering note input mode before going to the palette, not after. Also, the new steps don't mention closing the palette at all.
So it's still not totally clear what the steps actually are.
In reply to Well, we've established that… by Marc Sabatella
Sorry. I'm trying to help, and doing the best I can.
First I'm in note input mode. Then I go to the palette, though I don't necessarily use it. Then try to enter a new note. I was pretty sure this reliably replicates the issue. Now, I have some doubts. It could be there is some detail I'm overlooking.
In reply to Sorry. I'm trying to help,… by Timborino
Sorry if I sounded harsh - I'm not trying to be critical. You've been very patient and helpful, it would just be good to really nail down the steps completely reliably. Maybe this is a case where a screen recording would be more useful, as it would clarify some of the things you might be doing almost unconsciously that aren't necessarily reflected in the written steps.
In reply to Sorry if I sounded harsh - I… by Marc Sabatella
No problem. I'll check to see if I have a screen recorder app. If so, I'll get back to you.
In reply to No problem. I'll check to… by Timborino
I assume this would work - https://support.apple.com/en-us/HT208721
But if not, any number of free web-based utilities to do this - Loom, Screencastify, etc.
I have the same problem and I am using the Windows version. Never had this problem with MuseScore 3, but am having this problem with V4.