• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
11
Question by Glurth · Oct 29, 2017 at 04:16 PM · editorconsolehotcontrol

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: https://docs.unity3d.com/ScriptReference/GUIUtility-hotControl.html

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

Comment
Add comment · Show 11
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image darkesco · Nov 08, 2017 at 06:40 AM 0
Share

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.

avatar image Bunny83 · Nov 09, 2017 at 09:59 PM 0
Share

Sorry, but i never had an error like this ever before. I still use Unity 5.6.1f1 and those experimental classes do not exist in my DLLs yet. It looks like they may want to / have implement the I$$anonymous$$GUI with actual class instances. $$anonymous$$aybe they switched already the internal handling of the I$$anonymous$$GUI to this experimental framework. So it might be related to some Unity internals and not really related to something you did wrong.


I think a bug report woudn't hurt ^^. Of course it's difficult when it's not reproducible, however you can point them towards this code snippet.


ps: Do you have a full stacktrace? When i finally upgrade to Unity 2017 ++ i may have a look where this might come from.

avatar image Adam-Mechtley · Nov 10, 2017 at 08:16 AM 0
Share

Do you have call stack for this?

avatar image Glurth Adam-Mechtley · Nov 10, 2017 at 02:49 PM 0
Share

Alas, no stack trace was provided. Edited/added a couple more details to the question. The decompiled code I found (if that's actually the right code) is indeed a Debug.Log() command, which, whenever I use it DOES provide a stack trace. Perhaps this is a clue?

Thanks for taking a look guys.

avatar image Adam-Mechtley Adam-Mechtley · Nov 10, 2017 at 08:21 PM 0
Share

What Unity version are you using? Can you check your editor log when you get this message and see if there's more information you can paste here?

avatar image Glurth Adam-Mechtley · Nov 11, 2017 at 03:15 PM 0
Share

Editor Log with popup, stating Unity Version (2017), has been added to the question. Also, I was wrong, this does NOT popup as a warning, just a regular log entry (but with no stack trace).

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Reelix · Aug 16, 2018 at 07:39 AM

This can be reproduced with the steps listed at https://issuetracker.unity3d.com/issues/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)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Aggressor · Jun 26, 2019 at 01:10 PM 0
Share

I just saw this in 2019.1.6f1 alt text

avatar image glenneroo Aggressor · Dec 16, 2019 at 09:05 AM 0
Share

I just had this warning with 2019.2.15f1.

avatar image
1

Answer by SmileJakoby · Dec 14, 2020 at 11:04 PM

It's almost 2021... this issue is still happening.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image glenneroo · Dec 14, 2020 at 11:30 PM 0
Share

Submit a regression bug report - link the closed bug: https://fogbugz.unity3d.com/default.asp?968044_05s1gv99bq2ofkr8

I would do it myself, but I'm working on a different project where this isn't occurring.

avatar image
0

Answer by Tsahyla · Jan 05 at 02:18 PM

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.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image glenneroo · Jan 05 at 04:04 PM 0
Share

Sbmit a regression bug report - link the closed bug: https://fogbugz.unity3d.com/default.asp?968044_05s1gv99bq2ofkr8

I would do it myself, but I'm working on a different project where this isn't occurring.

avatar image Tsahyla · Jan 06 at 12:38 PM 0
Share

There is apparently no way to re-activate this bug report or regress or whatever its called. That link has no ability to add or re-open the issue that I can see. I sent an email to the bugs@ place. We will see if that goes anywhere. Apparently once they close something the thing disappears from the UNITY cosmos never to return. Anyway seems ridiculous to close something that is not actually fixed.

avatar image glenneroo Tsahyla · Jan 06 at 04:04 PM 0
Share

Sorry, I meant to say submit a NEW bug report which references the old bug. It's a regression bug because it was fixed at some point in time, but for whatever reason (software is complicated), the bug has returned after 3 years.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

104 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I change the default application used to open logs from the Unity editor? (on Mac) 1 Answer

Terrain Toolkit Error 2 Answers

DebugConsole console clicking 5 Answers

editor layout - how to put console back to a tab?? 2 Answers

How do I get rid of FMOD errors in the console: "An error occured that wasn't supposed to. Contact support." 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges