United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4383457 One Or More Methods Of TargetDataLine Cause System To Hang.
JDK-4383457 : One Or More Methods Of TargetDataLine Cause System To Hang.

Details
Type:
Bug
Submit Date:
2000-10-27
Status:
Closed
Updated Date:
2002-11-21
Project Name:
JDK
Resolved Date:
2002-10-31
Component:
client-libs
OS:
generic
Sub-Component:
javax.sound
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.1,1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:

Sub Tasks

Description
One Or More Methods Of TargetDataLine Cause System To Hang.

This problem appears to be happening in the process of performing the following steps:
___________________
TargetDataLine.open()
TargetDataLine.start()
TargetDataLine.read()
TargetDataLine.stop()
TargetDataLine.close()
___________________

If you try to perform the previous steps 1000 times, the system will hang and in some cases the machine will need to be restarted.

It does not necessarily require 1000 iterations.
Sometimes the problem will occur on the first iteration, another time on the 700th iteration.
It appears to occur somewhat randomly, but I have never successfully completed 1000 iterations.

This same behavior has been observed on:

Windows 98 SE, both Kestrel & Merlin
Solaris 8.6, both Kestrel & Merlin

These are the only configurations that were used.

This problem is a failure of reliability testing for both Kestrel  & Merlin.
Both require component test suites to run for 24 hours.

Code which reproduces this problem is attached.
==================
Verified with attached test045.java test case and was passed in Solaris platform on Mantis B08.

###@###.### 2002-11-21

                                    

Comments
WORK AROUND


###@###.### 2001-07-1

instead of line.close() use
 if (line.isActive()) {
  line.flush();
  line.stop();
 }
 line.close();
                                     
2001-07-01
EVALUATION


michael.bundschuh@Eng 2001-02-08
	Commit to fix in Merlin. No resources for ladybird.


###@###.### 2001-10-08
	Will be fixed in Hopper.


###@###.### 2002-04-16
	More complicated that it seemed... Push to Mantis.


###@###.### 2002-10-30
	Although not specifically fixed, the many modifications to the architecture seemed to fix this bug. Could reproduce it with JDK 1.4.0, but not with 1.4.2b04.
                                     
2002-10-30
PUBLIC COMMENTS

One Or More Methods Of TargetDataLine Cause System To Hang.
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis

VERIFIED IN:
mantis


                                     
2004-06-14



Hardware and Software, Engineered to Work Together