Search Issue Tracker
Fixed in 2018.2
Votes
0
Found in
2017.2.0p1
2017.2.0a4
Issue ID
1006074
Regression
Yes
"Should not be capturing when there is a hotcontrol" message thrown after double clicking on runtime error and exiting playmode
How to reproduce:
1. Open the attached "Test" project and "Repro" scene, enter playmode
2. Press "DivideBy0" button and notice the "Division by zero" runtime error
3. Click on error twice to open the script and go back to Unity
4. Exit the playmode with Visual Studio still opened and observe the console
Expected result: No warnings/messages are thrown after exiting playmode
Actual result: "Should not be capturing when there is a hotcontrol" message is thrown
Regression introduced with - 2017.2.0a4
Reproducible with - 2018.1.0b10, 2017.3.1p3, 2017.2.2f2, 2017.2.0a4
Not reproducible with - 2018.2.0a4, 2017.2.0a3
Note: Could not reproduce with Visual Studio Code, reproduced with Visual Studio 2017/Visual Studio 2015
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader error db grows on each build
- Android ARCore build fails with 2019.4 due to outdated Gradle
- [tvOS] Visual artifacts are present when Ambient Occlusion is enabled and Dynamic Resolution is reduced
- Texture Importer Inspector throws errors when a built-in texture inspector is overwritten in C#
- Invalid AABB error is thrown when moving a Particle with Velocity over Lifetime and Limit Velocity over Lifetime modules
kerjemanov
Nov 05, 2020 11:13
I have this warning on Unity 2020.1.11f1
Full output:
Should not be capturing when there is a hotcontrol
0x00007FF7D1C7422C (Unity) StackWalker::GetCurrentCallstack
0x00007FF7D1C78251 (Unity) StackWalker::ShowCallstack
0x00007FF7D2EF0D55 (Unity) GetStacktrace
0x00007FF7D3D9917E (Unity) DebugStringToFile
0x00007FF7D1D0B395 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001F15CBAC02B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001F15CBABEAB (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001F15CBAB32E (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001F15CBAAF7D (Mono JIT Code) UnityEngine.Debug:LogWarning (object)
0x000001F15CBAADD3 (Mono JIT Code) UnityEngine.UIElements.PointerDispatchState:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x000001F15CBAA88B (Mono JIT Code) UnityEngine.UIElements.PointerCaptureHelper:CapturePointer (UnityEngine.UIElements.IEventHandler,int)
0x000001F15CBAA52B (Mono JIT Code) UnityEngine.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.UIElements.IEventHandler)
0x000001F15CBAA28B (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.TakeCapture ()
0x000001F15CBA9CF3 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:TakeCapture ()
0x000001F15CBA9A7B (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_0 ()
0x000001F15CBA998E (Mono JIT Code) UnityEngine.GUIUtility:TakeCapture ()
0x000001F1585ADD35 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFCCD09DB10 ((<unknown>))
0x00007FFCCD022902 ((<unknown>))
0x00007FFCCD02B95F ((<unknown>))
0x00007FF7D1B14A04 (Unity) scripting_method_invoke
0x00007FF7D1B0E52B (Unity) ScriptingInvocation::Invoke
0x00007FF7D1B08205 (Unity) ScriptingInvocation::Invoke<void>
0x00007FF7D03D6BBF (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
0x00007FF7D087226B (Unity) GUIUtility::Internal_SetHotControl
0x00007FF7D0ABA3C7 (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
0x000001F15CBA979E (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
0x000001F15CBA9633 (Mono JIT Code) UnityEngine.GUIUtility:set_hotControl (int)
0x000001F15C94D9D3 (Mono JIT Code) UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect,int)
0x000001F15C94D60B (Mono JIT Code) UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect)
0x000001F15C947AD3 (Mono JIT Code) UnityEditor.ListViewShared/ListViewElementsEnumerator:MoveNext ()
0x000001F1585C479C (Mono JIT Code) UnityEditor.ConsoleWindow:OnGUI ()
0x000001F15859BA34 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x000001F15859B3C3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
0x000001F158583043 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001F15746A9FA (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001F157468023 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001F15C96EA5B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001F15C96E743 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001F15CB509FB (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001F15CB48F33 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001F157241D0B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001F15722C94A (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase)
0x000001F15CB50143 (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000001F15CB4FC3B (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000001F15CB4EDDB (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001F157229636 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001F157228133 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001F1572272BB (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001F157226F0B (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001F157226C8B (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000001F157228A93 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001F157221E23 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001F15722196B (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001F1573FBA83 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001F1573FAC93 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001F1573FA6AF (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001F1573FA39B (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001F1573F9E95 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001F1573FA0B6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007FFCCD09DB10 ((<unknown>))
0x00007FFCCD022902 ((<unknown>))
0x00007FFCCD02B95F ((<unknown>))
0x00007FF7D1B14A04 (Unity) scripting_method_invoke
0x00007FF7D1B0E52B (Unity) ScriptingInvocation::Invoke
0x00007FF7D1B08205 (Unity) ScriptingInvocation::Invoke<void>
0x00007FF7D03CF28D (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF7D2649D68 (Unity) GUIView::ProcessRetainedMode
0x00007FF7D2F1898D (Unity) GUIView::OnInputEvent
0x00007FF7D2649C91 (Unity) GUIView::ProcessInputEventInternal
0x00007FF7D2F19FD9 (Unity) GUIView::ProcessEventMessages
0x00007FF7D2F12CC2 (Unity) GUIView::GUIViewWndProc
0x00007FFD135EE6D8 (USER32) CallWindowProcW
0x00007FFD135EE119 (USER32) DispatchMessageW
0x00007FF7D2F17B78 (Unity) MainMessageLoop
0x00007FF7D2F2104E (Unity) WinMain
0x00007FF7D4BEC9F6 (Unity) __scrt_common_main_seh
0x00007FFD138C7034 (KERNEL32) BaseThreadInitThunk
0x00007FFD14C5CEC1 (ntdll) RtlUserThreadStart
MarkWaldo
Oct 31, 2020 23:18
This error may be caused by attaching the same script to two or more game objects. That is what happened to me.
BatCountryGames
Sep 25, 2020 01:10
Issue still exists in 2020.1.6f1.
KingVanti
Sep 17, 2020 08:40
This is not fixed in 2020.1.5f1. Still got:
Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
fasteddoict
Aug 19, 2020 20:54
Still happening in 2020.1.2f1.
"Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)"
Happens for me when changing code in Visual Studio 2019, save and alt-tab back into unity.
farrukhnawaz
Jul 05, 2020 11:12
https://mobiledady.com/mobiles/
https://rewriter-tool.com/
https://spinbot.rewriter-tool.com/
https://paraphrasing.rewriter-tool.com/
https://seotoolcheckers.com/backlink-maker
https://seotoolcheckers.com/page-speed-checker
sama-van
Jun 14, 2020 03:19
Still going in 2020.2.0a13.
oznogon
May 26, 2020 04:53
Still going strong in the year 2020, 2018.4.23f1
robinsail
Feb 26, 2020 15:56
Getting this in Unity 2019.2.4f with Visual Studio 2017, v 15.7.4
toolparaphrase
Jan 12, 2020 18:35
I found that reloading the solution in VS cleared this up. Double click on the script in Unity, then click reload solution inside VS for each of your scripts.
https://rewriter-tool.com/
https://freearticlespinbot.com/
https://seotoolcheckers.com/backlink-maker