hang during note entry -> caused by non-operational audio output

• Nov 11, 2021 - 08:49
Reported version
3.6
Priority
P3 - Low
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

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:

Musescore - hang during key repeated note entry.png

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:

Musescore - hang during repeated note entry.png

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.


Comments

In reply to 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.

Further attempts:
* It does happen with 1/2nd notes (19 notes).
* It does happen if I alternate the pitch:
Musescore - hang during note entry.png
* It does happen if I alternate between 1/4th and 1/8th notes.

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).