Search Issue Tracker
Fixed
Fixed in 2022.3.62f3, 6000.0.52f1, 6000.1.8f1, 6000.2.0b6, 6000.3.0a1, 7000.0.0a35
Votes
2
Found in
2022.3.62f1
6000.0.49f1
6000.1.2f1
6000.2.0a10
6000.3.0a1
Issue ID
UUM-108093
Regression
Yes
Memory Leak When Using Rigidbody2D Physics in WebGL
UPDATE 25/10/2025:
The user-submitted project is for 6000.1.4f1 so to make this easier to validate in the re-spin of 2022.3.62f3, I've attached a new project that easily reproduces the issue.
- Unzip the attached "UUM-108093-LEAKTEST.zip"
- Load the "LeakTest" scene and hit "Play"
- Observe the "Allocated: XXX MB" value in the bottom-right of the Editor (see attached "UUM-108093-LEAKTEST.png" image)
Expected: It stays (approximately) at the same value
Actual: The value climbs without end, eventually leading to a crash due to the Editor running out of memory.
Using 2022.3.62f2 we leak memory whereas using 2022.3.62f3 that incorporates a fix that landed in 2022.3.64f1 does not.
—
Original User Message:
When running Rigidbody physics on WebGL, “Unknown” in the memory profiler keeps increasing.
Even after destroying the Rigidbody, the memory is not released.
1. Launch the program
2. Instantiate several objects
3. Wait for a short period
4. Take a snapshot with the profiler
5. Check "Unknown" under "All of Memory"
Disabling the simulated property of the Rigidbody2D prevents the memory increase.
Therefore, I concluded that the issue is related to 2D physics calculations.
It might also be occurring in the editor, but since I am checking it using WebGL diagnostics, I am treating it as a WebGL issue.
Comments (2)
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
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
- "GetControlID at event ValidateCommand returns a controlID different from the one in Layout event" Warning is thrown when undoing the deletion of Sprite Shape Profile
- Memory related fields in the "WebAssembly Language Features" can be set to the negative numbers
- "WebAssembly Language Features" Header in the Player Settings has a smaller indentation
esc-games
Nov 24, 2025 19:29
Also in iOS builds as well. For every 100 contacts, physics allocates around ~15 MB native memory and never returns it back
nccsoftNilez
Jun 02, 2025 16:24
This also happens in the editor indeed, also in android aswell.