Closed BonAppetit34 closed 6 years ago
Thanks for reporting this. I have made a fix which should fix this issue in the latest version. Please let me know if the issue still exists after the update.
Thank you for the quick response. Unfortunately I observe the same behavior as described above with GS-SDK-CPP v2.0.2 (I replaced GameAnalytics.lib in UE4 GameAnalytics plugin v3.0.1)
I also tried, without success, the fix from https://github.com/leyyin/GA-SDK-CPP/commit/f33f220cf9dfa68edca2a19a808480d5ad0de656
I don't have any experience with std::async(), but was wondering when seeing a mutex in your implementation and reading
[...]but don't even think of using async() to launch tasks that do I/O, manipulates mutexes, or in other ways interact with other tasks.
Issue still occurs with UE 4.20.2 and GA plugin 3.0.2
Thanks, I am looking into it.
I have just released a new version of the Unreal SDK (3.0.3), you need to download the latest version of the Unreal SDK (https://github.com/GameAnalytics/GA-SDK-UNREAL) as well there is also some fixed in the Unreal files as well. Please let me know if this fixes the issue and so I know if I can close this issue or not.
Fix verified. Described issue can not be observed in GA plugin v3.0.3 anymore. Thanks again for the quick response.
Great thanks again for reporting this.
Unreal Version: 4.19.2, 4.20.2 GameAnalytics Plugin Version: 2.6.28, 3.0.1
OS/Toolchain: Windows 10, VS 2017 (v15.8.1), Win 10 SDK
Repro:
Repro Rate: 10 out of 10
Observed Behavior: Editor window closes, but process stays running in the Windows Task Manager. When attaching a debugger the call stack shows the GA Analytics plugin waiting (see call stack below).
Expected Behavior: Editor process exits properly without hanging.
Callstack:
Additional Notes: Tried to recompile GameAnalytics C++ SDK (GA-CPP_SDK v2.0.1) with VC++ v15.8.1 to ensure it is not the following VC++ standard library issue, but same behavior as described above: https://developercommunity.visualstudio.com/content/problem/257344/stdasync-can-crash-or-deadlock.html