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

IL2CPP

-

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

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0b1
    No longer crashes

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.6f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.