Should not be capturing when there is a hotcontrol

This message is occasionally popping up in the console for some of my more complex projects. I’m not sure how to duplicate the issue (so, can’t submit it as a bug, if it even is one), so I’m trying to determine what might be causing it. Last time, it popped up when I clicked a compiler warning, in the console.

I THINK it is only happening after I recompile, but I’m not 100% sure of that.

I’ve searched my own codebase, but nowhere do I reference: Unity - Scripting API: GUIUtility.hotControl

I can see it is being called from
https://github.com/MattRix/UnityDecompiled/blob/master/UnityEngine/UnityEngine.Experimental.UIElements/EventDispatcher.cs
but I’m still not sure what to look
for.

Any suggestions on how to prevent this popup would be appreciated.

Edit/addition: The message pops up with a YELLOW icon, indicating he is only a warning. I expect this is why No stack trace is provided. The only way I found that decompiled code linked above, was by searching the entire github project site, for the warning message text.

EDIT:
I found, as @Adam-Mechtley requested, some info in the EditorLogs, related to this popup. I’m pasting here (what I think is) the relevant section of the log:

Refreshing native plugins compatible for Editor in 0.37 ms, found 3 plugins.
Preloading 1 native plugins for Editor in 0.35 ms.
Mono: successfully reloaded assembly
Refreshing native plugins compatible for Editor in 0.41 ms, found 3 plugins.
Preloading 1 native plugins for Editor in 0.39 ms.

----- Total AssetImport time: 0.071462s, AssetImport time: 0.000000s, Asset hashing: 0.000000s [0 B, 0.000000 mb/s]

- Completed reload, in  1.046 seconds
Initializing Unity.PackageManager (PackageManager) v2017.2.0 for Unity v2017.2.0f3
Registering platform support modules:
Registered platform support modules in: 0.0347004s.
Native extension for WindowsStandalone target not found
Native extension for Android target not found
Should not be capturing when there is a hotcontrol
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.Experimental.UIElements.EventDispatcher:TakeCapture(IEventHandler) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\EventDispatcher.cs:90)
UnityEngine.Experimental.UIElements.UIElementsUtility:TakeCapture() (at C:\buildslave\unity\build\Runtime\UIElements\Managed\UIElementsUtility.cs:54)
UnityEngine.GUIUtility:TakeCapture() (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUIUtility.cs:113)
UnityEngine.GUIUtility:Internal_SetHotControl(Int32)
UnityEngine.GUIUtility:set_hotControl(Int32) (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUIUtility.cs:105)
UnityEditor.ListViewShared:HasMouseDown(InternalListViewState, Rect, Int32) (at C:\buildslave\unity\build\Editor\Mono\GUI\ListViewShared.cs:188)
UnityEditor.ListViewShared:HasMouseDown(InternalListViewState, Rect) (at C:\buildslave\unity\build\Editor\Mono\GUI\ListViewShared.cs:179)
UnityEditor.ListViewElementsEnumerator:MoveNext() (at C:\buildslave\unity\build\Editor\Mono\GUI\ListViewShared.cs:370)
UnityEditor.ConsoleWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\ConsoleWindow.cs:414)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
System.Reflection.MethodBase:Invoke(Object, Object[]) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:285)
UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:278)
UnityEditor.HostView:InvokeOnGUI(Rect) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:245)
UnityEditor.DockArea:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\GUI\DockArea.cs:383)
UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\IMGUIContainer.cs:127)
UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\IMGUIContainer.cs:213)
UnityEngine.Experimental.UIElements.EventDispatcher:PropagateEvent(VisualElement, EventBase) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\EventDispatcher.cs:343)
UnityEngine.Experimental.UIElements.EventDispatcher:DispatchEvent(EventBase, BaseVisualElementPanel) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\EventDispatcher.cs:252)
UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\UIElementsUtility.cs:207)
UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Runtime\UIElements\Managed\UIElementsUtility.cs:72)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUIUtility.cs:175)
 
(Filename: /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs Line: 222)

EDIT2: bug submitted- https://fogbugz.unity3d.com/default.asp?968044_05s1gv99bq2ofkr8

And now it is 2021 and its still happening often in fresh or old projects with all different types of assets and imports. For example: Just tried to import newest UMA into a new project for some testing and got it 4 times during the import.

It’s almost 2021… this issue is still happening.

2022 and this is still happening

[SOLVED] Unity 2021.3.7f1
Just delete the .cs.meta files from your scripts. Unity will create new ones and the error will disappear.
The error appeared after a version change and with this method it worked for me !

This can be reproduced with the steps listed at Unity Issue Tracker - "Should not be capturing when there is a hotcontrol" message thrown after double clicking on runtime error and exiting playmode

The specific issue is marked as “Resolved”, but still appears in the latest version of Unity (As you have seen)

Hey guys! I know putting this up as an answer isn’t the best place to reach out, but the developers at Unity have been investigating the issue, and have asked if you could provide the full stacktraces whenever the issue occurs?


You can find them in the Console Window’s right side → ‘3 dots’ menu → Stack Trace Loggin → All → Full.


You can file a bug and reference issue 968044 in the description, but replying below this answer will also work. Thanks!


@Tsahyla, @SmileJakoby, @glenneroo Hope you don’t mind the ping :slight_smile:

2023 and its still happening :3

SOLUTION: If you have a bug along with this message, apparently it is a bug that leads you to think about something else that has nothing to do with what is happening. The solution is to rename your script name and let unity load it, simple as that. I have seen this in many forums, it has even happened to me many times, IT IS A SCRIPTS COMPILATION FAILURE.

I get this too. For me it was occurring with VR using Oculus utilities. I assume (probably rather incorrectly), that a button/sensor was not released proper before I exited the app. I’m pretty much ignoring it for now; would like to know what others think.

176056-captura-de-pantalla-2021-02-16-112446.png
Hi @JuliusPipikas , i have recently found the same bug.
I thought it was my fault, because I’m quite new with unity, and I was doing a script that runs in edit mode, and detects the mouse input. This issue in particular eats my mouse input, and its really upsetting.
Hope this helps finding the bug.

EDIT:
I found a really easy way of replicating this issue. Just attach the following code snippet to a game object and try to change the color variable from the inspector. The color picker window will close automatically, and if you try it a couple times the error will show on the console. The same happens without the ExecuteInEditMode attribute. If you remove it and try changing the color whilst in play mode, the error will appear again. So there must be something wrong with the ‘EditorWindow.GetWindow’ method.

using UnityEngine;
using UnityEditor;

[ExecuteInEditMode]
public class getWindowTest : MonoBehaviour
{
    public Color a;

    void Update()
    {
        EditorWindow.GetWindow(typeof(SceneView));
    }
}

Should not be capturing when there is a hotcontrol
0x00007FF7F47AAC3C (Unity) StackWalker::GetCurrentCallstack
0x00007FF7F47AE111 (Unity) StackWalker::ShowCallstack
0x00007FF7F30552C5 (Unity) GetStacktrace
0x00007FF7F535747D (Unity) DebugStringToFile
0x00007FF7F47DF334 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002230FEB987B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002230FEB94AB (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 
0x000002230FEB8B41 (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object) 
0x000002230FEB87B0 (Mono JIT Code) [Debug.bindings.cs:99] UnityEngine.Debug:Log (object) 
0x000002230FE5022B (Mono JIT Code) [MouseCaptureController.cs:33] UnityEngine.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.UIElements.IEventHandler) 
0x000002230FE1FB6B (Mono JIT Code) [UIElementsUtility.cs:61] UnityEngine.UIElements.UIElementsUtility:TakeCapture () 
0x000002230FE1F864 (Mono JIT Code) [GUIUtility.cs:118] UnityEngine.GUIUtility:TakeCapture () 
0x000002230ECF4C95 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFECE03BC80 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 
0x00007FFECDFC1D92 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007FFECDFCAD8F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 
0x00007FF7F4734E82 (Unity) scripting_method_invoke
0x00007FF7F472EB41 (Unity) ScriptingInvocation::Invoke
0x00007FF7F4728D75 (Unity) ScriptingInvocation::Invoke<void>
0x00007FF7F1CA59CF (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
0x00007FF7F215CADB (Unity) GUIUtility::Internal_SetHotControl
0x00007FF7F238BC47 (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
0x000002230FEABD0E (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
0x000002230FEABBF3 (Mono JIT Code) [GUIUtility.cs:112] UnityEngine.GUIUtility:set_hotControl (int) 
0x000002230FE7D9DB (Mono JIT Code) [ColorPicker.cs:159] UnityEditor.ColorPicker:Slider2D (UnityEngine.Rect,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.GUIStyle) 
0x000002230FE78123 (Mono JIT Code) [ColorPicker.cs:667] UnityEditor.ColorPicker:DoColorSpaceGUI () 
0x000002230FE736F3 (Mono JIT Code) [ColorPicker.cs:913] UnityEditor.ColorPicker:OnGUI () 
0x000002230ECF3070 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFECE03BC80 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 
0x00007FFECDFC1D92 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007FFECDFCAF62 (mono-2.0-bdwgc) [object.c:3073] mono_runtime_invoke_checked 
0x00007FFECDFCB6F9 (mono-2.0-bdwgc) [object.c:5264] mono_runtime_try_invoke_array 
0x00007FFECDFCAEF6 (mono-2.0-bdwgc) [object.c:5142] mono_runtime_invoke_array_checked 
0x00007FFECDF6FF24 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke 
0x000002230E5CFB56 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x000002230E5CE55B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x000002230E5CE21F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x000002230E706443 (Mono JIT Code) [HostView.cs:359] UnityEditor.HostView:Invoke (string,object) 
0x000002230E706293 (Mono JIT Code) [HostView.cs:354] UnityEditor.HostView:Invoke (string) 
0x000002230FE71A93 (Mono JIT Code) [HostView.cs:139] UnityEditor.HostView:OldOnGUI () 
0x000002230E87B7E1 (Mono JIT Code) [IMGUIContainer.cs:281] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect) 
0x000002230E8797CB (Mono JIT Code) [IMGUIContainer.cs:485] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect) 
0x000002230EB19B6B (Mono JIT Code) [IMGUIContainer.cs:466] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event) 
0x000002230E6F1423 (Mono JIT Code) [IMGUIContainer.cs:447] UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase) 
0x000002230E6E3BFA (Mono JIT Code) [IEventDispatchingStrategy.cs:65] UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase) 
0x000002230FD4D7EB (Mono JIT Code) [MouseEventDispatchingStrategy.cs:60] UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 
0x000002230E6E082F (Mono JIT Code) [EventDispatcher.cs:282] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 
0x000002230E6D99D3 (Mono JIT Code) [EventDispatcher.cs:157] UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode) 
0x000002230E6D95F3 (Mono JIT Code) [Panel.cs:191] UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode) 
0x000002230E82721B (Mono JIT Code) [UIElementsUtility.cs:258] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) 
0x000002230E82694B (Mono JIT Code) [UIElementsUtility.cs:78] UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr) 
0x000002230E8262AE (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr) 
0x000002230E8264D3 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FFECE03BC80 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 
0x00007FFECDFC1D92 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007FFECDFCAD8F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 
0x00007FF7F4734E82 (Unity) scripting_method_invoke
0x00007FF7F472EB41 (Unity) ScriptingInvocation::Invoke
0x00007FF7F4728D9A (Unity) ScriptingInvocation::Invoke<bool>
0x00007FF7F1C9DD29 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF7F27012CC (Unity) GUIView::ProcessRetainedMode
0x00007FF7F307BF47 (Unity) GUIView::OnInputEvent
0x00007FF7F27011DC (Unity) GUIView::ProcessInputEvent
0x00007FF7F307D7A5 (Unity) GUIView::ProcessEventMessages
0x00007FF7F3070A6B (Unity) GUIView::GUIViewWndProc
0x00007FFF198FE858 (USER32) CallWindowProcW
0x00007FFF198FE299 (USER32) DispatchMessageW
0x00007FF7F305C961 (Unity) MainMessageLoop
0x00007FF7F305F1FF (Unity) WinMain
0x00007FF7F5CF2742 (Unity) __scrt_common_main_seh
0x00007FFF19547034 (KERNEL32) BaseThreadInitThunk
0x00007FFF1B51D241 (ntdll) RtlUserThreadStart

Thanks for your help!

I’ve seen this error about 100 times this week just switching back to Unity 2020.3.8f1

@JuliusPipikas
here’s the stacktrace

Should not be capturing when there is a hotcontrol
0x00007ff705c3779c (Unity) StackWalker::GetCurrentCallstack
0x00007ff705c3fb79 (Unity) StackWalker::ShowCallstack
0x00007ff707121f2c (Unity) GetStacktrace
0x00007ff708224b93 (Unity) DebugStringToFile
0x00007ff705c8d936 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x00000196e5e6e82b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x00000196e5e6e75b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object)
0x00000196e5e6e4a0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000196e5e6e368 (Mono JIT Code) UnityEngine.Debug:LogWarning (object)
0x00000196e5e6e2cb (Mono JIT Code) UnityEngine.UIElements.PointerDispatchState:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x00000196e5e6e10b (Mono JIT Code) UnityEngine.UIElements.PointerCaptureHelper:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x00000196e5e6dfc3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.UIElements.IEventHandler)
0x00000196e5e6dedb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.TakeCapture ()
0x00000196e5e6dd0a (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:TakeCapture ()
0x00000196e5e6dc5b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_0 ()
0x00000196e5e6dc1c (Mono JIT Code) UnityEngine.GUIUtility:TakeCapture ()
0x00000196e1ec843d (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffedd13e630 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
0x00007ffedd0c2ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007ffedd0cbb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007ff705aafae4 (Unity) scripting_method_invoke
0x00007ff705aa8435 (Unity) ScriptingInvocation::Invoke
0x00007ff705aa1325 (Unity) ScriptingInvocation::Invoke
0x00007ff704158f1f (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
0x00007ff70462c01b (Unity) GUIUtility::Internal_SetHotControl
0x00007ff704906f9d (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
0x00000196e5e6db47 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
0x00000196e5e6da8b (Mono JIT Code) UnityEngine.GUIUtility:set_hotControl (int)
0x00000196e1e8789b (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:HandleUnusedMouseEventsForItem (UnityEngine.Rect,UnityEditor.IMGUI.Controls.TreeViewItem,int)
0x00000196e1e7e603 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem,int,single,bool)
0x00000196e1e7d87b (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:IterateVisibleItems (int,int,single,bool)
0x00000196e1e78a63 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:OnGUI (UnityEngine.Rect,int)
0x00000196e1e76c23 (Mono JIT Code) UnityEditor.SceneHierarchy:DoTreeView (single)
0x00000196e1e756ab (Mono JIT Code) UnityEditor.SceneHierarchy:OnGUI (UnityEngine.Rect)
0x00000196e1e7555b (Mono JIT Code) UnityEditor.SceneHierarchyWindow:DoSceneHierarchy ()
0x00000196e1e5f37b (Mono JIT Code) UnityEditor.SceneHierarchyWindow:OnGUI ()
0x00000196e1d80b83 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x00000196e1d808f3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
0x00000196e1d72223 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x00000196e1d53dd0 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x00000196e1d52f9b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x00000196e1d51bcb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x00000196e1d51a33 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x00000196e1d5158b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x00000196e1d51413 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x00000196e1c4992b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x00000196e1c34c99 (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase)
0x00000196e261fb7b (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x00000196e261fa9b (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x00000196e2c6f9b3 (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000196e1c33abe (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x00000196e1c335b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000196e1c38f93 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x00000196e1c37563 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x00000196e1c374ab (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x00000196e1c33843 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000196e1c32f83 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x00000196e1c32dfb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x00000196e1d2fb1b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x00000196e1d2f5bb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x00000196e1d2f37f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x00000196e1d2f29b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x00000196e1d2f0fd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x00000196e1d2f1ae (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffedd13e630 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
0x00007ffedd0c2ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007ffedd0cbb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007ff705aafae4 (Unity) scripting_method_invoke
0x00007ff705aa8435 (Unity) ScriptingInvocation::Invoke
0x00007ff705aa1325 (Unity) ScriptingInvocation::Invoke
0x00007ff704157d3d (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7066d7806 (Unity) GUIView::ProcessRetainedMode
0x00007ff707163bda (Unity) GUIView::OnInputEvent
0x00007ff7066d76f8 (Unity) GUIView::ProcessInputEvent
0x00007ff7071650b7 (Unity) GUIView::ProcessEventMessages
0x00007ff70715c6b0 (Unity) GUIView::GUIViewWndProc
0x00007fff4541e858 (USER32) CallWindowProcW
0x00007fff4541e299 (USER32) DispatchMessageW
0x00007ff70712b5d6 (Unity) MainMessageLoop
0x00007ff70712f761 (Unity) WinMain
0x00007ff708f746e6 (Unity) __scrt_common_main_seh
0x00007fff457f7034 (KERNEL32) BaseThreadInitThunk
0x00007fff459e2651 (ntdll) RtlUserThreadStart

This is STILL HAPPENING. I don’t know if it means something important or not - the scariest type of warning or error message.

@JuliusPipikas

Should not be capturing when there is a hotcontrol
0x00007ff6572d599c (Unity) StackWalker::GetCurrentCallstack
0x00007ff6572ddd79 (Unity) StackWalker::ShowCallstack
0x00007ff6587e52ac (Unity) GetStacktrace
0x00007ff65990cae3 (Unity) DebugStringToFile
0x00007ff65733e276 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002923012a8db (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002923012a77b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000029230129c9e (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000002923012993d (Mono JIT Code) UnityEngine.Debug:LogWarning (object)
0x0000029230129793 (Mono JIT Code) UnityEngine.UIElements.PointerDispatchState:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x000002923012927b (Mono JIT Code) UnityEngine.UIElements.PointerCaptureHelper:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x0000029230128f3b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.UIElements.IEventHandler)
0x0000029230128cbb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.TakeCapture ()
0x0000029230128723 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:TakeCapture ()
0x00000292301284cb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_0 ()
0x00000292301283de (Mono JIT Code) UnityEngine.GUIUtility:TakeCapture ()
0x00000292525c3065 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ff833c6e650 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke 
0x00007ff833bf2ae2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007ff833bfbb3f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 
0x00007ff65715d874 (Unity) scripting_method_invoke
0x00007ff6571561c5 (Unity) ScriptingInvocation::Invoke
0x00007ff65714ecb5 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff6557dabaf (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
0x00007ff655cb2c0b (Unity) GUIUtility::Internal_SetHotControl
0x00007ff655f91bfd (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
0x00000292301281ee (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
0x00000292301280a3 (Mono JIT Code) UnityEngine.GUIUtility:set_hotControl (int)
0x000002922fa5e03b (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:HandleUnusedMouseEventsForItem (UnityEngine.Rect,UnityEditor.IMGUI.Controls.TreeViewItem,int)
0x000002922fa4a10b (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem,int,single,bool)
0x000002922fa48733 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:IterateVisibleItems (int,int,single,bool)
0x000002922fa3df23 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:OnGUI (UnityEngine.Rect,int)
0x000002922fed122b (Mono JIT Code) UnityEditor.ProjectBrowser:OnGUI ()
0x000002922f6fbc54 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x000002922f6fb623 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
0x000002922f6defdb (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000002922f6a7862 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000002922f6a4f43 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000002922fac1dab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000002922fac1ab3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000002922ff3394b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000002922ff2bf93 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000002922ddda40b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000002922ddbb7ea (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase)
0x000002922ff32c63 (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000002922ff329db (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000002922ff31c1b (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002922ddb85f6 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000002922ddb71e3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002922ddc7d5b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000002922ddc327b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000002922ddc301b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000002922ddb7b43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000002922ddb6563 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000002922ddb60cb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000002922f3f0a03 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000002922f3efbc3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000002922f3ef5df (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000002922f3ef2eb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000002922f3eede5 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000002922f3ef006 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ff833c6e650 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke 
0x00007ff833bf2ae2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007ff833bfbb3f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 
0x00007ff65715d874 (Unity) scripting_method_invoke
0x00007ff6571561c5 (Unity) ScriptingInvocation::Invoke
0x00007ff65714ecb5 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff6557d99cd (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff657d88286 (Unity) GUIView::ProcessRetainedMode
0x00007ff658827225 (Unity) GUIView::OnInputEvent
0x00007ff657d88178 (Unity) GUIView::ProcessInputEvent
0x00007ff658828717 (Unity) GUIView::ProcessEventMessages
0x00007ff65881faa3 (Unity) GUIView::GUIViewWndProc
0x00007ff8a9cce858 (USER32) CallWindowProcW
0x00007ff8a9cce299 (USER32) DispatchMessageW
0x00007ff6587ee956 (Unity) MainMessageLoop
0x00007ff6587f2ae1 (Unity) WinMain
0x00007ff65a63b016 (Unity) __scrt_common_main_seh
0x00007ff8a9997034 (KERNEL32) BaseThreadInitThunk
0x00007ff8a9f02651 (ntdll) RtlUserThreadStart

From other forum this happens if there is some int value while you need a float

for example : new Vector3(0, 0, 2f);

it should be: new Vector3(0f, 0f, 2f);

It doen´t break the game at all but like this it is an annoying warning

I restarted Unity and another error about a mistake in my script popped up. When i corrected that, it worked.

Still happening in 2023 …