Name: rmT116609 Date: 09/14/2004
FULL PRODUCT VERSION :
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP Pro 32 bit
AMD 64 processor
EXTRA RELEVANT SYSTEM CONFIGURATION :
A DESCRIPTION OF THE PROBLEM :
When running any program with J2SE 5 RC, audio is repeatedly distorted. Pauses happen repeatedly during playback; what seems to be happening is that the VM is stealing all of the CPU, somehow, which causes a pause in playback. The effect is lessened but not eliminated by reducing the priority of the Java process. The exact same programs run with the 1.4 JDK do NOT exhibit this characteristic. I've run Eclipse within J2SE 5 and within JDK 1.4.2_05. It seems that whenever certain bits of code are touched for the first (or an early) time the stuttering occurs. This led me to believe that it was either the JIT or the shared class mechanism that was causing the problem. I turned off the shared class mechanism, re-ran Eclipse under J2SE 5, and the problem still occurred. I have not yet turned on detailed compilation information and done the test, but I will shortly.
I've also noticed that at the same time as the audio pauses, the entire PC "freezes" slightly -- the mouse cursor locks in place, indicating that something has frozen the machine in a timeout. Once again, this problem ONLY occurs when using the J2SE 5 VM. No such pause occurs with JDK 1.4.
This problem makes it impossible to play back any kind of audio in another program while a Java program is running under J2SE 5, when using Echo Audio. On a completely different PC, with a different sound system, I have noticed very minor clicks and pops, but nothing like the major pauses that occur.
This may be a bad interaction with the Echo Audio drivers. The EA drivers may be particularly inefficient, making a problem present with many drivers more obvious. It may be an interaction with AMD64. I will try to provide additional information.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Begin MP3 (or any other audio format) playback. Run any java vm-based program, such as Eclipse. Listen for pauses in playback of the audio, and/or freezes on the mouse cursor.
EXPECTED VERSUS ACTUAL BEHAVIOR :
No pauses, perfect audio playback, same as JDK 1.4.
Pauses in playback, slight "freezes" in the cursor and the entire system.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error messages occur.
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Audio stuttering always occurs in J2SE 5. No stuttering in JDK 1.4.
Release Regression From : 1.4
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Incident Review ID: 310651)