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
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
-
syeddaniyalrizvi
Mar 13, 2021 12:08
Player Settings -> Publish Settings -> Compression Format, Select Disabled.
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a11
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.8f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.10f1