locked
Multiple Views sample showing lots of "A COM call to an ASTA was blocked" messages

    Question

  • Hi,

    We are using code from the multiple views sample and we receive lots of messages:

    0x8000001F: A COM call to an ASTA was blocked because the call chain originated in or passed through another ASTA. This call pattern is deadlock-prone and disallowed by apartment call control.

    However these also occur in the sample but I can't see anything from the stack trace:

      KernelBase.dll!RaiseException
      combase.dll!SendReport
      combase.dll!RoOriginateErrorW
      combase.dll!BlockAstaToAstaCallChain
      combase.dll!CRpcChannelBuffer::CheckForAndHandleAstaToAstaCallChain
      combase.dll!CRpcChannelBuffer::InitCallObject
      combase.dll!CRpcChannelBuffer::NegotiateSyntaxWithProxyIID
      combase.dll!NdrExtNegotiateTransferSyntax
      rpcrt4.dll!NdrpClientCall3
      combase.dll!ObjectStublessClient
      combase.dll!ObjectStubless
      mshtml.dll!COmWindowProxy::SecureObject
      mshtml.dll!COmWindowProxy::UnmarshalInterface
      combase.dll!CustomUnmarshalInterface
      combase.dll!_CoUnmarshalInterface
      combase.dll!CoGetInterfaceAndReleaseStream
    > mshtml.dll!`CBackgroundInfo::Property<class CBackgroundImage>(int)'::`7'::`dynamic atexit destructor for 'fieldDefaultValue''(void) Unknown
      mshtml.dll!CMessagePort::HandlePostMessage
      mshtml.dll!CMessagePort::HandleNotification
      mshtml.dll!CMessageDispatcher::ProcessNotification
      mshtml.dll!GlobalWndOnPaintPriorityMethodCall
      mshtml.dll!GlobalWndProc
      user32.dll!UserCallWinProcCheckWow
      user32.dll!DispatchClientMessage
      user32.dll!__fnDWORD
      ntdll.dll!KiUserCallbackDispatcherContinue
      user32.dll!NtUserDispatchMessage
      user32.dll!DispatchMessageWorker
      Windows.UI.dll!Windows::UI::Core::CDispatcher::WaitAndProcessMessages
      Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents
      WWAHost.exe!CoreWindowDispatcher::RunMessageLoop
      WWAHost.exe!WebInstance::Run
      twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationView::Run
      twinapi.appcore.dll!Microsoft::WRL::Details::RuntimeClass
      SHCore.dll!SHWaitForThreadWithWakeMask
      kernel32.dll!00007ffbcfde16ad
      ntdll.dll!RtlUserThreadStart

    So how can I find out what is causing the issue?  

    It would appear that messages don't always make the secondary views and so I would like to eliminate this as a potential cause.

    Thanks

    Thursday, December 11, 2014 11:35 AM

Answers

All replies

  • Does the source sample have the same errors?  Can you post a link to the sample you are using if it does?  If not can you post a simple repro of the issue?

    Jeff Sanders (MSFT)

    @jsandersrocks - Windows Store Developer Solutions @WSDevSol
    Getting Started With Windows Azure Mobile Services development? Click here
    Getting Started With Windows Phone or Store app development? Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

    Friday, December 12, 2014 3:09 PM
    Moderator
  • Hi Jeff,

    Thanks for taking a look.  I downloaded the sample from:

    https://code.msdn.microsoft.com/windowsapps/Multiple-Views-Sample-2582fcf3

    I then run the Javascript under the debugger (Visual Studio 2013 update 4), debug type = Native & script, select scenario 1, create new view, show selected view as standalone, close selected view.

    Output window shows the ASTA messages.

    Thanks 

    Friday, December 12, 2014 4:13 PM
  • Hey WBGB,

    Thanks for the repro.  These are first chance exceptions that are handled internally and can be ignored.


    Jeff Sanders (MSFT)

    @jsandersrocks - Windows Store Developer Solutions @WSDevSol
    Getting Started With Windows Azure Mobile Services development? Click here
    Getting Started With Windows Phone or Store app development? Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

    Friday, December 12, 2014 5:09 PM
    Moderator
  • Hi Jeff,

    We have extended the sample to send our custom messages to the secondary views and we believe that occasionally the messages are getting lost.  All we see in the output is streams of these messages so are you certain the issue is not related?  Having a sample that produces these errors in not ideal, any chance the sample could be improved to eliminate them?

    Thanks.

    Friday, December 12, 2014 6:08 PM
  • I will file your request with the sample code team.  Note there is no telling if/when they will fix this.  If you require personal support with your issue please open a support case.  Alternatively you can post a simplified repro of your problem and perhaps someone can see if this issue is related to your problem in any way.

    Jeff Sanders (MSFT)

    @jsandersrocks - Windows Store Developer Solutions @WSDevSol
    Getting Started With Windows Azure Mobile Services development? Click here
    Getting Started With Windows Phone or Store app development? Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

    Friday, December 12, 2014 6:20 PM
    Moderator
  • I will try and provide a repro with minimum changes to the sample.

    Thanks for your help. 

    Friday, December 12, 2014 6:34 PM