Search Issue Tracker

Fixed in 5.3.0

Votes

0

Found in

5.0.0b21

Issue ID

706979

Regression

No

The Windows standalone player has a default SynchronizationContext set

Mono

-

To reproduce:
1. Create a new Unity project.
2. Add a script to a game object with this code:
void Awake()
{
if (System.Threading.SynchronizationContext.Current != null)
{
Debug.LogError("A default SynchronizationContext is set!");
}
}
3. Build a Windows standalone player (development build)
4. Notice error message
5. Run scene in editor
6. Notice that error doesn't appear

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.