Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
1
Found in
2021.2.0a18
2021.2.1f1
2022.1
Issue ID
1377750
Regression
Yes
Player crash on System.Net.Http.HttpClient when awaiting network response
How to reproduce:
1. Open the attached project from "BugRepro.zip"
2. Disable your internet connection
3. Navigate to "File" -> "Build Settings..." -> "Build And Run"
4. Observe the crash after the build is successful
Reproducible with: 2021.2.0a18, 2022.1.0a15
Not reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.0a17
First lines of the stack trace:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Http.HttpClient+<SendAsyncWorker>d__47.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ParameterizedThreadStart.Invoke (System.Object obj) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
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
- “Readme” Asset is unreadable in the Inspector window when switching Editor Theme to Light
- “NullReferenceException” error thrown when switching Editor Theme to Light if “Unity Version Control” tab is enabled
- A Warning is displayed in the Inspector when a Mesh with any Material is added as a Terrain Detail
- [Android][Vulkan] Memory leak when playing and stopping a video using the Video Player on some devices
- Caret moves by a character when typing "." and any number into 'Grid and Snap' toolbar's input field
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b1
No longer crashes
Resolution Note (fix version 2021.2):
Fixed in 2021.2.6f1