Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.8f1
2020.1
2020.2
Issue ID
1272870
Regression
No
[WebGL] Builds fail when Enable Exceptions is set to Full With Stacktrace
Reproduction steps:
1. Open the user's attached project
2. Make sure that Enable Exceptions is set to Full With Stacktrace in Player Settings
3. Try building for WebGL
Expected result: Build succeeds with no errors
Actual result: Build fails with Emscripten_Win errors
Reproducible with: 2019.4.9f1, 2020.1.4f1, 2020.2.0b1
Couldn't test with: 2018.4 (errors after downgrade)
Note: The issue does not reproduce on a new empty project
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
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
- Decals do not get projected onto a GameObject draw with the Render Objects Renderer Feature when according to Event it should be projected
- The Depth value is not being written correctly in the Scene view when the Full Screen Pass Renderer Feature is applied on a GameObject with the Render Object Feature
Resolution Note (2020.2.X):
Resolving this issue since a work-around was provided and there is little we can do about it until we switch the new LLVM WASM compiler.
The work-around was to change the users code to generate smaller C# functions by breaking up the Dictionary initialization into smaller sub-function calls. C++ compilers have a hard time compiling very large functions when exception handling is used, due to how it has to wrap every line to catch any potential exceptions. This exception wrapping causes the current version of Emscripten to crash due to the way it compiles exceptions. The new LLVM WASM backend compiler will not have this same issue.