Search Issue Tracker
Fixed
Votes
2
Found in
2018.4
2019.4.0f1
2020.2
Issue ID
1255796
Regression
No
Native Collection disposal error is thrown when using IAnimationJob even if Native Array was disposed in OnDestroy function
How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Enter the Play Mode
3. Observe the Console Window
Expected result: No errors are thrown
Actual result: "A Native Collection has not been disposed, resulting in a memory leak" error is thrown
Reproducible with: 2018.4.24f1, 2019.4.3f1, 2020.1.0b14, 2020.2.0a17
Note: Error is not thrown if the PlayableGraph is not played or Job value is not updated
Comments (1)
-
TheRascalRobert
Jan 05, 2021 02:12
If you get some sort of error with your job (type problem etc) and you detect an early IsComplete of your IJob and Dispose of the related arrays, you will get this message.
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
- 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
Resolution Note:
Fixed in: 2022.2.0a12