Skip to content

Audacity hangs on Stop when playing MIDI that has notes before T=0 #2539

Closed as not planned

Description

@petersampsonaudacity

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:

  1. Import a MIDI file
  2. Use the Note track's drag-bar to position part of the Note track before zero
  3. Press Play
  4. Press Stop
  5. Observe: audacity hangs
  6. Observe: BOTH the Play and Stop buttons are shown as down
  7. Observe: the playhead remains where playback was stopped
  8. Observe: on W10 Blue -circle-of-death - on Mac spinning beachball-of-death
  9. Wait 37 seconds (YMMV)
  10. 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
image

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

Activity

  1. added
    AU3-bug
    regression
    MIDI
    on Feb 9, 2022
  2. 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
  3. petersampsonaudacity commented on Feb 9, 2022

    @petersampsonaudacity
    Author

    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)

  4. petersampsonaudacity commented on Feb 9, 2022

    @petersampsonaudacity
    Author

    This does not happen if at Step 2 you drag the Note track to the right or leave it starting at T=0

  5. petersampsonaudacity commented on Feb 9, 2022

    @petersampsonaudacity
    Author

    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.

  6. added this to the Audacity 3.2 milestone on Feb 10, 2022
  7. Penikov commented on Feb 10, 2022

    @Penikov
    Contributor

    I think this bug could be related to #2448

  8. added
    P3
    and removed
    P2
    on Feb 10, 2022
  9. AnitaBats commented on Feb 10, 2022

    @AnitaBats

    See PR: #2378

  10. added
    Scheduled for replacement
    on May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AU3-bugMIDIP3Scheduled for replacementregression

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions