I am trying to build my game for android in Unity 2022.1.6f1 and I am getting the following errors:
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
Error building Player: 3 errors
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
Build completed with a result of 'Failed' in 14 seconds (14026 ms)
0x00007ff66f73363d (Unity) StackWalker::GetCurrentCallstack
0x00007ff66f73a3b9 (Unity) StackWalker::ShowCallstack
0x00007ff6706dbd03 (Unity) GetStacktrace
0x00007ff670d89633 (Unity) DebugStringToFile
0x00007ff66e7a5166 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002bf82181dea (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002bf82181c5b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000002bf821810de (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000002bf803c12ca (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000002bd66d0fceb (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000002bd66d0571b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000002bd66d04d2b (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
0x000002bf7f8930cb (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000002bf7f876573 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000002bf7f844ab3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000002bf5a80f399 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000002bf5a80ee93 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x000002bf58789f23 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000002bf575dcd11 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000002bf5875e133 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000002bf7f60f4bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000002bf7f60f1a3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000002bf7f60e3bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000002bf7f60dfe3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000002bf562f5923 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x000002bf562f5683 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase)
0x000002bf562f45f5 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x000002bf562f3a1c (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x000002bf562f2f93 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000002bf7f604fd3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf56435d86 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000002bf5643461b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf562bc26b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000002bf562bbe6b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000002bf562bbbeb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x000002bf564355f3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf564337e3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000002bf5643332b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000002bc06620c63 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000002bf565bfbd3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000002bf565bf544 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000002bf565bf23b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000002bf565bece5 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000002bf565bef26 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffeead502f4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffeeac8eb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffeeac8eccc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff66f6580f4 (Unity) scripting_method_invoke
0x00007ff66f652bf4 (Unity) ScriptingInvocation::Invoke
0x00007ff66f64c565 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff66f77d60a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff67014d956 (Unity) GUIView::ProcessRetainedMode
0x00007ff67070c393 (Unity) GUIView::OnInputEvent
0x00007ff67014d765 (Unity) GUIView::ProcessInputEvent
0x00007ff67070d2fd (Unity) GUIView::ProcessEventMessages
0x00007ff670706a39 (Unity) GUIView::GUIViewWndProc
0x00007fff91c78211 (USER32) DispatchMessageW
0x00007fff91c77cd1 (USER32) DispatchMessageW
0x00007ff6706e17e3 (Unity) MainMessageLoop
0x00007ff6706e6764 (Unity) WinMain
0x00007ff671a39aee (Unity) __scrt_common_main_seh
0x00007fff90f226ad (KERNEL32) BaseThreadInitThunk
0x00007fff91f0aa68 (ntdll) RtlUserThreadStart
UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <311ac618fd644a8dbeaf7ddb4cf1ef67>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <311ac618fd644a8dbeaf7ddb4cf1ef67>:0
0x00007ff66f73363d (Unity) StackWalker::GetCurrentCallstack
0x00007ff66f73a3b9 (Unity) StackWalker::ShowCallstack
0x00007ff6706dbd03 (Unity) GetStacktrace
0x00007ff670d89633 (Unity) DebugStringToFile
0x00007ff66e7a5166 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002bf82181dea (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002bf82181c5b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000002bf821810de (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000002bf803c12ca (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000002bd66d05883 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000002bd66d04d2b (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
0x000002bf7f8930cb (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000002bf7f876573 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000002bf7f844ab3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000002bf5a80f399 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000002bf5a80ee93 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x000002bf58789f23 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000002bf575dcd11 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000002bf5875e133 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000002bf7f60f4bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000002bf7f60f1a3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000002bf7f60e3bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000002bf7f60dfe3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000002bf562f5923 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x000002bf562f5683 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase)
0x000002bf562f45f5 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x000002bf562f3a1c (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x000002bf562f2f93 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000002bf7f604fd3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf56435d86 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000002bf5643461b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf562bc26b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000002bf562bbe6b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000002bf562bbbeb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x000002bf564355f3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002bf564337e3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000002bf5643332b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000002bc06620c63 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000002bf565bfbd3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000002bf565bf544 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000002bf565bf23b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000002bf565bece5 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000002bf565bef26 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffeead502f4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffeeac8eb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffeeac8eccc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff66f6580f4 (Unity) scripting_method_invoke
0x00007ff66f652bf4 (Unity) ScriptingInvocation::Invoke
0x00007ff66f64c565 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff66f77d60a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff67014d956 (Unity) GUIView::ProcessRetainedMode
0x00007ff67070c393 (Unity) GUIView::OnInputEvent
0x00007ff67014d765 (Unity) GUIView::ProcessInputEvent
0x00007ff67070d2fd (Unity) GUIView::ProcessEventMessages
0x00007ff670706a39 (Unity) GUIView::GUIViewWndProc
0x00007fff91c78211 (USER32) DispatchMessageW
0x00007fff91c77cd1 (USER32) DispatchMessageW
0x00007ff6706e17e3 (Unity) MainMessageLoop
0x00007ff6706e6764 (Unity) WinMain
0x00007ff671a39aee (Unity) __scrt_common_main_seh
0x00007fff90f226ad (KERNEL32) BaseThreadInitThunk
0x00007fff91f0aa68 (ntdll) RtlUserThreadStart
These errors prevent me from building. I was able to build before and this errors suddenly occured when I added a new class in my code.
Do you know how can I enable full stack trace?
Thank you.