Search Issue Tracker

Fixed

Fixed in 2020.3.44f1, 2021.3.17f1, 2022.2.2f1, 2023.1.0a23

Votes

28

Found in

2020.3.39f1

2021.3.14f1

Issue ID

UUM-14969

Regression

Yes

"Resolve of invalid GC handle" error occurs when exiting Play mode after creating a tilemap

--

-

Reproduction steps:
# Create and open a new 2D core project
# In the Hierarchy window create a tilemap GameObject
# Enter and Exit Play mode

Expected result: Play mode is exited without any errors occuring
Actual result: “Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)“ error occurs

Reproducible with: 2020.3.38f1, 2020.3.39f1
Not reproducible with: 2020.3.37f1, 2021.1.0a1, 2021.3.10f1, 2022.1.16f1, 2022.2.0b8, 2023.1.0a10

Reproduced on: Windows 10 Pro

Comments (14)

  1. unitydreamer29

    Jan 17, 2023 19:14

    I get the error when Entering play mode on 2020.3.43, not exiting.

    Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
    UnityEngine.GUILayout:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,string,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])

  2. TheWalrusDev

    Dec 27, 2022 00:49

    So easy to fix. Just exit the game object you are currently on!

  3. xiaoguangxing

    Nov 28, 2022 07:49

    close scene window seems can stop this error be reported in console

  4. Brother_77

    Nov 19, 2022 06:32

    Hi, when could we expect a fix ? Thank you.

  5. Kewels

    Nov 08, 2022 02:02

    Same issue in 2020.3.41 , but it happens when entering play mode after upgrading from 2019.4.37.

  6. Brother_77

    Oct 31, 2022 08:54

    I had it today again when exiting play mode.
    When could we expect a fix ?

  7. BaluKhan

    Oct 24, 2022 18:36

    I am also having the same error while using unity mediation ads

  8. msegundo

    Oct 23, 2022 19:37

    hola estaba en el tutorial de unity junior y me apareció este error tengo la versión de 2020

    Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  9. Drakkashi

    Oct 11, 2022 10:22

    Got this error after upgrading to 2022.1.17f, when using the GUILayout.Window method inside an EditorWindow script.

    Functionality of the script is unaffected, but we get spammed with errors everytime we leave playmode with the window open.

    Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
    UnityEngine.GUILayout:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,string,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])
    Aine.CanvasWindow:DrawNodes () (at Assets/Plugins/Aine/Scripts/Canvas/Editor/CanvasWindow.cs:691)
    Aine.CanvasWindow:OnGUI () (at Assets/Plugins/Aine/Scripts/Canvas/Editor/CanvasWindow.cs:305)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  10. Brother_77

    Oct 04, 2022 08:19

    Still this error on 2020.3.40

    Stack:

    Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
    0x00007ff753fdc4cc (Unity) StackWalker::GetCurrentCallstack
    0x00007ff753fe3ac9 (Unity) StackWalker::ShowCallstack
    0x00007ff754d7ad5c (Unity) GetStacktrace
    0x00007ff7557eb677 (Unity) DebugStringToFile
    0x00007ff7557eb392 (Unity) AssertImplementation
    0x00007ff75351b436 (Unity) IMGUI::DoWindow
    0x00007ff7536df370 (Unity) GUI_CUSTOM_Internal_DoWindow_Injected
    0x0000018e029c6d93 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUI:Internal_DoWindow_Injected (int,int,UnityEngine.Rect&,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,object,bool,UnityEngine.Rect&)
    0x0000018e029c6c6b (Mono JIT Code) UnityEngine.GUI:Internal_DoWindow (int,int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,object,bool)
    0x0000018e029c6b9b (Mono JIT Code) UnityEngine.GUI:DoWindow (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,UnityEngine.GUISkin,bool)
    0x0000018e029c6acb (Mono JIT Code) UnityEngine.GUI:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle)
    0x0000018e029c68db (Mono JIT Code) UnityEngine.GUILayout:DoWindow (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])
    0x0000018e029c6703 (Mono JIT Code) UnityEngine.GUILayout:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,string,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])
    0x0000018e029c65e3 (Mono JIT Code) UnityEditor.SceneViewOverlay:End ()
    0x0000018e0296d4fb (Mono JIT Code) UnityEditor.SceneView:OnGUI ()
    0x0000018e0165c403 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x0000018e0165c1b3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000018e01650bf3 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x0000018e01636860 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x0000018e016359f3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x0000018e0290d4e3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint ()
    0x0000018e0290aa0b (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
    0x0000018e02908efb (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeSlice`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeSlice`1<UnityEngine.Vector4>,UnityEngine.MaterialPropertyBlock,bool,System.Exception&)
    0x0000018e02904613 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render ()
    0x0000018e027707e3 (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
    0x0000018e01616c5e (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
    0x0000018e0274ffdb (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
    0x0000018e0275fe83 (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
    0x0000018e01616527 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000018e0161627b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000018e0161607f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    0x0000018e01615fbb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000018e01615e1d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    0x0000018e01615ece (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007ffd95d100e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007ffd95c92ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007ffd95c9bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff753f20754 (Unity) scripting_method_invoke
    0x00007ff753f1b851 (Unity) ScriptingInvocation::Invoke
    0x00007ff753f15615 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff7531cb7fa (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    0x00007ff754843378 (Unity) GUIView::ProcessRetainedMode
    0x00007ff754db2312 (Unity) GUIView::OnInputEvent
    0x00007ff754843268 (Unity) GUIView::ProcessInputEvent
    0x00007ff754dab492 (Unity) GUIView::DoPaint
    0x00007ff754db504d (Unity) GUIView::RepaintAll
    0x00007ff754910657 (Unity) PlayerLoopController::UpdateScene
    0x00007ff7548fb0a2 (Unity) PlayerLoopController::EnterPlayMode
    0x00007ff75490bab0 (Unity) PlayerLoopController::SetIsPlaying
    0x00007ff75490e8f7 (Unity) Application::TickTimer
    0x00007ff754d81211 (Unity) MainMessageLoop
    0x00007ff754d853b1 (Unity) WinMain
    0x00007ff75645326e (Unity) __scrt_common_main_seh
    0x00007ffdee597034 (KERNEL32) BaseThreadInitThunk
    0x00007ffdef9026a1 (ntdll) RtlUserThreadStart

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.