play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

Memory leak error after installing plugin

Open lucaswhitaker22 opened this issue 3 years ago • 8 comments

Hello,

I recently installed the Google Play Service Library from Github. When I set it up, the following error message appeared:

It's non-critical, as my game still runs. However, I don't want a memory leak in my game. I don't have experience with this type of stuff, so any tips would be a lot of help.

Does anyone know what may be causing this error? Is there a simple solution or do I need to run a memory profiler?

A Native Collection has not been disposed, resulting in a memory leak. Allocated from: Unity.Collections.NativeArray1:.ctor(Byte[], Allocator) (at /Users/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:69) UnityEngine.Networking.UploadHandlerRaw:.ctor(Byte[]) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/UploadHandler/UploadHandler.bindings.cs:98) UnityEngine.Networking.UnityWebRequest:SetupPost(UnityWebRequest, WWWForm) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestExtensions.cs:206) UnityEngine.Networking.UnityWebRequest:Post(String, WWWForm) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestExtensions.cs:184) 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.<StartRequestOnMainThread>c__AnonStorey6:<>m__C() (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/PortableWebRequest.cs:443) /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:<ExecuteAllUnnested>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() (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:327)

lucaswhitaker22 avatar May 08 '21 13:05 lucaswhitaker22

Same here

stroibot avatar May 13 '21 18:05 stroibot

Same, any dev still alive on this repo?

FauconSpartiate avatar May 22 '21 22:05 FauconSpartiate

Same here

paulpach avatar Jul 11 '21 15:07 paulpach

Same here

SunQdev avatar Aug 22 '21 23:08 SunQdev

The log unity-jar-resolver suggests to me that it might be about the unity-jar-resolver plugin. Do you mind filing an issue to this repository?

ozdemir08 avatar Sep 08 '21 12:09 ozdemir08

Same here

CTePeoTun avatar Oct 12 '21 14:10 CTePeoTun

Same here, is there any solution yet?

BennyBlue55 avatar Jan 11 '22 19:01 BennyBlue55

a bug is there: https://github.com/googlesamples/unity-jar-resolver/issues/473

paulpach avatar Mar 18 '22 19:03 paulpach