Logo
  • Assets
  • Contact
  • About
  • Forums
  • Login

[Bug] Error generated in playmode related to GUILayout

Forums › 💬 NodeCanvas › ⚙️ Support › [Bug] Error generated in playmode related to GUILayout

  • This topic has 0 replies, 3 voices, and was last updated 3 years, 1 month ago by niram games.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 14, 2022 at 5:03 am #15466
    richardl
    Participant

      Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.

      UnityEngine.GUILayout:Window (int,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,string,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])

      NodeCanvas.Framework.Node:DrawNodeWindow (NodeCanvas.Framework.Node,UnityEngine.Vector2,single) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editor.Node.cs:282)

      NodeCanvas.Framework.Node:ShowNodeGUI (NodeCanvas.Framework.Node,UnityEngine.Rect,bool,UnityEngine.Vector2,single) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editor.Node.cs:254)

      NodeCanvas.Editor.GraphEditor:ShowNodesGUI (NodeCanvas.Framework.Graph,UnityEngine.Rect,bool,UnityEngine.Vector2,single) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/GraphEditor.cs:660)

      NodeCanvas.Editor.GraphEditor:OnGUI () (at Assets/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/GraphEditor.cs:505)

      UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

       

      December 14, 2022 at 7:45 pm #15469
      niram games
      Participant

        Hello.

        I am also getting that same error. But I don’t think it is related to entering PlayMode(I might be wrong). I get it whenever I reload the domain(when the Reloading Script Assemblies window appears). I use Enter Play Mode Options and have domain reloading turned off and it doesn’t appear when entering Play Mode, only when reloading the domain. Could you try it and see if it’s the same for you?

        Here are my repro steps:

        1. Make a new FSM.

        2. Create a custom ActionTask.

        3. Assign that action to a node in that FSM.

        4. Override the info property inside that ActionTask.

        5. Write code that encounters a null reference exception(any kind of exception will probably work) before the return statement inside the getter of the info property.

        6. Recompile. A bunch of errors will appear(as they should). The Node with that action assigned will look all weird.

        7. Fix the code so that it always returns something.

        8. Recompile. The errors in the screenshot will appear, even though your code is fixed. The errors will appear whenever you recompile(reload the domain) for the rest of that Unity session(if the Canvas window is visible).

        Hope this helps!

        December 15, 2022 at 12:02 am #15468
        Gavalakis
        Keymaster

          Hello guys.

          This seems to be a Unity bug by just using a GUILayout.Window within an EditorWindow. I have already sent a bug report to Unity and also recently made a bug report post in the Unity forums with full reproduction -> LINK I hope Unity sees this and fixes it promptly.

          December 15, 2022 at 12:08 am #15467
          niram games
          Participant

            Got it, thanks!

          • Author
            Posts
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.
          Log In

          Footer Logo

          Home | Contact | Privacy Policy
          Twitter | Discord | YouTube
          Paradox Notion

          • Login
          • Register
          Forgot Password?
          Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
          body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }