[Solved] Errors logged when opening conversation in dialogue editor

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
tomb
Posts: 19
Joined: Fri Sep 30, 2022 8:23 am

[Solved] Errors logged when opening conversation in dialogue editor

Post by tomb »

Hi Tony

I am using Unity 2021.3.2.f1 with Dialogue System 2.2.38.1 (recently updated from 2.2.27).

When I open an existing conversation in the dialogue editor I receive two error logs.
error logs.png
error logs.png (15.28 KiB) Viewed 311 times
Error 1
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSectionNodeStyle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:173)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowConversationSection.cs:158)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawCurrentSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:465)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawMainBody () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:430)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:336)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <a017e354f3154926a5617fbac3a64fcc>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <a017e354f3154926a5617fbac3a64fcc>:0)
UnityEditor.DockArea.OldOnGUI () (at <a017e354f3154926a5617fbac3a64fcc>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <22a7125907634f27b5049762847405c6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Error 2
GUI Error: Invalid GUILayout state in DialogueEditorWindow view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

The errors are triggered each time a conversation is opened in the dialogue editor. They do not repeat until I open a different conversation. I believe the errors appeared immediately after updating Dialogue System.

Aside from the logs everything appears to be working correctly, I can open/create/edit/delete conversations, changes are saved and the dialogues are working in play mode so this is not something urgent for me.

Please let me know your suggestion or if there is any other info that would help, thank you.

Here is my dialogue template, I may have deleted some fields a while ago when first setting it up but do not completely recall.
dialogue template.png
dialogue template.png (42.44 KiB) Viewed 311 times
Last edited by tomb on Mon Jul 10, 2023 9:49 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Errors logged when opening conversation in dialogue editor

Post by Tony Li »

Hi,

These issues are fixed in 2.2.38.2, which should be available today. (2.2.38.1 introduced this error while working around an annoying bug in Unity 2022.3.1.)
tomb
Posts: 19
Joined: Fri Sep 30, 2022 8:23 am

Re: [Solved] Errors logged when opening conversation in dialogue editor

Post by tomb »

Great! Thank you
Post Reply