Translate null ref using Addon for Open AI 1.0.12

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

Translate null ref using Addon for Open AI 1.0.12

Post by mgregoirelds »

Hello, when I select a database in the Dialogue System Addon for AI and choose the Translate database option, I get the following error when pressing Translate:

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.OpenAIAddon.TranslateDatabasePanel.TranslateDatabase () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/TranslateDatabasePanel.cs:126)
PixelCrushers.DialogueSystem.OpenAIAddon.TranslateDatabasePanel.Draw () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/TranslateDatabasePanel.cs:105)
PixelCrushers.DialogueSystem.OpenAIAddon.DialogueSystemOpenAIWindow.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/DialogueSystemOpenAIWindow.cs:127)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)
UnityEditor.DockArea.OldOnGUI () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>: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 <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <d26551307ee24906965335845380d4a1>:0)
It seems like the database object gets unlinked.
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Translate null ref using Addon for Open AI 1.0.12

Post by Tony Li »

Hi Maxime,

I'm at GDC right now. I'll investigate this and get back to you by the end of the weekend.

Are you doing other operations while this translation is running in the background?
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

Re: Translate null ref using Addon for Open AI 1.0.12

Post by mgregoirelds »

Hello,

I'm at GDC too! Found a way to bypass the error by using the AI option in the database, but I always get this error while using directly the main window. I'm not using any other operation.
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Translate null ref using Addon for Open AI 1.0.12

Post by Tony Li »

Hi Maxime,

Sorry we didn't meet up at GDC! I'll still be near the Moscone Center tomorrow morning if you're still in town and around there.

I'll fix the issue in the main window.
Post Reply