hang during note entry -> caused by non-operational audio output
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34
Steps to reproduce #1:
1. open MuseScore
2. create a new score (tried with solo Guitar, piano and Choral SATB - does not seem to matter)
3. click into the first measure of the piece
4. press "N" to enter note entering mode; the default 1/4th note length is highlighted
5. press and hold "G" on your keyboard to enter 1/4th G notes
Actual result: MuseScore hangs (hence the faint screenshot) after the 19th note:
Expected result: note input should continue normally until all measures are filled up with notes, and MuseScore should remain responsive and operational.
Steps to reproduce #2:
1. open MuseScore
2. create a new score (tried with solo Guitar, piano and Choral SATB - does not seem to matter)
3. click into the first measure of the piece
4. press "N" to enter note entering mode; the default 1/4th note length is highlighted
5. type "G" once a second (or once every 4 seconds) on your keyboard to enter 1/4th G notes
Actual result: MuseScore hangs after the 10th note:
Expected result: note input should continue normally until all measures are filled up with notes, and MuseScore should remain responsive and operational.
Not a realistic use case, I know - I found it when trying to create scores to study how layout works - so it probably would not occur during normal usage. And I have been using MS with no hangs or other issues for about 20-30 hours during the last several days, engraving almost a dozen choral pieces with on the order of up to a thousand notes each (plus accidentals, dynamics, lyrics, etc.), extremely tight layout settings, etc. and it is a great experience. So it is kinda odd that this simple case causes a hang - which is why I decided to report it.
(#321716 might be related?)
Thank you for your time and effort.
Attachment | Size |
---|---|
Empty score - to trigger hang when entering notes.mscz | 4.14 KB |
Comments
I can't reproduce either scenario, Same version of MuseSAcire and Windows 10 too
Not sure how #321716: Crash when using Eighth Notes with Real-Time(Manual) Input could be related, as that is about a MIDI keyborrd and Realtime Entry?
In reply to I can't reproduce either… by Jojo-Schmitz
Thank you for looking into this.
The similarity I found was that in both cases the user tries entering a series of same-length, same pitch notes.
Reproducibility is 100% on my system. Hmm. Does it also not happen for you with the attached (theoretically empty) mscz either? I mean maybe it's triggered by something in my "house style" or any setting that would be different on your system, but would transfer throuch mscz?
I am willing to just file this under wierd unknown causes, it is not a pressing issue.
No, doesn't happen here with the attached score either.
And when looking at the PR for #321716: Crash when using Eighth Notes with Real-Time(Manual) Input I'm pretty certain that it is not related.
Further attempts:
* It does happen with 1/2nd notes (19 notes).
* It does happen if I alternate the pitch:
* It does happen if I alternate between 1/4th and 1/8th notes.
Maybe try reverting to factory settings.
In reply to No, doesn#t happen with the… by Jojo-Schmitz
Hmm, did not help: the hang still happens with factory settings ("Revert all preferences to default" on the Edit | Preferences screen, and then restarting MuseScore):
Must be something on my system then.
Well, thank you for looking at this.
It was my audio output device! My audio device was not waking up from sleep properly, and it ended up hanging note entry in MuseScore indirectly, I guess, because MuseScore was attempting to play the audio for the entered notes, and I guess it took a certain number of notes to fill up some internal audio buffer/queue (which was never emptying due to the non-operational audio device), after which waiting on that buffer/queue caused the hang (indirectly).
At least a workaround then.
In reply to At least a workaround then. by Jojo-Schmitz
Oh, by all means, please demote/classify it as you see fit. E.g. is is way below "critical" for me now that there is a workaround... a minor annoyance at most.
Well, hangs and crashes are critical by definition
But we can give it a low priority ;-)
Thank you. Pleasure working with you, sir. :)