Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4318062

MixerSourceLine.drain hangs after repeated use

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • None
    • sparc
    • solaris_2.5.1

      This can be reproduced consistently on WinNT under the following scenario:

      - A GUI application is used. It has a button to playback a short
        audio clip each time it's pressed.
      - When the button is pressed, it creates a SourceDataLine to play back
        a short clip of PCM data.
      - At the end of the short clip, SourceDataLine.drain is called. When
        that returns, the SourceDataLine is closed.
      - By repeatedly hitting the button after a while, the CPU will reach
        100% and stay at 100% indefinitely.

      By doing a thread dump at this point, there will a few threads
      that got stuck in the com.sun.media.sound.MixerSourceLine.drain call.

            fbomerssunw Florian Bomers (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: