Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Votes

5

Found in

2020.2.0a19

2020.2.1f1

2021.1

2021.2

Issue ID

1303232

Regression

Yes

UnobservedTaskException:System.NullReferenceException is thrown when the project is built for WebGL

WebGL

-

How to reproduce:
1. Open the user's attached "TestWebGL.zip" project
2. Open the "SampleScene" Scene
3. Go to File -> Build And Run
4. Observe the application in the browser

Expected result: No errors in the Console are thrown and the game scene is loaded
Actual result: "UnobservedTaskException:System.NullReferenceException" error message in the Console and game scene is not loaded

Reproducible with: 2020.2.0a19, 2020.2.2f1, 2021.1.0b2, 2021.2.0a1
Not reproducible with: 2018.4.30f1, 2019.4.18f1, 2020.1.17f1, 2020.2.0a18

Notes:
- The issue is not reproducible in the Editor
- The issue is not reproducible in Windows Build

  1. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0a11

  2. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.8f1

  3. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.10f1

Comments (1)

  1. syeddaniyalrizvi

    Mar 13, 2021 12:08

    Player Settings -> Publish Settings -> Compression Format, Select Disabled.

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.