Skip to content

Getting "Native Collection has not been disposed" errors in 3.0 #41

@DoomT-AliW

Description

@DoomT-AliW
A Native Collection has not been disposed, resulting in a memory leak. Allocated from:
Unity.Collections.NativeReference`1:.ctor(Int32, AllocatorHandle) (at .\Library\PackageCache\com.unity.collections@1.4.0\Unity.Collections\NativeReference.cs:62)
Vertx.Debugging.UnmanagedCommandContainer`1:Initialise(Int32, Boolean) (at Assets\VertxDebugging\Runtime\CommandBuilder\UnmanagedCommandContainer.cs:122)
Vertx.Debugging.UnmanagedCommandGroup:Initialise(Boolean, Allocations) (at Assets\VertxDebugging\Runtime\CommandBuilder\UnmanagedCommandBuilder.cs:47)
Vertx.Debugging.UnmanagedCommandBuilder:Initialise() (at Assets\VertxDebugging\Runtime\CommandBuilder\UnmanagedCommandBuilder.cs:75)
Vertx.Debugging.CommandBuilder:Initialise() (at Assets\VertxDebugging\Runtime\CommandBuilder\CommandBuilder.cs:74)
System.Reflection.RuntimeMethodInfo:InternalInvoke(RuntimeMethodInfo, Object, Object[], Exception&)
System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes()

Happens usually when I exit playmode or recompile. Note that I have domain reload disabled, also note that I have the library embedded in my project hence the different path trace.

Unity 2023.2.16f1

Burst 1.8.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions