You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audacity hangs on Stop when playing MIDI that has notes before T=0 #2539
Describe the bug
If you have a MIDI track that has part of its Note track before zero, when yod stop playback Audacity hangs for over half a minute (37 seconds on my W10 PC and my macOS 12.2 Monterey Mac.
This is a regression on 3.0.0 - introduced in 3.1.0 with the new Clip-handle drag-bars (affordances)
To Reproduce
Steps to reproduce the behavior:
Import a MIDI file
Use the Note track's drag-bar to position part of the Note track before zero
Press Play
Press Stop
Observe: audacity hangs
Observe: BOTH the Play and Stop buttons are shown as down
Observe: the playhead remains where playback was stopped
Observe: on W10 Blue -circle-of-death - on Mac spinning beachball-of-death
Wait 37 seconds (YMMV)
Observe: It clears and all seems OK again
Note that this does not happen if you use an Audio track rather than a Note track
Expected behavior
Pressing Stop to stop playback immediately with the playhead restored to play start position and no Transport toolbar buttons down.
Screenshots
Additional information (please complete the following information):
OS: Windows 10 and macOS 12.2 Monterey - so assume all OS
Version Audacity 3.1.0 onwards
Additional context
There is a possibility that this may be linked to this earlier reported issue
MIDI playback starts from beginning regardless of cursor position #2359
changed the title [-]Adacirty hangs on Stop when playing MIDI that has notes before T=0[/-][+]Audacity hangs on Stop when playing MIDI that has notes before T=0[/+]on Feb 9, 2022
Things get worse if at Step 4 instead of pressing Stop you re-press the Play button (which should reset the play position to the original location ans re-start playback from there) - but in this case Audacity just hangs interminably and must be force-quit.
Update
I inadvertently left it running in the background in this state while I filed this bug report and dis some other work - and suddenly it burst back into life re-playing the MIDI track - but that took several minutes (ten-plus)
Further testing shows that the hang/pause at step 9 appears to be the time for the amount of the Note track that is hidden before T=0 in negative time.
Activity
[-]Adacirty hangs on Stop when playing MIDI that has notes before T=0[/-][+]Audacity hangs on Stop when playing MIDI that has notes before T=0[/+]petersampsonaudacity commentedon Feb 9, 2022
Things get worse if at Step 4 instead of pressing Stop you re-press the Play button (which should reset the play position to the original location ans re-start playback from there) - but in this case Audacity just hangs interminably and must be force-quit.
Update
I inadvertently left it running in the background in this state while I filed this bug report and dis some other work - and suddenly it burst back into life re-playing the MIDI track - but that took several minutes (ten-plus)
petersampsonaudacity commentedon Feb 9, 2022
This does not happen if at Step 2 you drag the Note track to the right or leave it starting at T=0
petersampsonaudacity commentedon Feb 9, 2022
Further testing shows that the hang/pause at step 9 appears to be the time for the amount of the Note track that is hidden before T=0 in negative time.
Penikov commentedon Feb 10, 2022
I think this bug could be related to #2448
AnitaBats commentedon Feb 10, 2022
See PR: #2378