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

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.