Search Issue Tracker
Won't Fix
Votes
1
Found in
2017.4.0f1
2018.3.0a10
2018.3.1f1
Issue ID
1117306
Regression
No
WebGL crash inside GC
How to reproduce:
1. Open the attached "UnityTest.zip"
2. Build and run the project on WebGL
3. Copy 'content' folder from UnityTest/content to the built project folder
4. In the opened browser go to Developer Tools -> Console
5. Several times refresh the 'index.html' page till console will throw ''Crash function"
Actual results: WebGL Player crash
Reproducible: 2017.4.20f2, 2018.3.7f1
Not reproducible: 2019.1.0b4, 2019.2.0a5
Can't reproduce:
2018.3.0a1- 2018.3.0a9, because of "NullReferenceException: Object reference not set to an instance of an object." errors
2019.1.0b4, 2019.2.0a1 - "Crash function" is reproducible, but not crash
2019.2.0a6 - "Build completed with a result of 'Failed'
Comments (1)
-
vvvvalentin
Mar 05, 2019 06:55
Changing XmlDocument to XDocument in the code fixes the issue.
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
- “Look Dev” window restored from previous HDRP project causes errors in newly created URP project
- Shader Variant creation window gets stretched out when canceling
- Validation message "Profile name is unsupported" is unclear and does not provide information on what is wrong
- Enabling Override Variant Limit toggle Warning Threshold value gets set to 8
- Missing space in Shader Graph project settings
Resolution Note:
To work around this problem call Dispose explicitly on XmlNodeList or XmlElementList objects. The finalizer for XmlElementList is implemented incorrectly, as it makes use of another managed object. Finalizers are not allowed access other managed objects, and this issue is exposed on WebGL.