also in relation to my previous post:
this is not solved, I can repro it in 6000.1.7 and 6000.0.26
all the cancellation tokens in the screenshot are leaked from InstantiateAsync
| Svelto.ECS | https://github.com/sebas77/Svelto.ECS |
| Code Articles | https://www.sebaslab.com/ |
| Photography | https://sebasphotography.com/ |
| Riding | https://www.instagram.com/f850gs_seb/ |
also in relation to my previous post:
this is not solved, I can repro it in 6000.1.7 and 6000.0.26
all the cancellation tokens in the screenshot are leaked from InstantiateAsync
DO NOT use Object.InstantiateAsync. This hidden method must stay as it is. It causes massive leaks and me spending days to pinning it down. Eventually and sadly it wasn't Memory Profiler to help me but instead the still maintained (and now I know why) Heap Explorer plugin (you can find it on github).
At this point I think I am gonna write a blog post about the tools I am using for memory investigation on Android (and one day on iOS) #unity3d
another good one. HeapExplorer gave me a crucial clue that MemoryProfiler was not giving: the Linked1Cancellation token was linked to AsyncInstantiateOperation which is very likely linked to Object.InstantiateAsync