After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763322 - directsoundsrc: program hangs on IDirectSoundCaptureBuffer_Release
directsoundsrc: program hangs on IDirectSoundCaptureBuffer_Release
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-08 13:21 UTC by Thomas Roos
Modified: 2018-05-07 15:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Roos 2016-03-08 13:21:01 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...
Comment 1 Thomas Roos 2016-03-08 17:11:59 UTC
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
Comment 2 Thomas Roos 2016-03-24 07:29:32 UTC
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.
Comment 3 Philippe Renon 2017-07-10 15:18:04 UTC
This issue could be explained by https://bugzilla.gnome.org/show_bug.cgi?id=784755
Comment 4 Sebastian Dröge (slomo) 2017-07-14 09:52:25 UTC
Is this still a problem now after that fix?
Comment 5 Sebastian Dröge (slomo) 2018-05-07 15:45:25 UTC
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!