Wasapi: IAudioClient- Initialize() hanging when opening audio capture device

I'm trying to open the capture/input audio device. I call ActivateAudioInterfaceAsync() , then when I call IAudioClient->Initialize() on the capture device, the app hangs, supposedly because for some reason it's trying to display the 'Allow app to
use the mic?' prompt.
The hang _doesn't_ occur if I manually set the app permission to use the mic (i.e. launch the app without having it open the audio devices, open the permission tile, activate the mic permission).
Calls to ActivateAudioInterfaceAsync and  IAudioClient->Initialize() are made from the UI thread (the one that receives callbacks for buttons, which on Metro style apps seems to be different from the thread that starts the application, i.e. WinMain).
What am I doing wrong?
I've attached the stack that shows the app hung below.
Thanks,
Flavio.
ntdll.dll!_NtAlpcSendWaitReceivePort@32()
Unknown
rpcrt4.dll!LRPC_CASSOCIATION::AlpcSendWaitReceivePort(unsigned long,struct _PORT_MESSAGE *,struct _ALPC_MESSAGE_ATTRIBUTES *,struct _PORT_MESSAGE *,unsigned long *,struct _ALPC_MESSAGE_ATTRIBUTES *,union _LARGE_INTEGER *)
Unknown
rpcrt4.dll!LRPC_BASE_CCALL::DoSendReceive(void)
Unknown
rpcrt4.dll!LRPC_BASE_CCALL::SendReceive(struct _RPC_MESSAGE *)
Unknown
rpcrt4.dll!LRPC_CCALL::SendReceive(struct _RPC_MESSAGE *)
Unknown
rpcrt4.dll!_I_RpcSendReceive@4()
Unknown
rpcrt4.dll!_NdrSendReceive@8()
Unknown
rpcrt4.dll!@NdrpSendReceive@4()
Unknown
rpcrt4.dll!_NdrClientCall2()
Unknown
AudioSes.dll!_AudioServerCreateStream@36()
Unknown
AudioSes.dll!CAudioClient::CreateRemoteStream(enum SYSTEM_AUDIO_STREAM_TYPE,__int64,__int64,struct SYSTEM_AUDIO_STREAM *)
Unknown
AudioSes.dll!CAudioClient::Initialize(enum _AUDCLNT_SHAREMODE,unsigned long,__int64,__int64,struct tWAVEFORMATEX const *,struct _GUID const *)
Unknown
Metro.exe!App1::MainPage::Startup() Line 171
C++
Metro.exe!<lambda_f0ad93afb1643234338c56b595dca446>::operator()() Line 48
C++
Metro.exe!Platform::Details::__abi_FunctorCapture0<<lambda_f0ad93afb1643234338c56b595dca446>,void>::Invoke() Line 850
C++
Metro.exe!Windows::UI::Core::DispatchedHandler::Invoke()
C++
Metro.exe!Windows::UI::Core::DispatchedHandler::[Windows::UI::Core::DispatchedHandler::__abi_IDelegate]::__abi_Windows_UI_Core_DispatchedHandler___abi_IDelegate____abi_Invoke()
C++
Windows.UI.dll!6283fdff()
Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for Windows.UI.dll]
Windows.UI.dll!628314ae()
Unknown
user32.dll!_InternalCallWinProc@20()
Unknown
user32.dll!_UserCallWinProcCheckWow@36()
Unknown
user32.dll!_CallWindowProcAorW@24()
Unknown
user32.dll!_CallWindowProcW@20()
Unknown
Windows.UI.Xaml.dll!5e06b434()
Unknown
Windows.UI.Xaml.dll!5e06b3af()
Unknown
user32.dll!_InternalCallWinProc@20()
Unknown
user32.dll!_UserCallWinProcCheckWow@36()
Unknown
user32.dll!_DispatchMessageWorker@8()
Unknown
user32.dll!_DispatchMessageW@4()
Unknown
Windows.UI.dll!628311dc()
Unknown
Windows.UI.dll!62831290()
Unknown
Windows.UI.Xaml.dll!5e16dee2()
Unknown
Windows.UI.Xaml.dll!5e16dea1()
Unknown
Windows.UI.Xaml.dll!5e16de65()
Unknown
ntdll.dll!_RtlReleaseSRWLockExclusive@4()
Unknown
03655668()
Unknown
twinapi.dll!67b2c9dd()
Unknown
twinapi.dll!67b2cab2()
Unknown
twinapi.dll!67b2c9f6()
Unknown
SHCore.dll!740c1ffd()
Unknown
kernel32.dll!@BaseThreadInitThunk@12()
Unknown
ntdll.dll!___RtlUserThreadStart@8()
Unknown
ntdll.dll!__RtlUserThreadStart@8()
Unknown

When you're in this state, can you take a dump of the svchost.exe process containing the AudioSrv service and send it to me? email to (mateer at microsoft dot com)
Matthew van Eerde

Similar Messages

  • JDeveloper 11.1.2.3 hangs when opening project from JDeveloper 11.1.1.6

    Hello! I have a problem here which I can't solve. I also asked this question here: http://stackoverflow.com/questions/14365031/jdeveloper-11-1-2-3-hangs-when-opening-project-from-jdeveloper-11-1-1-6/14369211#14369211 . The whole story in short. I have a JavaEE client-server project in JDeveloper 11.1.1.6, where it works like a charm. Recently I had to upgrade JDeveloper version to the latest 11.1.2.3. The first problem was that the standard procedure of migrating project from the older version of JDeveloper to the newer one did not help: IDE was hanging forever all the time with no apparent (for me) reason, log file was silent about that. Then I tried another way: I just created the same project from the beginning and put there all necessary source files, libraries, set project properties etc. Still nothing, but now found the way to obtain a kind of error at least. I ran C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.exe from the command line and got the following (e.g. when I started running debug):
    Jan 16, 2013 8:52:09 PM oracle.ideimpl.runner.StarterFactoryDescriptionImpl logError
    SEVERE: Incorrect hash-structure value in starter-factory definition
    Jan 16, 2013 8:52:10 PM oracle.ideimpl.runner.StarterFactoryDescriptionImpl logError
    SEVERE: Incorrect hash-structure value in starter-factory definition
    But I don't know what could be the next step... Could anyone help me? Thanks in advance for your attention!
    Edited by: user12144197 on 22.01.2013 0:42

    Hi,
    not sure if you have a support contract or work for Oracle. In both cases the best option is to file a bug (service request)
    Frank

  • Photoshop CS3 Hangs when opening files

    PS hangs when opening, duplicating images. The longer it's on the longer the wait. I'm talkin' 15 - 20 seconds. Deleted the prefs multiple times.
    Anybody else having this problem?

    Set your default printer to something local, that is actually hooked up.
    When Photoshop creates the document, it asks for the default printer information - and your printer driver is taking a nap while trying to connect to the printer.

  • Adobe reader XI crash and hangs when open the pdf file

    After update the adobe reader xi 11.0.10, the reader always crashes and hangs when open the pdf file. Please help me how to do.

    Ben Leung wrote:
    HThis situation is started after I clear the pop up advertisement.
    What kind of advertisement?  In Adobe Reader?  Can you post a screenshot of that: https://forums.adobe.com/thread/1070933
    Regarding the crash, can you try disabling Protected Mode through the registry: download, unzip, then run the registry script https://files.acrobat.com/a/preview/49eeb48b-07c5-4502-984c-8a25259914fa

  • Microsoft Word Hangs When Opening Document From SharePoint 2010 Document Library

    I am running into an issue where Word hangs when opening certain files from a document library.  When the issue occurs, Word opens and hangs at the Downloading <Doc URL> stage.  I have tried disabling the SharePoint plugins in IE and that
    makes no difference.  I can download a local copy of the file and open in just fine.  The file in questions exists in a separate document library where it can be opened just fine (The file was copied to the library where the issue is occurring by
    a Workflow).  The issue also has only occurred on .docx files and not .doc, however, not all docx files are having the issue.
    Does anyone have any thoughts on what might be causing this?
    Thanks.

    Hi,
    According to your post, my understanding is that when you opened a certain files from a document library, it hanged at the downloading stage.
    I tried to reproduce the issue, after coping by a workflow, the .docx files opened well in my environment.
    Did the issue occur in other documents libraries? You can copy the files to a new documents library by workflow, then check whether it works.
    For more details we also can check the SharePoint ULS logs.
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Have you check your IE settings (Tools->options->connections->LAN settings->uncheck Automatically detect settings).
    Please also use fidder tools to detect the process. You can download it by the following link.
    http://fiddler2.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    Hi rmarchione,
    Can you try restoring preferences and let us know if it helps?
    Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6
    Thanks,
    Preran

  • Dreamweaver hangs when opening

    Running DW MX 2004, with updater 7.0.1 applied, on a Sony PC
    with Win XP, DW hangs when opening. I have waited as long as 10
    minutes to see it it every responds, and it doesn't.
    I have to CTRL-ALT-DEL and terminate the application. When
    re-opening, it opens normally.
    Not connected to a network, site files on local C drive.
    It seems to have started happening after applying the 7.0.1
    updater.
    Anyone have any solutions to this?

    Hi JillTW,
    DW 7 had some serious time lags. Search the
    Macromedia.Dreamweaver groups on
    Google's groups for slow DW and look for postings over a year
    old. The fixes
    they discuss may help solve your lockup problem.
    If you are working on a large site, 10 minutes might not be
    enough time for
    DW 7 to resolve cache issues. Look at your Task Manager to
    see if it is
    working (high cpu usage on Dreamweaver.exe) or not
    responding. Even if it is
    not responding a high CPU usuage may mean it is in progress
    and just
    ignoring the keyboard/mouse.
    Also, you might want to try to clear the site cache (or just
    check its
    size - a little one should not take long to process even if
    corupt) before
    starting DW. Adobe tells how to remove the cache here:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=5989f7f4
    Look for the cache in: C:\Documents and
    Settings\<user>\Application
    Data\Macromedia\Dreamweaver MX 2004\Configuration\SiteCache
    The file is named: {yoursitenamehere}.dws
    I suggest moving it to another folder for safe keeping until
    you know if
    this is the problem.
    Upgrading to DW8 is a major improvement in speed.
    Best of luck,
    Alan C
    alan (a t) cates-associates (d ot) net
    http://www.cates-associates.net
    "JillTW" <[email protected]> wrote in
    message
    news:e81a5o$cpf$[email protected]..
    > Running DW MX 2004, with updater 7.0.1 applied, on a
    Sony PC with Win XP,
    > DW
    > hangs when opening. I have waited as long as 10 minutes
    to see it it every
    > responds, and it doesn't.
    >
    > I have to CTRL-ALT-DEL and terminate the application.
    When re-opening, it
    > opens normally.
    >
    > Not connected to a network, site files on local C drive.
    >
    > It seems to have started happening after applying the
    7.0.1 updater.
    >
    > Anyone have any solutions to this?
    >

  • Latest Reader Hangs when opening any pdf with 'tools' selected

    Any pdf will hang when opened in the latest Acrobat Reader (Either from file or open Acrobar Reader first.)
    However if I first open Reader and turn off the tools (Tools top right) I can then open any pdf without problems.
    Users who want to have the tools bar open are querying this.
    Can anyone help.
    Windows 7 64 bit systems.

    Try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • Dreamweaver CS6 hangs when opening file

    Starting recently Dreamweaver CS6 hangs for 30 seconds or more, sometimes saying not responding, when I open an HTML file. It appears to do this when the file contains links to external places. To test I created a file that contained nothing except the "new HTML file" basic headers, saved the file, then opened. This test file did not hang.
    I have tried the registry fix "ResolveRemoteURLToIPAddress FALSE" and deleting the personal configuration directory (with Dreamweaver closed). Neither of these solved the problem. Dreamweaver still hangs when opening a file.
    Any other ideas?
    Barry.

    Once the document opens, check the code for any protocol relative links (links that start with // rather than http://) and change them to http:// links, at least during development. It is a know issue to Adobe and will cause what you describe.
    If you don't have any protocol relative links, links to third party sites can cause issues from time to time if their servers are slow or have any kind of conflict with your network. Unless you absolutely can't, you may want to copy those external scripts to your local site and link to the local versions instead, again, during development.

  • InDesign CS6 (8.1) hangs when opening documents, intermittent

    InDesign CS6 (8.1) hangs when opening documents, intermittent, and a document that hangs InDesign, after restarting InDesign, will open fine. I found the following track, Re: InDesign CS5.5 Not Responding  for instructions to "force a hang into a crash" and am posting the crash logs to  pastebin.com
    This is the sample process report OPI_Sample9MAY15 - Pastebin.com
    This is the corresponding InDesign Crash log OPI_InDesignCrashLog9MAY15 - Pastebin.com
    I am hoping that someone might be able to read the logs and tell me what is causing InDesign to hang
    For more background information we are using Mac OS X 10.10.3, Within indesign we are using an editorial management software called "NewsEngin GPS" that utilizes Rohohiko's ADIP ToolAssistant plugin and an advertising management plugin "Pagelink" from Mactive/NewsCycle Solutions. These are the only 3 third party vendors that are being used and of course all claim that their products separately are stable under Mac OS 10.10 and InDesign CS6 v8.1.

    Did you try to export the INDD file to IDML, open that and work with the new files?

  • After installing the latest upgrade firefox just hangs when opening - was fine before. have tried deleting restore session but worse not better now

    after installing the latest upgrade firefox just hangs when opening - was fine before. have tried deleting restore session but worse not better now. no change with firewall.
    == This happened ==
    Every time Firefox opened
    == yesterday, after installing the upgrade ==
    == User Agent ==
    Opera/9.80 (Windows NT 5.1; U; en-GB) Presto/2.5.24 Version/10.54

    I'm using Mac OS 10.4.11 & even typing this message the characters appear so slowly that I could get a hammer and chisel and inscribe the words faster than the new Firefox runs. WTF?

  • No audio capture device detected Osprey 240e

    I have recently installed Adobe Flash Media Encoder (AFME).  I have installed the Osprey 240e video/audio capture card.  At first, the Osprey 240e was detected by the AFME.  Now AFME is telling me there is no audio device detected.  The video part seems to be fine.
    I have:
    1. Rebooted the computer AFME is installed on
    2. Reinstalled AFME
    3. Reinstalled the Osprey 240e drivers (reboot computer again).
    When I start the AFME program, it still indicates not audio capture device detected.  Any ideas on how to resover the issue.

    You may need to open a support case with Viewcast. They have always been very responsive when I have had problems/questions.

  • Media Encoder not finding "audio capture device"

    Hi,
    Im using Adobe Flash Media Encoder with Dxtory for Twitch streaming, and at first it worked fine. Recorded both my mic and game audio perfectly. Then seemingly suddenly, I fired it up  and it wouldn't stream the game audio. It would my Mic, but thats it. I then unplugged the mic and it started saying I had no Audio Capture Device. I checked in Dxtory and its set up the same as it was when it was working. It picks up both the mic and speakers like it should. I have uninstalled this program multiple times, both 3.1 and 3.2 versions, and each time when I re-download it, it loads up the same profile I had before. So when I am uninstalling it, its not uninstalling everything for some reason. Even though the program is no where to be found after its uninstalled. I have downloaded xsplit, and it picks up the game audio and my mic. So its just this program. Anyone have any ideas? I cant seem to find anything online about this issue.
    Thanks!

    From where?  PP sequence?  PP bin?  PP Source Monitor?  Watch folder?

  • Why i can not open Video Capture Device Settings in  Adobe Flash Media Live Encoder?

    Hi! I've got a problem with Adobe Flash Media Live Encoder 3.2. Why i can not open Video Capture Device Settings? I'm clicking this button, but it doesn't appear, there is just a blinking of the camera's window. Please help me, i'm looking like a shining red pig! Need to change the light or contrast.

    "The audio preview in FMLE indicates there IS audio being input"
    How do you know this?
    are you "Saving to file"? how is the audio in the saved file?
    Adninjastrator

  • How do you select two audio capture devices?

    Hi all,
    At the moment I'm simply using CaptureDeviceManager.getDeviceList to get a list of all the capture devices on my system. Now when I print this it looks like this...
    [DirectSoundCapture : dsound://
    LINEAR, 48000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 48000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 48000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 48000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 44100.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 32000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 32000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 32000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 32000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 22050.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 16000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 16000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 16000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 11025.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 8000.0 Hz, 8-bit, Mono, Unsigned
    , JavaSound audio capture : javasound://44100
    LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    Now my system actually has 2 michrophones attatched to it. At the moment I'm using DirectSoundCapture to record audio. My first question is, how do you detect multiple audio capture devices? and then of course, how can you record off of different audio capture devices?
    Anything would be helpful, if theres a tutorial somewhere on this which i've missed somehow, please tell me. I'm probably missing something pretty major I figure.

    I posted in a different thread that I was using the old javax.sound.sampled library to try to record. However, using this library it was quite simple to get a list of devices which could then be used to make a SourceDataLine that could be used to record. However, I was having trouble actually recording and switched to JMF as it has more features and I thought it would be simpler to use. It probably is but I have been struggling. I can record audio in JMF fine but I cant get a device list as I could with the javax.sound.sampled library.
    I'll put the code I was working off in here anyway. It shows what I want to do, I just want to do it in JMF.
    Note that this code was written 4 years ago by a Matthias Pfisterer and not by myself.
    import javax.sound.sampled.AudioFileFormat;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.DataLine;
    import javax.sound.sampled.Line;
    import javax.sound.sampled.LineUnavailableException;
    import javax.sound.sampled.Mixer;
    import javax.sound.sampled.SourceDataLine;
    import javax.sound.sampled.TargetDataLine;
         /** List Mixers.
              Only Mixers that support either TargetDataLines or SourceDataLines
              are listed, depending on the value of bPlayback.
         public static void listMixersAndExit(boolean bPlayback)
              out("Available Mixers:");
              Mixer.Info[]     aInfos = AudioSystem.getMixerInfo();
              for (int i = 0; i < aInfos.length; i++)
                   Mixer mixer = AudioSystem.getMixer(aInfos);
                   Line.Info lineInfo = new Line.Info(bPlayback ?
                                            SourceDataLine.class :
                                            TargetDataLine.class);
                   if (mixer.isLineSupported(lineInfo))
                        out(aInfos[i].getName());
              if (aInfos.length == 0)
                   out("[No mixers available]");
              System.exit(0);
    Calling this method on my system will print the following.
    Available Mixers:
    Microsoft Sound Mapper
    AK5370
    SoundMAX Digital Audio
    AK5370 (2)
    This looks very different to what I get when I call CaptureDeviceManager.getDeviceList()
    How can I achieve the equivilent in JMF?

Maybe you are looking for

  • Port replicator for W530

    I can buy a 42W4631 replicator, but I am not 100% sure if it will fit a W530. When I search the Lenovo site i see it will fit a W500. I DO NOT read a "W500-SERIES", so I'm afraid it won't fit ??? Can anyone help me please ? Thanks ! Solved! Go to Sol

  • Microsoft Office 2007 free trial

    I have had a ToshibaNB255-N245 for 3 years and have not used or activated the free trial. I do not know if the free trial has expired or how would you activate it is still available? The other thing is the 2007 version still availble if I need to pur

  • Conversion of an ObjectMessage to a BytesMessage

    Hi All, I have an asynchronous listener which is listening to messages on a queue. My Client program puts an ObjectMessage type into the queue but when I retrieve the message back from the queue, it's no more an instance of ObjectMessage but it's of

  • 2 ghz intel core i7 macbook pro 10.7.2 and itunes 10.5.1

    Hello, I have a 2 ghz intel core i7 macbook pro using 10.7.2 and and I recently updated to the current version of itunes.  Opening itunes, causes the entire machine to lock up.  There is another thread that I was able to find describing similiar issu

  • Field dominance issue?

    Hello all, Working on a project in FCP. The intended delivery format is mini-DV tape. I'm working on a sequence with the following settings: (basically NTSC DV anamorphic) Frame Size: 720x480 NTSC DV (3:2) Pixel Aspect: NTSC... 720x480 Anamorphic 16x