Search Issue Tracker
Third Party Issue
Third Party Issue in 2022.3.X
Votes
0
Found in
2021.3.16f1
2022.3.0f1
Issue ID
UUM-45835
Regression
No
Unity Player crashes when built for UWP and using HttpClient.GetAsync()
1. What happened
The Unity Player crashes in native code after executing HttpClient.GetAsync() in a script. The crash only happens when using UWP, building for ARM64 and running on the Hololens 2. It does not crash when the platform is set to standalone PC or when set to UWP and built and ran on your local machine (eg, x64). It also crashes when the same project is built using Unity 2021.3.16 and 2022.3.0. In the attached project, the script calling HttpClient.GetAsync() is called SignInBehaviour and is triggered by pressing the "Login" button within the game. The project only crashes on ‘Release’ builds. It just gives an error when in the ‘Debug’ build configuration.
2. How can we reproduce it using the example you attached
1. Set the build platform to Universal Windows Platform with the build settings set to target the latest Windows SDK (10.0.22621.0) and the Build Configuration to ‘Release’.
2. Build the project in Unity.
3. Open the built project solution in Visual Studio 2019/2022 that has the Universal Windows Platform workload installed.
4. Build the solution for ARM64 and run it on the Hololens 2.
5. When the player is running, click the "login" button in the centre of the window.
6. Observe the crash.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
Resolution Note:
Issue can be fixed by installing MSVC v143 - VS 2022 C++ ARM64/ARM64EC build tools (v14.37-17.7)
Resolution Note (2022.3.X):
Issue can be fixed by installing MSVC v143 - VS 2022 C++ ARM64/ARM64EC build tools (v14.37-17.7)