Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Need help on "A Native Collection has not been disposed, resulting in a memory leak"

$
0
0
I've been working on an app for quite a while and never got this error until last week or so (after updating to 2021.1.2f1?) - and now it comes up all the time :-/

I don't know if this is related, but also since around last week, the contents of *any* vertical layout group in my app now sometimes suddenly becomes invisible or wiped. This happens only occasionally and so far only on the Android and iOS builds, not when running the app in the editor, which makes it tricky to debug.

After finally figuring out [how to enable full stacktrace][1], I got a bit stuck on how to use the trace information (see below) to solve the problem. The information doesn't contain a reference to any code that i wrote myself, so I really don't know what to do with this. Any pointers on how to continue would be appreciated.

Thanks!

> A Native Collection has not been disposed, resulting in a memory leak. Allocated from:
> Unity.Collections.NativeArray`1:.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, IDictionary`2, 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() [1]: https://answers.unity.com/questions/1706573/no-information-on-error-with-full-stack-traces-ena.html

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>