Vungle / Windows-SDK

Other
21 stars 8 forks source link

Vungle SDK throws exception between resumed and suspended state #7

Open mateuszjanczewski opened 7 years ago

mateuszjanczewski commented 7 years ago

We've encountered an issue with Vungle SDK 1.3.15 integrated to C++ UWP app on PC platform. Sometimes, when an application is resumed from suspended state, Vungle SDK throws an exception (please find attached callstack).

Before the exception is thrown, following log is emitted from Vungle SDK:

VundgleAd SDK message [trace]: Suspending SDK with deadline 18.11.2016 23:20:25 +01:00 (5s) VundgleAd SDK message [error]: Session end fails VundgleAd SDK message [trace]: Suspending complete

After some investigation, we suspect that issue with suspending/resuming application is connected with .NET Native. The issue can be reproduced only when .NET Native compilation is turned on. Unfortunately, it's a certification requirement for UWP apps to have it turned on when managed code is used. Please also note, that our app is written entirely in in C++, but we had to follow certification requirements and turn on .NET Native after Vungle SDK integration.

vungle sdk exception.txt

We've also been able to crash the example project using Release build and changing states with Lifecycle events.

ii_15879bda0fc914e6