JDK-6950553 : Applet: IE process crash in OLE32.DLL when playing a sound.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0u17,7
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: generic,x86
  • Submitted: 2010-05-07
  • Updated: 2011-03-02
  • Resolved: 2010-08-24
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 Other Other Other JDK 6 JDK 7 Other
5.0u17-crev,OpenJDK6Fixed 5.0u25-rev b06Fixed 5.0u26-revFixed 5.0u27Fixed 6u21-revFixed 7Fixed OpenJDK6Fixed
Related Reports
Relates :  
Description
OS: Windows Vista (32bit Japanese)
Java: 1.5.0_17

The customer has experienced IE process crash several times when playing sound in their applet.
Please find stack trace below.
Judging from this stack trace, it seems it is same issue as CR# 6922454 

CR# 6922454 Crash while playing audio on Vista due to COM library not being initialized

##
## Stack trace of my customer's process dump.
##
STACK_TEXT:  
13eceb54 77669244 7757c3e4 00000002 13eceba8 ntdll!KiFastSystemCallRet
13eceb58 7757c3e4 00000002 13eceba8 00000001 ntdll!ZwWaitForMultipleObjects+0xc
13ecebf4 7757c64e 13eceba8 13ecec44 00000000 kernel32!WaitForMultipleObjectsEx+0x11d
13ecec10 775edb5d 00000002 13ecec44 00000000 kernel32!WaitForMultipleObjects+0x18
13ecec7c 775edd89 13eced4c 00000001 00000001 kernel32!WerpReportFaultInternal+0x16d
13ecec90 775cf54d 13eced4c 00000001 ddfa9c4e kernel32!WerpReportFault+0x70
13eced1c 776885b7 00000000 77619a14 00000000 kernel32!UnhandledExceptionFilter+0x1b5
13eced24 77619a14 00000000 13ecfd80 77673ff8 ntdll!__RtlUserThreadStart+0x6f
13eced38 776140f4 00000000 00000000 00000000 ntdll!_EH4_CallFilterFunc+0x12
13eced60 77669b99 fffffffe 13ecfd70 13ecee68 ntdll!_except_handler4+0x8e
13eced84 77669b6b 13ecee4c 13ecfd70 13ecee68 ntdll!ExecuteHandler2+0x26
13ecee34 776699f7 00ecee4c 13ecee68 13ecee4c ntdll!ExecuteHandler+0x24
13ecee34 7725c22c 00ecee4c 13ecee68 13ecee4c ntdll!KiUserExceptionDispatcher+0xf
13ecf174 77237186 13ecf180 77236ef0 77236edc ole32!CObjectContext::`vftable'+0x4
13ecf944 7725e2a2 06c3ef30 00000000 00000017 ole32!ICoCreateInstanceEx+0x242
13ecf9a4 7725e203 06c3ef30 00000000 00000017 ole32!CComActivator::DoCreateInstance+0xd9
13ecf9c8 7725e1bc 06c3ef30 00000000 00000017 ole32!CoCreateInstanceEx+0x38
13ecf9f8 71d487da 06c3ef30 00000000 00000017 ole32!CoCreateInstance+0x37
13ecfb0c 71d48380 00040000 26e29a66 0d4ecb50 AudioSes!CAudioClientStream::CreateEndpoint+0x31
13ecfb74 71a1174a 00247e48 00000000 00040000 AudioSes!CAudioClient::Initialize+0x1e3
13ecfc34 71a11428 0659ed08 00000000 0659e46c dsound!CEngineRendererConnection::Initialize+0x2b6
13ecfc5c 71a0d33d 0659f8c0 0659ed08 00000000 dsound!CLeapSystem::ConnectRenderer+0xf0
13ecfc98 71a0f9af 0659f578 00000000 0659de40 dsound!CLeapRenderDevice::ConnectRenderer+0xdf
13ecfcb0 71a0cb21 00000000 0659eb98 00000003 dsound!CLeapSecondaryRenderWaveBuffer::Connect+0x22
13ecfcd8 71a0caa8 00000003 00000000 0659e8a0 dsound!CLeapSecondaryRenderWaveBuffer::SetState+0x61
13ecfcf4 71a0d181 00000003 00000000 00000003 dsound!CDirectSoundSecondaryBuffer::SetBufferState+0x60
13ecfd08 71a0d26e 00000000 00000001 00000000 dsound!CDirectSoundSecondaryBuffer::Play+0x9f
13ecfd20 6d4c307c 0659e8a0 00000000 00000000 dsound!CImpDirectSoundBuffer<CDirectSoundSinkBuffer>::Play+0x75
13ecfd34 77574911 00000000 13ecfd80 7764e4b6 jsoundds!DS_StartBufferHelper::ThreadProc+0x2c [../../../../src/windows/native/com/sun/media/sound/engine/PLATFORM_API_WinOS_DirectSound.cpp @ 483]
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13ecfd40 7764e4b6 00000000 64a4e046 00000000 kernel32!BaseThreadInitThunk+0xe
13ecfd80 7764e489 6d4c3050 00000000 00000000 ntdll!__RtlUserThreadStart+0x23
13ecfd98 00000000 6d4c3050 00000000 00000000 ntdll!_RtlUserThreadStart+0x1b

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/12dc06e49f49
04-12-2010

EVALUATION Initialinzing COM in DS_StartBufferHelper::ThreadProc() before calling COM functions resolves the issue.
16-07-2010