Search Issue Tracker
Active
Votes
0
Found in
2022.3.63f1
6000.0.51f1
6000.1.7f1
6000.2.0b6
Issue ID
UUM-109244
Regression
No
Crash/Memory leak in a WebGL build when executing a very large switch statement multiple times
Reproduction steps:
1. Open the attached project ("100067_Repro")
2. Build and Run the project for WebGL
3. In the build, press the "Large switch" button
Expected result: The build continuously runs the switch statement every frame
Actual result: The build browser tab crashes after a few seconds
Reproducible with: 2022.3.63f1, 6000.0.51f1, 6000.1.7f1, 6000.2.0b6
Reproducible on: Windows 11 (User), MacOS 15.5 (Intel)
Not reproducible on: No other environment tested
Notes:
1. The build works without issues if every case in the switch statement is split into its own method. This can be tested by pressing the "Large switch func" button instead of the "Large switch" one
2. The memory leak/crash does not occur in the Editor
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Add comment