Search Unity

Unity 2017.1.p2 Issue with GUIUtility.hotControl

Discussion in 'Editor & General Support' started by CreativeSpore, Aug 10, 2017.

  1. CreativeSpore

    CreativeSpore

    Joined:
    Nov 6, 2014
    Posts:
    1,190
    It looks like there is an error happening sometimes when setting the hotControl.
    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. UnityEngine.GUIUtility:set_hotControl(Int32)
    3. CreativeSpore.SuperTilemapEditor.TilemapEditor:DoPaintSceneGUI() (at Assets/CreativeSpore/SuperTilemapEditor/Scripts/Tilemap/Editor/TilemapEditor.cs:669)
    4. CreativeSpore.SuperTilemapEditor.TilemapEditor:OnSceneGUI() (at Assets/CreativeSpore/SuperTilemapEditor/Scripts/Tilemap/Editor/TilemapEditor.cs:285)
    5. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    I couldn't find any information about this error. Is it a bug?

    This line is triggering the error:
    Code (CSharp):
    1. GUIUtility.hotControl = controlID;
    And this is called before:
    Code (CSharp):
    1. int controlID = GUIUtility.GetControlID(FocusType.Passive);
    2. HandleUtility.AddDefaultControl(controlID);
    3. EventType currentEventType = Event.current.GetTypeForControl(controlID);
    4.  
    Thanks for your help!
     
    StartStart likes this.
  2. JadeTheFlame

    JadeTheFlame

    Joined:
    Jul 27, 2014
    Posts:
    7
    Unity 2017 is riddled with bugs such as these. Having the same issues, +1.
     
    awesomedata and BakeMyCake like this.
  3. dCalle

    dCalle

    Joined:
    Dec 16, 2013
    Posts:
    55
    yeah, me too... working on a custom inspector with toolbars as tabs... at least a line would help to find a workaround...
     
  4. Bloody-Swamp

    Bloody-Swamp

    Joined:
    Jul 30, 2012
    Posts:
    38
    Same thing in 2017.2.0f3
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    Anyone filed a bug report?
     
  6. m4dbcn

    m4dbcn

    Joined:
    Oct 18, 2017
    Posts:
    1
    hey Im having the same problem game runs nicely but when i want to build it says that there is 20 errors, Visualstudio runs fine with the scripts, no errors,

    i also get this errors when building

    Assets/Scripts/FollowPlayer.cs(7,12): error CS0246: The type or namespace name `Vector3' could not be found. Are you missing an assembly reference?
    Assets/Scripts/FollowPlayer.cs(6,12): error CS0246: The type or namespace name `Transform' could not be found. Are you missing an assembly reference?
    Assets/Start.cs(4,22): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?

    Assets/Scripts/Score.cs(4,22): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?
    Assets/Scripts/PlayerMovement.cs(3,31): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?


    some help would be appreciated
     
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    Can you share your editor log file?
     
  8. Forest3

    Forest3

    Joined:
    May 3, 2014
    Posts:
    15
    Getting similar weird errors. In my case not pointing to a specific line (sometimes):

    Code (CSharp):
    1. Should not grab hot control with an active capture (current=Dockarea3 (x:0.00, y:0.00, width:1501.00, height:353.00) global rect: (x:0.00, y:0.00, width:1501.00, height:353.00) new=Dockarea5 (x:0.00, y:0.00, width:223.00, height:573.00) global rect: (x:0.00, y:0.00, width:223.00, height:573.00)
    2. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    3.  
    4. Should not be capturing when there is a hotcontrol
    5. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    I am in 2017.1.1f. Once I saw this message (the second one) pointing to one slider, and once to a button, but I can't reproduce it anymore. I'm upgrading to see if the weird errors go away...

    While writing this now I got a:
    Code (CSharp):
    1. GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
    2. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    Lots of errors guys :(


    EDIT. Version 2017.2.0f3 solved the issues for me.
    EDIT2. I still get random

    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    I'm not even using GUIUtility.hotControl anywhere in my code. And given it is difficult to reproduce I don't know how could I log a bug for this.
     
    Last edited: Nov 4, 2017
  9. DougRichardson

    DougRichardson

    Joined:
    Oct 7, 2017
    Posts:
    74
    I'm also hitting this a lot. @karl_jones, are you still waiting for someone to file a bug on this?
     
  10. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    We have some similar sounding bugs with QA but its still worth filing your own bug report especially if its an issue for you.
     
  11. Archanor

    Archanor

    Joined:
    Dec 2, 2013
    Posts:
    575
    @karl_jones Got a similar bug in 2017.2 when simply selecting multiple particle systems in hierarchy/inspector which have been upgraded from older versions. (Case 972613)

    Code (CSharp):
    1. SetMinMaxState is not allowed with multiple different values
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
    karl_jones likes this.
  12. Willkuerlich

    Willkuerlich

    Joined:
    Sep 23, 2014
    Posts:
    15
    Same issue with completely new project in 2017.3 - Happens occassionally, next time I got it I'll send a bug report (Done: Case 980251)
     
    Last edited: Dec 20, 2017
  13. boysenberry

    boysenberry

    Joined:
    Jul 28, 2014
    Posts:
    365
    Still there as well, so much for filing bug reports...

    [Log] [C:/buildslave/unity/build/Runtime/UIElements/Managed/EventDispatcher.cs] Should not be capturing when there is a hotcontrol

    No line number, no info on what caused it, just appeared all of the sudden. Lame sauce...
     
  14. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    I'm getting this as well.

    Anyone getting this while using OnSceneGUI events for anything mouse-related?


    @karl_jones

    Any update on this bug?
     
  15. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    It was fixed in March. What version are you using?
     
  16. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Awesome! -- could you link me to the bug case for this please?

    I am currently developing an Asset (working on the 2017.1 version) and I want to be sure I can quote this if there are any issues from customers on any of these versions (plus I want to know where it originated because I want to be sure there is nothing wrong with my code, and find a way to workaround it if possible).

    Thanks for the quick response, karl!
     
  17. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    https://issuetracker.unity3d.com/is...wn-when-double-clicking-on-a-specific-warning

    The fix is available in 2018.1 and above.
     
    awesomedata likes this.
  18. Deleted User

    Deleted User

    Guest

    This is still happening in 2018.2.1f1
     
  19. D-Coy

    D-Coy

    Joined:
    Jun 2, 2013
    Posts:
    16
    Im getting the same warning in 2018.2.10f, seems after i added #pragma warning disable to one of my scripts ( was getting the "The variable [...] is assigned but its value is never used" warning when the variable was being used)

    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
  20. Deleted User

    Deleted User

    Guest

    @karl_jones Same thing for me using 2018.2.16f1:

    Capture.JPG

    The message pops up from time to time; I have no idea what I was doing that triggered it.
     
  21. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    The bug in this thread was fixed in 2018.2.0a4. Other things can cause it to trigger that message. If you can figure out what it is you are doing then please file a bug report.
     
  22. Deleted User

    Deleted User

    Guest

    I have filed bugs report in the past and the guys said that they were not able to duplicate the problem.

    The message just popped up after Unity compiled a script that I had just modified. In case it can help, I'm using Visual Studio Community 2017.
     
  23. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    Yes if we can't reproduce the bug or we don't have enough information then it can be tricky to know what the problem is or how to fix it. If you get a good reproduction or callstack then let us know otherwise we just have to hope someone else is able to detect the issue. Sometimes an error message is just not enough if you don't know what caused the error :(
    For all we know it could be a false positive.
     
  24. Deleted User

    Deleted User

    Guest

    It just popped up again. This time it happened just after I renamed a folder containing a script in the editor project view.
     
  25. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    Was there any callstack associated with the message?
     
  26. Deleted User

    Deleted User

    Guest

    No, it's each time the same message that displays on the image I added to my post #20, nothing more, just that text.


    There seem to be a pattern though, each time it showed up, scripts were more or less involved:
    • after Unity had recompiled a modified script,
    • after Unity updated itself after I renamed a folder containing scripts...
     
  27. Deleted User

    Deleted User

    Guest

    It happened again. Same pattern: I modify a script in Visual Studio, Unity compiles it and the message pops up. This time I took a bigger image:

    Capture.JPG
     
  28. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
  29. Deleted User

    Deleted User

    Guest

    All set, waiting for next message. :)
     
    karl_jones and Lurking-Ninja like this.
  30. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    275
    @karl_jones I have a full stack for this one :


    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. 0x0000000141407828 (Unity) StackWalker::GetCurrentCallstack
    3. 0x000000014140DCB6 (Unity) StackWalker::ShowCallstack
    4. 0x00000001412F167B (Unity) GetStacktrace
    5. 0x0000000140142DCE (Unity) DebugStringToFile
    6. 0x0000000141776A8D (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x0000000037FCE9E0 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
    8. 0x0000000037FCE643 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x0000000037FCDEC5 (Mono JIT Code) [Logger.cs:48] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x0000000037FCDB5C (Mono JIT Code) [Debug.bindings.cs:98] UnityEngine.Debug:Log (object)
    11. 0x0000000037FCD573 (Mono JIT Code) [MouseCaptureController.cs:45] UnityEngine.Experimental.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.Experimental.UIElements.IEventHandler)
    12. 0x0000000037FCD1BB (Mono JIT Code) [UIElementsUtility.cs:51] UnityEngine.Experimental.UIElements.UIElementsUtility:TakeCapture ()
    13. 0x0000000037FCCECA (Mono JIT Code) [GUIUtility.cs:118] UnityEngine.GUIUtility:TakeCapture ()
    14. 0x000000003D182415 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    15. 0x00007FFA48D6BE5B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    16. 0x00007FFA48CF1E12 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    17. 0x00007FFA48CFAE1F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    18. 0x0000000140BFBF0A (Unity) scripting_method_invoke
    19. 0x0000000140BEC4DA (Unity) ScriptingInvocation::Invoke
    20. 0x0000000140BE6515 (Unity) ScriptingInvocation::Invoke<void>
    21. 0x000000014042D6DE (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
    22. 0x0000000141B683CB (Unity) GUIUtility::Internal_SetHotControl
    23. 0x0000000141644FD1 (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
    24. 0x0000000037FCCCEE (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
    25. 0x0000000037FCCBD3 (Mono JIT Code) [GUIUtility.cs:112] UnityEngine.GUIUtility:set_hotControl (int)
    26. 0x00000000378752E3 (Mono JIT Code) [ListViewShared.cs:189] UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect,int)
    27. 0x0000000037874FCB (Mono JIT Code) [ListViewShared.cs:179] UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect)
    28. 0x00000000378702CB (Mono JIT Code) [ListViewShared.cs:370] UnityEditor.ListViewShared/ListViewElementsEnumerator:MoveNext ()
    29. 0x0000000037864FA9 (Mono JIT Code) [ConsoleWindow.cs:634] UnityEditor.ConsoleWindow:OnGUI ()
    30. 0x000000003B946F20 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    31. 0x00007FFA48D6BE5B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    32. 0x00007FFA48CF1E12 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    33. 0x00007FFA48CFAFF2 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
    34. 0x00007FFA48CFB789 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
    35. 0x00007FFA48CFAF86 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
    36. 0x00007FFA48C9FED4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
    37. 0x000000003D44D0D6 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    38. 0x000000003D44B6DB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    39. 0x000000001FC7A24F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    40. 0x00000000357CCCC3 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object)
    41. 0x00000000357CCB23 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string)
    42. 0x00000000367E22C3 (Mono JIT Code) [HostView.cs:303] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    43. 0x00000000367E1733 (Mono JIT Code) [DockArea.cs:364] UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool,bool)
    44. 0x00000000367C850B (Mono JIT Code) [DockArea.cs:323] UnityEditor.DockArea:OldOnGUI ()
    45. 0x00000000367A346C (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool)
    46. 0x00000000367A181B (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
    47. 0x0000000037857163 (Mono JIT Code) [IMGUIContainer.cs:421] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event)
    48. 0x00000000357C17FB (Mono JIT Code) [IMGUIContainer.cs:401] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase)
    49. 0x00000000357B967E (Mono JIT Code) [EventDispatcher.cs:755] UnityEngine.Experimental.UIElements.EventDispatcher:PropagateEvent (UnityEngine.Experimental.UIElements.EventBase)
    50. 0x00000000357B7263 (Mono JIT Code) [EventDispatcher.cs:600] UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel)
    51. 0x00000000357AF11B (Mono JIT Code) [EventDispatcher.cs:308] UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel,UnityEngine.Experimental.UIElements.DispatchMode)
    52. 0x00000000357AEBE3 (Mono JIT Code) [Panel.cs:177] UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.DispatchMode)
    53. 0x0000000035933DB3 (Mono JIT Code) [UIElementsUtility.cs:248] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)
    54. 0x000000003593351B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
    55. 0x0000000035932E84 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
    56. 0x00000000359330A3 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
    57. 0x00007FFA48D6BE5B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    58. 0x00007FFA48CF1E12 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    59. 0x00007FFA48CFAE1F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    60. 0x0000000140BFBF0A (Unity) scripting_method_invoke
    61. 0x0000000140BEC4DA (Unity) ScriptingInvocation::Invoke
    62. 0x0000000140BE653A (Unity) ScriptingInvocation::Invoke<bool>
    63. 0x000000014042D32C (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    64. 0x000000014128351C (Unity) GUIView::ProcessRetainedMode
    65. 0x000000014146FBBC (Unity) GUIView::OnInputEvent
    66. 0x000000014128342C (Unity) GUIView::ProcessInputEvent
    67. 0x0000000141471144 (Unity) GUIView::ProcessEventMessages
    68. 0x000000014146A219 (Unity) GUIView::GUIViewWndProc
    69. 0x00007FFAA875CA66 (USER32) DispatchMessageW
    70. 0x00007FFAA875C582 (USER32) DispatchMessageW
    71. 0x000000014148A7BF (Unity) MainMessageLoop
    72. 0x000000014148C2B6 (Unity) WinMain
    73. 0x000000014246A26A (Unity) __scrt_common_main_seh
    74. 0x00007FFAA6B27E94 (KERNEL32) BaseThreadInitThunk
    75. 0x00007FFAA8D67AD1 (ntdll) RtlUserThreadStart
    76.  
    I can fill a bug report if you wanna keep a trace, even if it's not really a bug.
    BTW : I'm in Unity 2018.3 (not 2017.X)
     
  31. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    Yes could you file a bug report please. Thanks!
     
  32. Deleted User

    Deleted User

    Guest

    Will be useless, they will not manage to reproduce the problem and the bug report will be closed.
     
  33. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    275
    ah !
    I can try at least ;)
    Thanks for the hint Anne, it will cost me not a lot of time to do it ^^
     
  34. Deleted User

    Deleted User

    Guest

    The bug report would have more weight if you did it. :)
     
  35. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    We collect call stacks and can link them to other bugs. Whilst this bug report may not be actionable the callstack will still be logged and can give an indication of an emerging issue or even link to a project that has a good reproduction.
    Me filing the bug report does not carry any more weight and just means that you get cut out of the loop with no idea what happened next.
     
  36. Deleted User

    Deleted User

    Guest

    Here is another one, same circumstances, happened just after Unity 2018.2.18f1 compiled a script I just modified in Visual Studio:

    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. 0x000000014153B688 (Unity) StackWalker::GetCurrentCallstack
    3. 0x0000000141541BC6 (Unity) StackWalker::ShowCallstack
    4. 0x0000000141410F5B (Unity) GetStacktrace
    5. 0x00000001408B1E60 (Unity) DebugStringToFile
    6. 0x00000001418E09C8 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x0000000035DEAFBB (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
    8. 0x0000000035DEAEA4 (Mono JIT Code) [DebugLogHandler.cs:9] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x0000000035DEA7A5 (Mono JIT Code) [Logger.cs:47] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x0000000035DEA4C6 (Mono JIT Code) [Debug.bindings.cs:98] UnityEngine.Debug:Log (object)
    11. 0x0000000035DEA1B4 (Mono JIT Code) [MouseCaptureController.cs:23] UnityEngine.Experimental.UIElements.MouseCaptureController:TakeMouseCapture (UnityEngine.Experimental.UIElements.IEventHandler)
    12. 0x0000000035DE9F43 (Mono JIT Code) [UIElementsUtility.cs:56] UnityEngine.Experimental.UIElements.UIElementsUtility:TakeCapture ()
    13. 0x0000000035DE9CCC (Mono JIT Code) [GUIUtility.cs:110] UnityEngine.GUIUtility:TakeCapture ()
    14. 0x000000000BC40F6E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    15. 0x000007FEBE65671B (mono) [mini.c:4937] mono_jit_runtime_invoke
    16. 0x000007FEBE5A8A71 (mono) [object.c:2623] mono_runtime_invoke
    17. 0x0000000140C07A3A (Unity) scripting_method_invoke
    18. 0x0000000140BFFD90 (Unity) ScriptingInvocation::Invoke
    19. 0x0000000140BFAD85 (Unity) ScriptingInvocation::Invoke<void>
    20. 0x000000014041843A (Unity) IMGUIScriptingClasses::TakeCapture
    21. 0x0000000141CD089D (Unity) GUIUtility::Internal_SetHotControl
    22. 0x00000001417E52F1 (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
    23. 0x0000000035DE9BC5 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
    24. 0x0000000035DE9AC7 (Mono JIT Code) [GUIUtility.cs:103] UnityEngine.GUIUtility:set_hotControl (int)
    25. 0x0000000031C6C931 (Mono JIT Code) [TreeViewController.cs:352] UnityEditor.IMGUI.Controls.TreeViewController:HandleUnusedMouseEventsForItem (UnityEngine.Rect,UnityEditor.IMGUI.Controls.TreeViewItem,int)
    26. 0x0000000031C61520 (Mono JIT Code) [TreeViewController.cs:504] UnityEditor.IMGUI.Controls.TreeViewController:DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem,int,single,bool)
    27. 0x0000000031C60295 (Mono JIT Code) [TreeViewController.cs:670] UnityEditor.IMGUI.Controls.TreeViewController:IterateVisibleItems (int,int,single,bool)
    28. 0x0000000031C57D0A (Mono JIT Code) [TreeViewController.cs:601] UnityEditor.IMGUI.Controls.TreeViewController:OnGUI (UnityEngine.Rect,int)
    29. 0x0000000031C55A16 (Mono JIT Code) [SceneHierarchyWindow.cs:583] UnityEditor.SceneHierarchyWindow:DoTreeView (single)
    30. 0x0000000031C34A33 (Mono JIT Code) [SceneHierarchyWindow.cs:409] UnityEditor.SceneHierarchyWindow:OnGUI ()
    31. 0x000000000BC87402 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    32. 0x000007FEBE65671B (mono) [mini.c:4937] mono_jit_runtime_invoke
    33. 0x000007FEBE5A8A71 (mono) [object.c:2623] mono_runtime_invoke
    34. 0x000007FEBE5AEF87 (mono) [object.c:3838] mono_runtime_invoke_array
    35. 0x000007FEBE56D3A2 (mono) [icall.c:2763] ves_icall_InternalInvoke
    36. 0x000000000BC50847 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    37. 0x000000000BC4E9A2 (Mono JIT Code) [MonoMethod.cs:222] System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    38. 0x0000000031A58CFF (Mono JIT Code) [MethodBase.cs:115] System.Reflection.MethodBase:Invoke (object,object[])
    39. 0x0000000031B489A5 (Mono JIT Code) [HostView.cs:295] UnityEditor.HostView:Invoke (string,object)
    40. 0x0000000031B4884A (Mono JIT Code) [HostView.cs:288] UnityEditor.HostView:Invoke (string)
    41. 0x0000000031C32C82 (Mono JIT Code) [HostView.cs:255] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    42. 0x0000000031C1FEEF (Mono JIT Code) [DockArea.cs:392] UnityEditor.DockArea:OldOnGUI ()
    43. 0x0000000031C061AC (Mono JIT Code) [IMGUIContainer.cs:216] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,bool)
    44. 0x0000000031C04AF2 (Mono JIT Code) [IMGUIContainer.cs:376] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event)
    45. 0x0000000031B4002F (Mono JIT Code) [IMGUIContainer.cs:355] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase)
    46. 0x0000000031B3845E (Mono JIT Code) [EventDispatcher.cs:500] UnityEngine.Experimental.UIElements.EventDispatcher:PropagateEvent (UnityEngine.Experimental.UIElements.EventBase)
    47. 0x0000000031B35900 (Mono JIT Code) [EventDispatcher.cs:345] UnityEngine.Experimental.UIElements.EventDispatcher:DispatchEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel)
    48. 0x0000000031BCBF08 (Mono JIT Code) [UIElementsUtility.cs:243] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)
    49. 0x0000000031BCB7AB (Mono JIT Code) [UIElementsUtility.cs:74] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
    50. 0x0000000031BCB2CD (Mono JIT Code) [GUIUtility.cs:171] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
    51. 0x0000000031BCB48E (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
    52. 0x000007FEBE65671B (mono) [mini.c:4937] mono_jit_runtime_invoke
    53. 0x000007FEBE5A8A71 (mono) [object.c:2623] mono_runtime_invoke
    54. 0x0000000140C07A3A (Unity) scripting_method_invoke
    55. 0x0000000140BFFD90 (Unity) ScriptingInvocation::Invoke
    56. 0x0000000140BFADAA (Unity) ScriptingInvocation::Invoke<bool>
    57. 0x0000000140418089 (Unity) IMGUIScriptingClasses::ProcessEvent
    58. 0x000000014139CD54 (Unity) GUIView::ProcessRetainedMode
    59. 0x00000001415D3FE2 (Unity) GUIView::OnInputEvent
    60. 0x000000014139CCDC (Unity) GUIView::ProcessInputEvent
    61. 0x00000001415D533A (Unity) GUIView::ProcessEventMessages
    62. 0x00000001415CEA6D (Unity) GUIView::GUIViewWndProc
    63. 0x00000000777A9BBD (USER32) TranslateMessageEx
    64. 0x00000000777A98C2 (USER32) TranslateMessage
    65. 0x00000001415EDF74 (Unity) MainMessageLoop
    66. 0x00000001415F0198 (Unity) WinMain
    67. 0x0000000142434B9A (Unity) __scrt_common_main_seh
    68. 0x00000000776859CD (kernel32) BaseThreadInitThunk
    69. 0x00000000778E385D (ntdll) RtlUserThreadStart
     
    Last edited by a moderator: Dec 4, 2018
  37. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    So I think there are some instances where certain controls will try to steal the hotcontrol (sets hotcontrol without first checking if it is already taken)
    We do have a long-standing bug regarding this. I will add your callstacks and info to it. Unfortunately, the bug is not public so I can not share an issue tracker link.
    Thanks
     
  38. Deleted User

    Deleted User

    Guest

    If I may, why is it that this bug is not public? Also, what does actually mean "Should not be capturing when there is a hotcontrol"? What capture is that? And what is a "hotcontrol"? Sorry, I'm quite new at this. :)

    There is an issue tracker about that here: https://issuetracker.unity3d.com/is...licking-on-runtime-error-and-exiting-playmode that was referenced in a topic on Unity Answers here: https://answers.unity.com/questions/1427421/should-not-be-capturing-when-there-is-a-hotcontrol.html

    I'll keep posting the messages when I get them since I'm using three versions of Unity:
    • 2018.2.xf1,
    • 2018.3.x,
    • 2019.x,
    in a least two different projects. For now, the messages I posted here popped up in the same project, the Stealth project that I am remaking for myself: https://assetstore.unity.com/packages/essentials/tutorial-projects/stealth-unity-4x-7677
     
  39. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,276
    I'm not sure why it's private, it was created internally and I suspect they just didn't set it to public. A hot control is basically the Editor control that is selected, e.g a list view or button etc. The error messages are nothing to worry about.
     
    Deleted User likes this.
  40. Deleted User

    Deleted User

    Guest

    Hello and have a good week everyone! :D

    My first with Unity 2019.1.0a11, still after modifying a script in Visual Studio and Unity compiled the new script:

    (Is there any way to disable emoticons in quotes?)
     
  41. dabalciunas

    dabalciunas

    Joined:
    Jan 17, 2016
    Posts:
    2
    I have exactly the same issue, in Unity 2019.1.7.f1
     
  42. Deleted User

    Deleted User

    Guest

    So, where are they with this?

    I'm having it a lot in my current project with 2019.2.18f1. :) Still happens after I've finished editing a script and come back to Unity.
    Code (CSharp):
    1. Should not be capturing when there is a hotcontrol
    2. 0x0000000142C8650C (Unity) StackWalker::GetCurrentCallstack
    3. 0x0000000142C899E1 (Unity) StackWalker::ShowCallstack
    4. 0x00000001415172A5 (Unity) GetStacktrace
    5. 0x000000014383F92B (Unity) DebugStringToFile
    6. 0x0000000142CBA994 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x0000000012D5F57B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    8. 0x0000000012D5F1CB (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x0000000012D5E895 (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x0000000012D5E52C (Mono JIT Code) [Debug.bindings.cs:99] UnityEngine.Debug:Log (object)
    11. 0x0000000012D5DF43 (Mono JIT Code) [MouseCaptureController.cs:33] UnityEngine.UIElements.MouseCaptureController:CaptureMouse (UnityEngine.UIElements.IEventHandler)
    12. 0x0000000012D5DB8B (Mono JIT Code) [UIElementsUtility.cs:61] UnityEngine.UIElements.UIElementsUtility:TakeCapture ()
    13. 0x0000000012D5D89A (Mono JIT Code) [GUIUtility.cs:118] UnityEngine.GUIUtility:TakeCapture ()
    14. 0x0000000029392DF5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    15. 0x000007FEBFDFBFB0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    16. 0x000007FEBFD82142 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    17. 0x000007FEBFD8B13F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    18. 0x0000000142C10732 (Unity) scripting_method_invoke
    19. 0x0000000142C0A3E1 (Unity) ScriptingInvocation::Invoke
    20. 0x0000000142C04615 (Unity) ScriptingInvocation::Invoke<void>
    21. 0x000000014014767F (Unity) Scripting::UnityEngine::GUIUtilityProxy::TakeCapture
    22. 0x00000001406030AB (Unity) GUIUtility::Internal_SetHotControl
    23. 0x00000001408368C7 (Unity) GUIUtility_CUSTOM_Internal_SetHotControl
    24. 0x0000000012D5D6BE (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIUtility:Internal_SetHotControl (int)
    25. 0x0000000012D5D5A3 (Mono JIT Code) [GUIUtility.cs:112] UnityEngine.GUIUtility:set_hotControl (int)
    26. 0x0000000011A9AF63 (Mono JIT Code) [ListViewShared.cs:192] UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect,int)
    27. 0x0000000011A9AC4B (Mono JIT Code) [ListViewShared.cs:182] UnityEditor.ListViewShared:HasMouseDown (UnityEditor.ListViewShared/InternalListViewState,UnityEngine.Rect)
    28. 0x0000000011A95F3B (Mono JIT Code) [ListViewShared.cs:373] UnityEditor.ListViewShared/ListViewElementsEnumerator:MoveNext ()
    29. 0x0000000011A879D9 (Mono JIT Code) [ConsoleWindow.cs:551] UnityEditor.ConsoleWindow:OnGUI ()
    30. 0x0000000020B36368 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    31. 0x000007FEBFDFBFB0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    32. 0x000007FEBFD82142 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    33. 0x000007FEBFD8B312 (mono-2.0-bdwgc) [object.c:3073] mono_runtime_invoke_checked
    34. 0x000007FEBFD8BAA9 (mono-2.0-bdwgc) [object.c:5264] mono_runtime_try_invoke_array
    35. 0x000007FEBFD8B2A6 (mono-2.0-bdwgc) [object.c:5142] mono_runtime_invoke_array_checked
    36. 0x000007FEBFD302D4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
    37. 0x000000000F224256 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    38. 0x000000000F222C2B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    39. 0x000000000F2228EF (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    40. 0x000000001053D0D3 (Mono JIT Code) [HostView.cs:359] UnityEditor.HostView:Invoke (string,object)
    41. 0x000000001053CF33 (Mono JIT Code) [HostView.cs:354] UnityEditor.HostView:Invoke (string)
    42. 0x000000001162EDD3 (Mono JIT Code) [HostView.cs:323] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    43. 0x000000001162E64B (Mono JIT Code) [DockArea.cs:375] UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool)
    44. 0x0000000011617D33 (Mono JIT Code) [DockArea.cs:347] UnityEditor.DockArea:OldOnGUI ()
    45. 0x0000000011299A09 (Mono JIT Code) [IMGUIContainer.cs:281] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect)
    46. 0x00000000112979FB (Mono JIT Code) [IMGUIContainer.cs:485] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
    47. 0x00000000116964BB (Mono JIT Code) [IMGUIContainer.cs:466] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event)
    48. 0x0000000010530B23 (Mono JIT Code) [IMGUIContainer.cs:447] UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    49. 0x0000000010523ED6 (Mono JIT Code) [IEventDispatchingStrategy.cs:65] UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase)
    50. 0x0000000012959ADB (Mono JIT Code) [MouseEventDispatchingStrategy.cs:60] UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    51. 0x0000000010520BE7 (Mono JIT Code) [EventDispatcher.cs:282] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    52. 0x000000001009B14B (Mono JIT Code) [EventDispatcher.cs:157] UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    53. 0x000000001009AD73 (Mono JIT Code) [Panel.cs:191] UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    54. 0x00000000111E9283 (Mono JIT Code) [UIElementsUtility.cs:258] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    55. 0x00000000111E89EB (Mono JIT Code) [UIElementsUtility.cs:78] UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
    56. 0x00000000111E8344 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
    57. 0x00000000111E8563 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
    58. 0x000007FEBFDFBFB0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    59. 0x000007FEBFD82142 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    60. 0x000007FEBFD8B13F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    61. 0x0000000142C10732 (Unity) scripting_method_invoke
    62. 0x0000000142C0A3E1 (Unity) ScriptingInvocation::Invoke
    63. 0x0000000142C0463A (Unity) ScriptingInvocation::Invoke<bool>
    64. 0x000000014013F9D9 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    65. 0x0000000140BBC40C (Unity) GUIView::ProcessRetainedMode
    66. 0x000000014153E267 (Unity) GUIView::OnInputEvent
    67. 0x0000000140BBC31C (Unity) GUIView::ProcessInputEvent
    68. 0x000000014153FAC5 (Unity) GUIView::ProcessEventMessages
    69. 0x0000000141532D2B (Unity) GUIView::GUIViewWndProc
    70. 0x0000000077759AC1 (USER32) TranslateMessageEx
    71. 0x00000000777597DE (USER32) TranslateMessage
    72. 0x000000014151E941 (Unity) MainMessageLoop
    73. 0x00000001415211DF (Unity) WinMain
    74. 0x00000001441DA692 (Unity) __scrt_common_main_seh
    75. 0x000000007763556D (kernel32) BaseThreadInitThunk
    76. 0x000000007789372D (ntdll) RtlUserThreadStart