Hi, I recently did 2 new things and started getting an error that I have no idea how to get rid of? Maybe it is not even connected to these but:
I updated to Unity 2020.3.39 and tried out the built in screenshot capture with the code below (I got rid of this script and the error is still there):
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
public class ScreenshotGrabber
{
[MenuItem("Screenshot/Grab")]
public static void Grab()
{
ScreenCapture.CaptureScreenshot("Screenshot.png", 1);
}
}
#endif
and now the error warning stacktrace:
Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
0x00007ff69e98b90c (Unity) StackWalker::GetCurrentCallstack
0x00007ff69e992f09 (Unity) StackWalker::ShowCallstack
0x00007ff69f72a09c (Unity) GetStacktrace
0x00007ff6a019aef7 (Unity) DebugStringToFile
0x00007ff6a019ac12 (Unity) AssertImplementation
0x00007ff69decb436 (Unity) IMGUI:oWindow
0x00007ff69e08f170 (Unity) GUI_CUSTOM_Internal_DoWindow_Injected
0x00000247f8917ea3 (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&)
0x00000247f8917d7b (Mono JIT Code) UnityEngine.GUI:Internal_DoWindow (int,int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,object,bool)
0x00000247f8917cab (Mono JIT Code) UnityEngine.GUI:smile:oWindow (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,UnityEngine.GUISkin,bool)
0x00000247f8917bdb (Mono JIT Code) UnityEngine.GUI:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle)
0x00000247f89179eb (Mono JIT Code) UnityEngine.GUILayout:smile:oWindow (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,UnityEngine.GUIContent,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[ ])
0x00000247f8917813 (Mono JIT Code) UnityEngine.GUILayout:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,string,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[ ])
0x00000247f89176f3 (Mono JIT Code) UnityEditor.SceneViewOverlay:End ()
0x00000247f88be54b (Mono JIT Code) UnityEditor.SceneView:OnGUI ()
0x00000247f5c970d3 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x00000247f5c96e83 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect,UnityEngine.Rect)
0x00000247f5c8ba83 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x00000247f5c71fc0 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x00000247f5c71153 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x00000247f886e5b3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint ()
0x00000247f886badb (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
0x00000247f8869fcb (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.NativeSlice1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeSlice
1<UnityEngine.Vector4>,UnityEngine.MaterialPropertyBlock,bool,System.Exception&)
0x00000247f88656e3 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render ()
0x00000247f8851d43 (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
0x00000247f5c523ae (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
0x00000247f885150b (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
0x00000247f8851173 (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
0x00000247f5c51c77 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x00000247f5c519cb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x00000247f5c517cf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x00000247f5c5170b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x00000247f5c5156d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x00000247f5c5161e (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffa952800e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
0x00007ffa95202ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007ffa9520bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007ff69e8cfed4 (Unity) scripting_method_invoke
0x00007ff69e8cafd1 (Unity) ScriptingInvocation::Invoke
0x00007ff69e8c4d95 (Unity) ScriptingInvocation::Invoke
0x00007ff69db7b7fa (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff69f1f27b8 (Unity) GUIView::ProcessRetainedMode
0x00007ff69f761652 (Unity) GUIView::OnInputEvent
0x00007ff69f1f26a8 (Unity) GUIView::ProcessInputEvent
0x00007ff69f75a7d2 (Unity) GUIView:oPaint
0x00007ff69f76438d (Unity) GUIView::RepaintAll
0x00007ff69f2bfa97 (Unity) PlayerLoopController::UpdateScene
0x00007ff69f2aa4e2 (Unity) PlayerLoopController::EnterPlayMode
0x00007ff69f2baef0 (Unity) PlayerLoopController::SetIsPlaying
0x00007ff69f2bcf69 (Unity) Application::TickTimer
0x00007ff69f730551 (Unity) MainMessageLoop
0x00007ff69f7346f1 (Unity) WinMain
0x00007ff6a0df2aae (Unity) __scrt_common_main_seh
0x00007ffaeb547034 (KERNEL32) BaseThreadInitThunk
0x00007ffaed4c26a1 (ntdll) RtlUserThreadStart