A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
What happened: I upgraded to Unity 2021.3.3f1 LTS and I had the error: "A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details." Searching for the solution it seems that installing "com.jobs.entities" and than check from menu Jobs > Leak Detection > Ful Stack Traces (expensive), should solve the problem. But not for me. After installing entities (it took me hours!! it remained very long "waiting for package to install.."), I didn't see the option "Leak Detection" in "Jobs. So, I restarted Unity and when I open I don't see anymore not even "Jobs" this time. And this time show this error I reported here:
Library\PackageCache\com.unity.entities@0.50.1-preview.2\Unity.Entities\RetainBlobAssetSystem.cs(6,5): error SGICE002: Seeing this error indicates a bug in the dots compiler. We'd appreciate a bug report (About->Report a Bug...). Thnx! <3 System.IO.IOException: Cannot create 'C:\Users\emili\My project\Library\Bee\artifacts\1900b0aE.dag\Unity.Entities.AdditionalFile.txt' because a file or directory with the same name already exists.
How can we reproduce it using the example you attached: I showed out of nothing, just by upgrading to 2021.3.3 but then I changed my project to 2020, and it shows also there. After installing entities, I got a bunch of other errors.
PS: I removed Unity and Unity Hub completely from my pc, and installed it again. The error persists!
Answer by the_rings_of_saturn · May 26 at 02:06 AM
I found what is causing me the memory leak. It was WakaTime plugin. A plugin to monitor the time you spend on using Unity. This is the issue on GitHub: https://github.com/vladfaust/unity-wakatime/issues/29
Your answer
Follow this Question
Related Questions
i'm getting error CS0246: in unity editor,I'm getting error CS0246: in Unity Editor 1 Answer
TextMeshPro 2.0.1 error 3 Answers
CS0246 error for Unity Packaged Scripts that are unable to be edited 1 Answer
Unity Package Manager Error after blue screen,Unity Package Manager error 1 Answer
When I use Unity 2020.3.26f1 I keep getting a package manager error 0 Answers