none
[UWP][WinJS] App shutdown with 'Access violation' after updating Microsoft Ads SDK to last version

    Question

  • Hi! 

    I updated Microsoft Ads SDK to last version (10.1807.9.0) and now, my app exite every time when ad is called. App exite without errors, but in output log in Visual Studio I see:

    The program '[12568] WWAHost.exe" has exited with code -1073741819 (0x0000005) 'Access violation'  

    Before the update, everything worked without problems. I tried to use test ad's values and id's, but I get the same result. Why it happens?

    I use Visual Studio 2017, App target version SDK 10.0.17763.0, Microsoft Ads SDK 10.1807.9.0

    Wednesday, February 13, 2019 10:27 AM

All replies

  • Hello!

    I'm using simple example from here: https://docs.microsoft.com/en-us/windows/uwp/monetize/interstitial-ad-sample-code-in-javascript

    Changing `MicrosoftNSJS.Advertising.InterstitialAdType.video` to `MicrosoftNSJS.Advertising.InterstitialAdType.display` cause app to crash on requestAd.
    Video ads are working fine.
    I wanted to attach a screenshot, but your system doesn't allow me.

    Any fix for that?
    Thank you!


    Tuesday, February 12, 2019 8:21 PM
  • Hi hujvam,

    I test the sample with video and display, both of them run correctly. What's your Advertising SDK version and application targeted? Is it a JavaScript WinJS App (Universal Windows) project ? Did you clean and rebuild your app after the replacement? 

    Best regards

    Daisy  Tian


    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.

    Wednesday, February 13, 2019 5:49 AM
    Moderator
  • Yep, I have similar problem here:

    https://social.msdn.microsoft.com/Forums/en-US/eb935682-fc4d-4d3b-917d-bc0771322b1f/uwpwinjsmicrosoft-ads-interstitial-requestad-crash?forum=aiasdk


    • Edited by hujvam Wednesday, February 13, 2019 3:34 PM
    Wednesday, February 13, 2019 3:31 PM
  • Both VS and Ads SDK were installed a week ago, so latest versions.

    It is JavaScript WinJS App (Universal Windows) project, I just copy/pasted everything from sample.

    As I said, video ad is working, display is crashing.

    Here is the similar problem from another user: https://social.msdn.microsoft.com/Forums/en-US/0b5b9742-2511-40e4-b1fb-4599fd972e4d/uwpwinjs-app-shutdown-with-access-violation-after-updating-microsoft-ads-sdk-to-last-version?forum=aiasdk

    I still can't post screenshots here, because of the "Body text cannot contain images or links until we are able to verify your account". Any fix for this forum thing as well???

    Crash screenshot: https://drive.google.com/open?id=1Cm9BBLarqa_Y_NdYaDMDtYTpPy6ZeRce

    VS and SDK versions: https://drive.google.com/open?id=1gD5PDQcUtyi_N1cX1SRddfqn7ZSIcxGu

    App target: https://drive.google.com/open?id=11cXBAWkLV36RiQ0VSLz6Ytxp1VuUuSFr

    I also tried to see requests with Fiddler, again with video ad everything is fine and I see all the requests. With display there is no request at all, app crashes before making any.


    • Edited by hujvam Wednesday, February 13, 2019 4:14 PM
    Wednesday, February 13, 2019 3:53 PM
  • Hi creakosta,

    it is also the interstitial ad or others?According to your description,your problem seems to be caused by the latest ads SDK. Could you provide more details for us to reproduce issue which will beneficial to the team to solve it.

    Best regards

    Daisy  Tian


    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.

    Thursday, February 14, 2019 6:29 AM
    Moderator
  • Hi hujvam,

    I can reproduce your issue and merge your similar thread to this in order to report to the related team. 
    >"Body text cannot contain images or links until we are able to verify your account"

    Please reply this discussion thread with 'Please Verify my account'.After a few days, you could add image in your thread.

    Best regards

    Daisy Tian


    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.

    Thursday, February 14, 2019 6:36 AM
    Moderator
  • Hi Daisy Tian!

    I tested and can confirm that video ad is working for me too, but interstitial and banner ads is shutdowning app with 'Access violation'.

    Thursday, February 14, 2019 9:55 AM
  • Hey Daisy!

    Thanks, hope it will be fixed soon.

    Thursday, February 14, 2019 9:08 PM
  • Hi all,

    @ creakosta Thanks for your added details. I will update here if I got the solution from the related team. Sorry for any inconvenience.

    Best regards

    Daisy  Tian


    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.

    Friday, February 15, 2019 2:27 AM
    Moderator
  • Hello!

    Any update on that?

    It's been a week, this is a major issue, I can't release my games!!!

    Thursday, February 21, 2019 9:29 PM
  • Hi Daisy Tian!

    Do you have any news about this problem? I'm also can't release my game.

    Tuesday, February 26, 2019 12:31 PM
  • As usual, poor support from MS.
    Tuesday, February 26, 2019 3:06 PM
  • Hi all,

    The team is working on this SDK issue,please be patient and sorry for any inconvenience.

    Best regards

    Daisy  Tian


    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.

    Wednesday, February 27, 2019 6:53 AM
    Moderator
  • Where can I download previous (working) version of SDK???
    Thursday, March 7, 2019 3:16 PM
  • Hello hujvam!

    Do you found any previous version of SDK?

    Thursday, March 21, 2019 1:28 PM
  • Hey creakosta!
    No, I couldn't find.
    Do you still have older version?
    Thursday, March 21, 2019 6:08 PM
  • I have the msi installer for the previous version but I don't know if I can share it. 

    You can always install an older version from 2017 via NuGet package manager.


    • Edited by manfc Friday, March 22, 2019 1:10 AM
    Friday, March 22, 2019 1:05 AM
  • Hello manfc !

    It would be great if you shared a link to your msi installer! 

    Friday, March 22, 2019 1:58 PM
  • There you have it: https://dropfiles.org/4nu
    Friday, March 22, 2019 7:51 PM
  • Thank you manfc, but this older SDK crashes the same way for me.

    • Edited by hujvam Monday, March 25, 2019 9:13 PM ms suxxx
    Friday, March 22, 2019 10:17 PM
  • Hi all!

    Yes, it also does not work for me. I tried installing the old version of Visual Studio, the Windows SDK and Ads SDK, but I got the same result. Apparently the problem is not in the ad sdk, perhaps the ad server incorrectly processes the request or something like that.

    Tuesday, March 26, 2019 8:36 AM
  • Hello Daisy Tian

    Do you have any information about when this error will be fixed, a month has passed.

    Wednesday, April 10, 2019 3:15 PM
  • Hello Daisy Tian

    Do you have any information about when this error will be fixed, a 4 month has passed.

    Wednesday, June 12, 2019 1:41 PM