JDK-4383457 : One Or More Methods Of TargetDataLine Cause System To Hang.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.1,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2000-10-27
  • Updated: 2002-11-21
  • Resolved: 2002-10-31
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.4.2 mantisFixed
Related Reports
Relates :  
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis VERIFIED IN: mantis
2004-06-14

PUBLIC COMMENTS One Or More Methods Of TargetDataLine Cause System To Hang.
2004-06-10

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

WORK AROUND ###@###.### 2001-07-1 instead of line.close() use if (line.isActive()) { line.flush(); line.stop(); } line.close();
2001-07-01