locked
Microsoft Advertising for XAML - Native Ad, causing app to crash after recent Window update - KB4088776 RRS feed

  • Question

  • Hi,

    Microsoft Advertising for XAML - Native Ad is causing apps to crash after the recent Windows update '2018-03 Cumulative update for Windows 10 version 1709 for x64-based Systems (KB8088776) .

    I have two apps published in Microsoft Store that uses Native Ads. Both apps are crashing after the Windows update mentioned above. App users and my Dev Center analytics confirm that there are huge spike in app crashes this week. I have released app updates to remove Native Ad and there are no more crashes.

    Below is the Stack trace from the Dev dashboard

    Frame Image Function Offset
    0 Microsoft.Advertising.dll Microsoft::Advertising::WinRT::UI::NativeAd::[Microsoft::Advertising::WinRT::UI::__INativeAdPublicNonVirtuals]::__abi_Microsoft_Advertising_WinRT_UI___INativeAdPublicNonVirtuals____abi_add_AdClicked 0x0000000000000056
    1 DailyBingWallPaper.McgInterop.dll __Interop::ComCallHelpers.Call 0x0000000000000085 
    2 DailyBingWallPaper.McgInterop.dll __Interop::ForwardComStubs.Stub_2_System.__Canon, System.__Canon_ 0x0000000000000038 
    3 DailyBingWallPaper.McgInterop.dll Microsoft::Advertising::WinRT::UI::NativeAd.get_AdIcon 0x0000000000000019 
    4 DailyBingWallPaper.exe DailyBingWallPaper::MainPage.PopulateAdvertInChannelList 0x0000000000000074 
    5 DailyBingWallPaper.exe DailyBingWallPaper::MainPage.MyNativeAd_AdReady 0x00000000000000E4 
    6 SharedLibrary.dll System::EventHandler.Invoke 0x000000000000001C 
    7 System.Private.SharedLibrary.Interop.Generated.dll __Interop::Intrinsics.HasThisCall__52 0x000000000000001A 
    8 System.Private.SharedLibrary.Interop.Generated.dll __Interop::ReverseComStubs.Stub_42 0x0000000000000069 
    9 System.Private.SharedLibrary.Interop.Generated.dll System::EventHandler_A__o__V___Impl::Vtbl.Invoke__n 0x0000000000000036 
    10 Microsoft.Advertising.dll Platform::EventSource::DoInvokeVoid_Windows::Foundation::EventHandler_Platform::Object ^ __ptr64_,_lambda_1d0541fb8614b5b88a7662129a57302b_ _ 0x00000000000000D9 
    11 Microsoft.Advertising.dll Platform::EventSource::InvokeVoid_Windows::Foundation::EventHandler_Platform::Object ^ __ptr64_,Platform::Object ^ __ptr64,Platform::Object ^ __ptr64_ 0x0000000000000093 
    12 Microsoft.Advertising.dll Microsoft::Advertising::WinRT::UI::NativeAdsManager::AdRequestCompletedHandler 0x00000000000000E9 
    13 Microsoft.Advertising.dll Platform::Details::__abi_FunctorCapture_std::_Binder_std::_Unforced,void (__cdecl&) 0x0000000000000054 
    14 Microsoft.Advertising.dll _lambda_05a351577296f39c7de8affa3e3120a4_::operator 0x0000000000000067 
    15 MSVCP140_APP.dll Concurrency::details::_PPLTaskContextCallbackBridge 0x000000000000002B 
    16 combase.dll CRemoteUnknown::DoCallback 0x000000000000005C 
    17 rpcrt4.dll Invoke 0x0000000000000073 
    18 rpcrt4.dll Ndr64StubWorker 0x0000000000000BB0 
    19 rpcrt4.dll NdrStubCall3 0x00000000000000C9 
    20 combase.dll CStdStubBuffer_Invoke 0x0000000000000062 
    21 combase.dll ObjectMethodExceptionHandlingAction__lambda_76d9e92c799d246a4afbe64a2bf5673d_ _ 0x000000000000004B 
    22 combase.dll DefaultStubInvoke 0x00000000000002D2 
    23 combase.dll ServerCall::ContextInvoke 0x0000000000000492 
    24 combase.dll CServerChannel::ContextInvoke 0x0000000000000097 
    25 combase.dll ASTAInvokeInApartment 0x0000000000000089 
    26 combase.dll AppInvoke 0x00000000000009F7 
    27 combase.dll ComInvokeWithLockAndIPID 0x000000000000055B 
    28 combase.dll ComInvoke 0x0000000000000210 
    29 combase.dll ThreadDispatch 0x00000000000000D4 
    30 combase.dll CComApartment::ASTAHandleMessage 0x0000000000000039 
    31 combase.dll ASTAWaitContext::HandlePriorityEventsFromMessagePump 0x000000000000005E 
    32 Windows.UI.dll Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x0000000000000385 
    33 Windows.UI.dll Windows::UI::Core::CDispatcher::ProcessMessage 0x00000000000001F6 
    34 Windows.UI.dll Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal 0x00000000000000AE 
    35 Windows.UI.dll Windows::UI::Core::CDispatcher::ProcessEvents 0x000000000000007B 
    36 Windows.UI.Xaml.dll CJupiterWindow::RunCoreWindowMessageLoop 0x000000000000004C 
    37 Windows.UI.Xaml.dll DirectUI::DXamlCore::RunMessageLoop 0x000000000000004C 
    38 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::Run 0x000000000000003A 
    39 twinapi.appcore.dll _lambda_3c558768873f4b5b0b4a338b4722411c_::operator 0x00000000000000C4 
    40 SHCore.dll _WrapperThreadProc 0x00000000000000F5 
    41 kernel32.dll BaseThreadInitThunk 0x0000000000000014 

    42 ntdll.dll RtlUserThreadStart 0x0000000000000021 

    Below is a partial stack trace from Visual Studio for another of my app where Native Ad in Microsoft advertising causing app crash. ( I have masked the app name with XXXXX)

     This is the exception -  "Exception thrown at 0x0F94DE0B (vccorlib140_app.dll) in XXXXX.exe: 0xC0000005: Access violation reading location 0x00000004. occurred"


      vccorlib140_app.dll!__abi_winrt_ptr_ctor(const volatile Platform::Object ^ const __objArg) Line 388 C++ Symbols loaded.
      vccorlib140_app.dll!Platform::Details::EventSourceAdd(void * * targets, Platform::Details::EventLock * lock, Platform::Delegate ^ delegateInterface) Line 138 C++ Symbols loaded.
      Microsoft.Advertising.dll!14f92d2d() Unknown No symbols loaded.
      Microsoft.Advertising.dll!14f97383() Unknown No symbols loaded.
      [Managed to Native Transition]  Annotated Frame
    > XXXXXX.McgInterop.dll!__Interop.ComCallHelpers.Call(System.__ComObject __this, System.RuntimeTypeHandle __typeHnd, int __targetIndex, void* arg0) Line 12773 C# Symbols loaded.
      XXXXXX.McgInterop.dll!__Interop.ForwardComStubs.Stub_5<Microsoft.Advertising.WinRT.UI.__INativeAdPublicNonVirtuals, Windows.UI.Xaml.Controls.Image>(System.__ComObject __this, int __targetIndex) Line 247 C# Symbols loaded.
      XXXXXX.exe!XXXXXX.MainPage.PopulateAdvertInChannelList() Line 5128 C# Symbols loaded.
      XXXXXX.exe!XXXXXX.MainPage.MyNativeAd_AdReady(object sender, object e) Line 5102 C# Symbols loaded.
      System.Private.CoreLib.dll!System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) C# Symbols loaded.
      XXXXXX.McgInterop.dll!__Interop.Intrinsics.HasThisCall__2(object __this, System.IntPtr pfn, object arg0, object arg1) C# Symbols loaded.
      XXXXXX.McgInterop.dll!__Interop.ReverseComStubs.Stub_1(object __this, void* unsafe_sender, void* unsafe_args, System.IntPtr __methodPtr) Line 28730 C# Symbols loaded.
      XXXXXX.McgInterop.dll!System.EventHandler_A__o__V___Impl.Vtbl.Invoke__n(System.IntPtr pComThis, void* unsafe_sender, void* unsafe_args) Line 35849 C# Symbols loaded.
      [Native to Managed Transition]  Annotated Frame
      Microsoft.Advertising.dll!14f55e84() Unknown No symbols loaded.
      Microsoft.Advertising.dll!14f53339() Unknown No symbols loaded.
      Microsoft.Advertising.dll!15101553() Unknown No symbols loaded.
      Microsoft.Advertising.dll!14fab260() Unknown No symbols loaded.
      rpcrt4.dll!_NdrOleAllocate@4() Unknown Symbols loaded.
      Microsoft.Advertising.dll!15110ec6() Unknown No symbols loaded.
      Microsoft.Advertising.dll!150f904b() Unknown No symbols loaded.
      Microsoft.Advertising.dll!1505a2df() Unknown No symbols loaded.
      msvcp140_app.dll!std::_Func_class<void>::operator()() Line 350 C++ Symbols loaded.
      msvcp140_app.dll!Concurrency::details::_PPLTaskContextCallbackBridge(tagComCallData * _PParam) Line 235 C++ Symbols loaded.
      combase.dll!CRemoteUnknown::DoCallback(tagXAptCallback * pCallbackData) Line 1713 C++ Symbols loaded.
      rpcrt4.dll!_Invoke@12() Unknown Symbols loaded.
      rpcrt4.dll!_NdrStubCall2@16() Unknown Symbols loaded.
      combase.dll!CStdStubBuffer_Invoke(IRpcStubBuffer * This, tagRPCOLEMESSAGE * prpcmsg, IRpcChannelBuffer * pRpcChannelBuffer) Line 1527 C++ Symbols loaded.
      [Inline Frame] combase.dll!InvokeStubWithExceptionPolicyAndTracing::__l6::<lambda_1ba7c1521bf8e7d0ebd8f0b3c0295667>::operator()() Line 1825 C++ Symbols loaded.
      combase.dll!ObjectMethodExceptionHandlingAction<<lambda_1ba7c1521bf8e7d0ebd8f0b3c0295667> >(InvokeStubWithExceptionPolicyAndTracing::__l6::<lambda_1ba7c1521bf8e7d0ebd8f0b3c0295667> action, ObjectMethodExceptionHandlingInfo * pExceptionHandlingInfo, ExceptionHandlingResult * pExceptionHandlingResult, void *) Line 91 C++ Symbols loaded.
      [Inline Frame] combase.dll!InvokeStubWithExceptionPolicyAndTracing(IRpcStubBuffer * pMsg, tagRPCOLEMESSAGE *) Line 1823 C++ Symbols loaded.
      combase.dll!DefaultStubInvoke(bool bIsAsyncBeginMethod, IServerCall * pServerCall, IRpcChannelBuffer * pChannel, IRpcStubBuffer * pStub, unsigned long * pdwFault) Line 1892 C++ Symbols loaded.
      [Inline Frame] combase.dll!SyncStubCall::Invoke(IServerCall *) Line 1949 C++ Symbols loaded.
      [Inline Frame] combase.dll!SyncServerCall::StubInvoke(IRpcChannelBuffer *) Line 807 C++ Symbols loaded.
      [Inline Frame] combase.dll!StubInvoke(tagRPCOLEMESSAGE * pMsg, CStdIdentity * pStdID, IRpcStubBuffer *) Line 2175 C++ Symbols loaded.
      combase.dll!ServerCall::ContextInvoke(tagRPCOLEMESSAGE * pMessage, IRpcStubBuffer * pStub, CServerChannel * pChannel, tagIPIDEntry * pIPIDEntry, unsigned long * pdwFault) Line 1538 C++ Symbols loaded.
      combase.dll!CServerChannel::ContextInvoke(tagRPCOLEMESSAGE * pMessage, IRpcStubBuffer * pStub, tagIPIDEntry * pIPIDEntry, unsigned long * pdwFault) Line 1435 C++ Symbols loaded.
      combase.dll!DefaultInvokeInApartment(tagRPCOLEMESSAGE * pMsg, unsigned long bIsTouchedASTACall, bool pStub, IRpcStubBuffer * pChnl, CServerChannel * pIPIDEntry, tagIPIDEntry * pdwFault, unsigned long *) Line 3540 C++ Symbols loaded.
      combase.dll!ASTAInvokeInApartment(tagRPCOLEMESSAGE * pMsg, unsigned long bIsTouchedASTACall, bool pStub, IRpcStubBuffer * pChnl, CServerChannel * pIPIDEntry, tagIPIDEntry * pdwFault, unsigned long *) Line 3045 C++ Symbols loaded.
      combase.dll!AppInvoke(ServerCall * pServerCall, CServerChannel * pChannel, IRpcStubBuffer * pStub, void * pv, void * pStubBuffer, tagIPIDEntry * pIPIDEntry, WireLocalThis * pLocalb) Line 1612 C++ Symbols loaded.
      combase.dll!ComInvokeWithLockAndIPID(ServerCall * pServerCall, tagIPIDEntry * pIPIDEntry, bool * pbCallerResponsibleForRequestMessageCleanup) Line 2723 C++ Symbols loaded.
      combase.dll!ComInvoke(ServerCall * pServerCall, bool * pbCallerResponsibleForRequestMessageCleanup) Line 2247 C++ Symbols loaded.
      combase.dll!ThreadDispatch(ServerCall * pServerCall) Line 421 C++ Symbols loaded.
      combase.dll!CComApartment::ASTAHandleMessage(IMessageParam * pParam) Line 2786 C++ Symbols loaded.
      combase.dll!ASTAWaitContext::HandlePriorityEventsFromMessagePump() Line 1261 C++ Symbols loaded.
      Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessInvokeItem(bool * pbInvokeItemProcessed) Line 1219 C++ Symbols loaded.
      Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessMessage(bool bDrainQueue, bool * pbWindowMessagesProcessed, bool * pbInvokeItemProcessed) Line 268 C++ Symbols loaded.
      Windows.UI.dll!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal(bool bRunAlwaysOnce, void * hEventWait) Line 1860 C++ Symbols loaded.
      Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) Line 597 C++ Symbols loaded.
      [Inline Frame] Windows.UI.Xaml.dll!CJupiterWindow::RunCoreWindowMessageLoop() Line 1260 C++ Symbols loaded.
      [Inline Frame] Windows.UI.Xaml.dll!CJupiterControl::RunMessageLoop() Line 966 C++ Symbols loaded.
      [Inline Frame] Windows.UI.Xaml.dll!DirectUI::DXamlCore::RunMessageLoop() Line 2132 C++ Symbols loaded.
      Windows.UI.Xaml.dll!DirectUI::FrameworkView::Run() Line 102 C++ Symbols loaded.
      twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationView::Run() Unknown Symbols loaded.
      twinapi.appcore.dll!<lambda>(void)() Unknown Symbols loaded.
      SHCore.dll!_WrapperThreadProc() Unknown Symbols loaded.
      kernel32.dll!@BaseThreadInitThunk@12() Unknown Symbols loaded.
      ntdll.dll!__RtlUserThreadStart() Unknown Symbols loaded.
      ntdll.dll!__RtlUserThreadStart@8() Unknown Symbols loaded.

    • Moved by Barry Wang Monday, April 9, 2018 7:15 AM AD related issue
    Saturday, April 7, 2018 6:55 AM

Answers

  • Hi vbfnet,

    We updated Ads SDK on 9th May. Terribly sorry for not communicating earlier. This SDK should have reached all the machines by now (since we push the updates automatically). If you need the latest SDK its available here 

    https://marketplace.visualstudio.com/items?itemName=AdMediator.MicrosoftAdvertisingSDK

    Thanks!


    Prarthana

    • Marked as answer by vbfnet Sunday, May 27, 2018 5:14 AM
    Saturday, May 26, 2018 8:08 AM

All replies

  • Hello,

    I'm moving your case to AD SDK forum which is the right forum for your issue.

    Best regards,

    Barry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, April 9, 2018 7:17 AM
  • Hi vbfnet,

    Thanks for informing this issue. We are aware of this crash and we rolled out another release of Ads SDK which should stop causing this crash. The roll out should be available within a week. 

    Thanks for your patience. Terribly sorry for all the inconvenience caused.

    Thanks,


    Prarthana


    Monday, April 9, 2018 7:45 AM
  • Hi Prarthana,

    Thank you for the update. Will wait for the new Ads SDK rollout.

    Best regards

    Francis

    Monday, April 9, 2018 7:48 AM
  • Hi,

    Is there any update about Ads SDK? Is there a new update available

    Thanks

    Francis

    Sunday, May 6, 2018 10:19 AM
  • Hi vbfnet,

    We updated Ads SDK on 9th May. Terribly sorry for not communicating earlier. This SDK should have reached all the machines by now (since we push the updates automatically). If you need the latest SDK its available here 

    https://marketplace.visualstudio.com/items?itemName=AdMediator.MicrosoftAdvertisingSDK

    Thanks!


    Prarthana

    • Marked as answer by vbfnet Sunday, May 27, 2018 5:14 AM
    Saturday, May 26, 2018 8:08 AM
  • Hi Prarthana,

    Thanks for the update. I download the new Ads SDK two weeks ago and everything is working fine.

    Best regards

    Francis

    Sunday, May 27, 2018 5:14 AM