Hello everyone,
after finally switching my project to Unity Version 2021, I often got this message in the console:
A Native Collection has not been
disposed, resulting in a memory
leak.Enable full stacktraces to get
more details.
I managed to enable that by importing com.unity.entities and now the console looks like this:
A Native Collection has not been
disposed, resulting in a memory leak.
Allocated from:
Unity.Collections.NativeArray1:.ctor(Byte[], Allocator) UnityEngine.Networking.UploadHandlerRaw:.ctor(Byte[]) UnityEngine.Networking.UnityWebRequest:SetupPost(UnityWebRequest, WWWForm) UnityEngine.Networking.UnityWebRequest:Post(String, WWWForm) System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) Google.PortableWebRequest:StartRequest(HttpMethod, String, IDictionary2, WWWForm) (at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/PortableWebRequest.cs:481)
Google.c__AnonStorey6:<>m__C() (at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/PortableWebRequest.cs:443)
Google.RunOnMainThread:ExecuteNext()
(at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:m__12() (at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction(Action)
(at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean)
(at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll()
(at
/Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
The message appers sometimes even multiple times in the console. Unfortunatly that doesn’t help me. Can anyone tell me what to do now?