consulo / UnityEditorConsuloPlugin

Consulo plugin for UnityEditor
Apache License 2.0
18 stars 2 forks source link

Memory Leak in Unity Editor (Consulo.Internal.UnityEditor.ConsuloIntegration) #30

Open halotroop2288 opened 2 years ago

halotroop2288 commented 2 years ago

Consulo Version: 2021.11 Unity Editor Version: 2021.2.5f1 (will test soon on 2021.2.6f1) Unity Editor Consulo Plugin Version: 2.6.0

Consulo's Unity Editor plugin appears to be causing a memory leak in the Unity Editor. snip

Here is an example stacktrace:

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[])
Consulo.Internal.UnityEditor.<SendRequestToConsuloImpl>d__17:MoveNext() (at Library\PackageCache\com.consulo.ide@b25393f154\Editor\Consulo\ConsuloIntegration.cs:218)
Consulo.Internal.UnityEditor.ConsuloIntegration:SendRequestToConsulo(String, JSONClass, Boolean) (at Library\PackageCache\com.consulo.ide@b25393f154\Editor\Consulo\ConsuloIntegration.cs:194)
Consulo.Internal.UnityEditor.ConsuloIntegration:SendToConsulo(String, JSONClass, Boolean, Boolean) (at Library\PackageCache\com.consulo.ide@b25393f154\Editor\Consulo\ConsuloIntegration.cs:169)
Consulo.Internal.UnityEditor.<>c__DisplayClass4_0:<Run>b__0() (at Library\PackageCache\com.consulo.ide@b25393f154\Editor\Consulo\MessageSender.cs:45)
Consulo.Internal.UnityEditor.<>c__DisplayClass2_0:<RunInMainThread>b__0() (at Library\PackageCache\com.consulo.ide@b25393f154\Editor\Consulo\UnityUtil.cs:46)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
VISTALL commented 2 years ago

Hello. Thanks for bug, something new, never catch it. Looks like need add using for UnityWebRequest post