Search Issue Tracker
Fixed in 5.0.0
Fixed in 3.0.12, 4.1.2
Votes
2
Found in [Package]
preview.11 - 2.1.0
Issue ID
1235972
Regression
Yes
"A Native Collection has not been disposed, resulting in a memory leak" is thrown when 2D Sprite Shape Controller is disabled
How to reproduce:
1. Open user-submitted project (SpriteShapeLeak.zip)
2. Open the SampleScene
3. Enter Play Mode
4. Check the Console window
Expected result: no errors are thrown
Actual result: 'A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.'
Reproducible with: 2019.3.11f1, 2020.1.0b6, 2020.2.0a8
Could not test with: 2017.4.40f1, 2018.4.22f1(regressed package version unavailable)
Reproducible with package versions: preview.11 - 2.1.0, 4.1.0
Not reproducible with package versions: preview.10 - 2.1.0
Comments (3)
-
ahmedaniss
May 21, 2021 02:38
-
mruva
May 20, 2020 22:34
I have same issue on 2019.3.9f1 . Personally I activated again Sprite Shape Renderer and set Alpha to 0 and order in layer to -15 just to be sure it is not shown
-
harusame-
Apr 26, 2020 14:33
I have the same with spriteshapes
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
- Render Graph Execution errors when using GPU occlusion culling with 'Opaque Objects' frame setting disabled on a Camera
- Animator window: “Delete” menu item not greyed out for Base Layer context menu
- Resetting “PC_RP Asset (Universal Render Pipeline Asset)” causes Game view to become black and throws Renderer and NullReference errors in the Console window
- [Mobile] Player Crash on scripting_invoke_profiler_begin when the built Player Scene has an empty UIDocument and is built on IL2CPP
- Unnecessary Warnings are logged when running Player with -batchmode -nographics
Resolution Note (fix version 5.0.0):
Fixed in Package 2D SpriteShape 5.0.0
Resolution Note (fix version 4.1.2):
Editor Version: Unity 2020.1
Fixed in 2D SpriteShape Package Version 4.1.2
Resolution Note (fix version 3.0.12):
Fixed in 2D SpriteShape Version 3.0.12
Resolution Note (fix version 3.0.12):
Fixed in 2D SpriteShape Version 3.0.12