← Back to team overview

openjdk team mailing list archive

[Bug 275672] Re: OpenJDK-6-jre freezes on simple midi app, sun JRE does not

 

Launchpad has imported 4 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=213.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-10-13T09:44:58+00:00 Matthias Klose wrote:

Independent auf pulseaudio

When running a simple app that gets a Sequencer object and exits,
OpenJDK will create the object and not exit while sun-java6-jre (version
6-07-4ubuntu2) creates the object and properly exits. The proper
behavior is the one Sun's java exhibits.

Sample program (also attached):
import javax.sound.midi.*;

public class MusicTest1 {
    public void play() {

        try {
            Sequencer sequencer = MidiSystem.getSequencer();
            System.out.println("Successfully got a sequencer");
        } catch(MidiUnavailableException ex) {
            System.out.println("Bummer");
        }
    }

    public static void main(String[] args) {
        MusicTest1 mt = new MusicTest1();
        mt.play();
        System.out.println("After play");
    }
}

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275672/comments/2

------------------------------------------------------------------------
On 2008-10-13T09:53:40+00:00 Matthias Klose wrote:

Created attachment 113
test case

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275672/comments/3

------------------------------------------------------------------------
On 2008-10-13T11:51:33+00:00 Kalli wrote:

The fault is in Gervill synthesizer. It created two non-daemon threads which 
prevented the VM to exit when the synthesizer was open.
And MidiSystem.getSequencer() causes the synthesizer to be open,
regardless if you don't call open() on the sequencer object. 
This has been fixed in Gervill CVS.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275672/comments/4

------------------------------------------------------------------------
On 2008-11-10T11:43:48+00:00 Mark J. Wielaard wrote:

# HG changeset patch
# User Mark Wielaard <mark@xxxxxxxxx>
# Date 1226317380 -3600
# Node ID cfe2c755ee47fb990a97c4d23691feb39d4a046d
# Parent  688efd12076603ef455dd2a0a70d3aecb3cfe589
Updated to new Gervill CVS.

- Fix: Throw IllegalArgumentException Exception on
       invalid soundbank to:
       SoftSynthesizer.unloadAllInstruments(Soundbank soundbank)
       SoftSynthesizer.unloadInstruments(Soundbank soundbank, Patch[] patchList)
       just like done in:
       SoftSynthesizer.unloadInstrument(Instrument instrument).
- Change: SoftMainMixer, SoftVoice optimized for mono voices.
- Change: SoftFilter optimized.
- Fix: Turn SoftJitterCorrector, SoftAudioPusher threads into a daemon threads.
       These threads prevented the VM to exit when synthesizer was open.
       See: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=213

2008-11-10  Mark Wielaard  <mark@xxxxxxxxx>

	* overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/
	CHANGES.txt,SoftAudioPusher.java,SoftFilter.java,
	SoftJitterCorrector.java,SoftMainMixer.java,SoftVoice.java:
	Updated to new Gervill CVS.


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275672/comments/5

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/275672

Title:
  OpenJDK-6-jre freezes on simple midi app, sun JRE does not

Status in OpenJDK:
  Fix Released
Status in “openjdk-6” package in Ubuntu:
  Fix Released
Status in “openjdk-6” source package in Hardy:
  In Progress
Status in “openjdk-6” source package in Intrepid:
  Invalid

Bug description:
  Binary package hint: openjdk-6-jre

  Ubuntu Intrepid Alpha6 8.10 updated as of Sunday, September 28th
  OpenJDK version 6b12~pre1-0ubuntu3

  When running a simple app that gets a Sequencer object and exits,
  OpenJDK will create the object and not exit while sun-java6-jre
  (version 6-07-4ubuntu2) creates the object and properly exits.  The
  proper behavior is the one Sun's java exhibits.

  Sample program (also attached):
  import javax.sound.midi.*;

  public class MusicTest1 {
      public void play() {

          try {
              Sequencer sequencer = MidiSystem.getSequencer();
              System.out.println("Successfully got a sequencer");
          } catch(MidiUnavailableException ex) {
              System.out.println("Bummer");
          }
      }

      public static void main(String[] args) {
          MusicTest1 mt = new MusicTest1();
          mt.play();
          System.out.println("After play");
      }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/275672/+subscriptions


References