Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Memory Leak

Discussion in 'Editor & General Support' started by pKallv, Sep 18, 2021.

  1. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,177
    Hi,
    I get the following message and it is really annoying:
    Code (CSharp):
    1. A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
    Screenshot 2021-09-18 at 16.37.00.png

    After a while I get it multiple times. I can still use the editor but it is VERY annoying given that it fills up the console after a while.

    It occurred after install of PlayFab SDK for test.
     
    Tragic69 likes this.
  2. Tragic69

    Tragic69

    Joined:
    Jan 6, 2016
    Posts:
    1
    Getting the same thing. Full stack trace:

    A Native Collection has not been disposed, resulting in a memory leak. Allocated from:
    Unity.Collections.NativeArray`1:.ctor(Byte[], Allocator) (at /home/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:69)
    UnityEngine.Networking.UploadHandlerRaw:.ctor(Byte[]) (at /home/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/UploadHandler/UploadHandler.bindings.cs:95)
    PlayFab.PfEditor.PlayFabEditorHttp:MakeApiCall(String, String, GetStudiosRequest, Action`1, Action`1) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:74)
    PlayFab.PfEditor.PlayFabEditorApi:GetStudios(GetStudiosRequest, Action`1, Action`1) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorApi.cs:30)
    PlayFab.PfEditor.PlayFabEditorDataService:RefreshStudiosList(Boolean) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:197)
    PlayFab.PfEditor.PlayFabEditor:OnEnable() (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:45)
     
  3. LDballance

    LDballance

    Joined:
    Nov 12, 2013
    Posts:
    1
    Any luck solving this problem? :(
     
  4. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,177
    no