GNOME Bugzilla – Bug 763322
directsoundsrc: program hangs on IDirectSoundCaptureBuffer_Release
Last modified: 2018-05-07 15:45:25 UTC
In my use case I use directsoundsrc to send audio via rtpmanager. Seldom (between 15min - 5hours) while stopping the pipeline the directsoundsrc will hang in IDirectSoundCaptureBuffer_Release() systemcall. This can only be resolved by unplugging the soundcard (USB) if possible. When watching the my process by sysinternals process explorer I see this stack trace: wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0xf5 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x429 ntdll.dll!RtlIsDosDeviceName_U+0x24c87 ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!ZwWaitForMultipleObjects+0x15 kernel32.dll!WaitForMultipleObjectsEx+0x8e kernel32.dll!WaitForMultipleObjects+0x18 dsound.dll!DllCanUnloadNow+0x9af3 dsound.dll!DllCanUnloadNow+0x9ac5 dsound.dll!DirectSoundCreate+0x26f9f dsound.dll+0x2da1 dsound.dll+0x29ae kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 Is there anybody out who has an idea how to debug or get more information about this!? Or a place in the internet with people who might can help. P.S: it confuses me why DirectSoundCreate is called, since I don't do audio playback...
installed microsoft debug symbols (acc. to http://forum.sysinternals.com/help-with-configuring-symbols_topic17513_page1.html) and got new less confusing stack trace, but still no idea: wow64cpu.dll!CpupSyscallStub+0x9 wow64cpu.dll!WaitForMultipleObjects32+0x3b wow64.dll!RunCpuSimulation+0xa wow64.dll!Wow64LdrpInitialize+0x429 ntdll.dll!??_C@_0BN@KLOBBEB@Enabling?5heap?5debug?5options?6?$AA@FNODOBFM@+0x29364 ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!_ZwWaitForMultipleObjects@20+0x15 kernel32.dll!_WaitForMultipleObjectsExImplementation@20+0xe0 kernel32.dll!_WaitForMultipleObjects@16+0x18 dsound.dll!?LockOrEvent@CMutexLock@@QAEHPAX@Z+0x22 dsound.dll!?TpEnterDllMutex@CThread@@IAEHXZ+0x22 dsound.dll!?HandleFocusChange@CDirectSoundAdministrator@@AAEXXZ+0x2c dsound.dll!?UpdateGlobalFocusState@CDirectSoundAdministrator@@QAEXH@Z+0x6e dsound.dll!?ThreadProc@CDirectSoundAdministrator@@EAEJXZ+0x37 dsound.dll!?ThreadLoop@CThread@@IAEJXZ+0x1d dsound.dll!?PrivateThreadProc@CThread@@AAEJXZ+0x32 dsound.dll!?ThreadStartRoutine@CThread@@CGKPAX@Z+0xd kernel32.dll!@BaseThreadInitThunk@12+0xe ntdll.dll!___RtlUserThreadStart@8+0x70 ntdll.dll!__RtlUserThreadStart@8+0x1b
Error happens only with an usb audio device. Using wasapisrc does not show the error, but wasapisrc need some work and is currently broken in git tree.
This issue could be explained by https://bugzilla.gnome.org/show_bug.cgi?id=784755
Is this still a problem now after that fix?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!