Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.6f1
Issue ID
1059982
Regression
No
Using CharacterController's OnControllerColliderHit leaks memory
Seems like using CharacterController's OnControllerColliderHit leaks memory every time the method is called. The leak is quite small but is definitely there.
To reproduce:
1) Download and open the project attached
2) Run the SampleScene
3) Open profiler to track memory usage
Increasing the amount of CharacterControllers in the scene increases the speed at which memory is leaked.
Reproduced on: 2019.1.0a8, 2018.3.0b10, 2018.2.14f1, 2018.1.9f2
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
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Resolution Note:
It's not a leak really, it's just due to the fact ControllerColliderHit is a class and thus its instance is created on the managed heap that gets garbage-collected every once in a while. We won't be able to change that currently.