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

Package: 2D Sprite Shape

-

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

  1. Resolution Note (fix version 5.0.0):

    Fixed in Package 2D SpriteShape 5.0.0

  2. Resolution Note (fix version 4.1.2):

    Editor Version: Unity 2020.1
    Fixed in 2D SpriteShape Package Version 4.1.2

  3. Resolution Note (fix version 3.0.12):

    Fixed in 2D SpriteShape Version 3.0.12

  4. Resolution Note (fix version 3.0.12):

    Fixed in 2D SpriteShape Version 3.0.12

Comments (3)

  1. 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

  2. harusame-

    Apr 26, 2020 14:33

    I have the same with spriteshapes

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.