JDK-4295662 : JavaSound: hotspot exceptions playing any media files.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_nt,windows_2000
  • CPU: x86
  • Submitted: 1999-12-01
  • Updated: 2000-01-26
  • Resolved: 1999-12-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.3.0 kestrelFixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Description
Build   : 'P'
app     : JavaSound / TestSound
OS      : NT primarily but Win98/95 fails as well.

JavaSound not functional due to failures to load/play any audio files.   Replicatable on all my of my test machines.

On NT:
1. java -jar JavaSound.jar
2. click on the first file: ambient.rmf

- you should noticed one of the following:
Exception Dump:
java.lang.OutOfMemoryError: Out of Memory
        at com.sun.media.sound.HeadspaceMixer.nOpenMixer(Native Method)
        at com.sun.media.sound.HeadspaceMixer.implOpen(HeadspaceMixer.java:397)
        at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:97)
        at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:285)
        at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:301)
        at com.sun.media.sound.HeadspaceMixer.open(HeadspaceMixer.java:634)
        at com.sun.media.sound.AbstractPlayer.open(AbstractPlayer.java:148)
        at Juke.loadSound(Juke.java:256)
        at Juke.run(Juke.java:388)
        at java.lang.Thread.run(Thread.java:488)

Or a hotspot exception:
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
#
# Error ID: 4F533F57494E13120E43505002BE
#

ErrorID: os_win32.cpp, 702


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: kestrel FIXED IN: kestrel INTEGRATED IN: kestrel VERIFIED IN: kestrel
14-06-2004

EVALUATION This bug appears on some machines on WinNT and perhaps on other Win32 operating systems. It does not appear on all machines (including mine and Jan's). :) The last putback introduced code for querying the particular set of formats supported by an audio device. In this code, I was allocating a significant amount of memory from the heap. Even if this memory is explicitly freed, memory allocation in the nOpenMixer method fails on some machines. I no longer dynamically allocate memory from the heap in the format-query code. I have tested this fix on some systems affected by the bug. I believe that the bug is fixed, but look forward to the test team's evaluation on their full suite of machines. kara.kytle@Eng 1999-12-01 robert.h.kim@Eng 2000-01-26 Verified in Build fcs 'T'
01-12-1999