Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on June 03, 2018, 08:39:29 PM

Title: "Owner == null!"
Post by: wheretheidivides on June 03, 2018, 08:39:29 PM
I get this error in 1 of my scenes.  ANy ideas of to fix it?

Owner == null!
UnityEngine.Debug:Log(Object)
HutongGames.PlayMakerEditor.FsmVariable:set_Owner(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:88)
HutongGames.PlayMakerEditor.FsmVariable:.ctor(Object, FsmFloat) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:237)
HutongGames.PlayMakerEditor.FsmVariablesEditor:Reset() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:201)
HutongGames.PlayMakerEditor.FsmVariablesEditor:SetTarget(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:174)
HutongGames.PlayMakerEditor.FsmVariablesEditor:.ctor(EditorWindow, Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:158)
HutongGames.PlayMakerEditor.GlobalVariablesWindow:Initialize() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/GlobalVariablesWindow.cs:34)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/BaseEditorWindow.cs:87)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Title: Re: "Owner == null!"
Post by: Alex Chouls on June 03, 2018, 11:01:06 PM
When do you get the error? While playing or editing?
Title: Re: "Owner == null!"
Post by: wheretheidivides on June 04, 2018, 08:58:46 PM
I think it is just in the editor while I'm working.

It also gives this dirty error as well.

PlayMaker: Unhandled SetDirty: Missing Owner
UnityEngine.Debug:LogWarning(Object)
HutongGames.PlayMakerEditor.FsmEditor:SetFsmDirty(Fsm, Boolean, Boolean, Boolean) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmEditor.cs:1933)
HutongGames.PlayMakerEditor.FsmEditor:SaveActions(Fsm, Boolean) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmEditor.cs:1807)
HutongGames.PlayMakerEditor.FsmBuilder:RemoveVariableUsage(List`1, NamedVariable) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmBuilder.cs:1397)
HutongGames.PlayMakerEditor.FsmBuilder:RemoveGlobalVariableUsage(NamedVariable) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmBuilder.cs:1378)
HutongGames.PlayMakerEditor.FsmVariablesEditor:DeleteVariable(FsmVariable, Boolean, Boolean) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:1439)
HutongGames.PlayMakerEditor.FsmVariablesEditor:DoVariableTable() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:647)
HutongGames.PlayMakerEditor.FsmVariablesEditor:OnGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:415)
HutongGames.PlayMakerEditor.GlobalVariablesWindow:DoGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/GlobalVariablesWindow.cs:45)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/BaseEditorWindow.cs:117)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Title: Re: "Owner == null!"
Post by: Alex Chouls on June 04, 2018, 09:08:22 PM
Can you share your project? If so, please PM me a.download link (don't post it publicly).

Its probably a harmless error (doesn't break anything at runtime), but I'd like to track down the cause.

It looks like it's thrown by the global variables.window. Does it stop if you close that window?
Title: Re: "Owner == null!"
Post by: wheretheidivides on June 05, 2018, 12:25:31 AM
I can't give the project.  What I can do is watch it over the next week and see if I can track down when and where it happens.  then maybe I can get you a watered down project.  I'll let you know.
Title: Re: "Owner == null!"
Post by: blackant on August 24, 2018, 03:58:21 AM
got the same alert for my project actually:

Owner == null!
UnityEngine.Debug:Log(Object)
HutongGames.PlayMakerEditor.FsmVariable:set_Owner(Object) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/InspectorPanel.cs:525)
HutongGames.PlayMakerEditor.FsmVariable:.ctor(Object, FsmFloat) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/PackageExporter.cs:80)
HutongGames.PlayMakerEditor.FsmVariablesEditor:Reset() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/GlobalEventsWindow.cs:751)
HutongGames.PlayMakerEditor.GlobalVariablesWindow:ResetView() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/ActionEditor.cs:3124)
HutongGames.PlayMakerEditor.FsmEditor:OnHierarchyChange() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmEditorGUILayout.cs:605)
HutongGames.PlayMakerEditor.FsmEditorWindow:OnHierarchyChange() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:308)
UnityEditor.HostView:OnHierarchyChange()
Title: Re: "Owner == null!"
Post by: psypol on August 30, 2018, 07:12:38 AM
hi

i have a similar error.
can't share project unfortunately.


Owner == null!
UnityEngine.Debug:Log(Object)
HutongGames.PlayMakerEditor.FsmVariable:set_Owner(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:88)
HutongGames.PlayMakerEditor.FsmVariable:.ctor(Object, FsmFloat) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:237)
HutongGames.PlayMakerEditor.FsmVariablesEditor:Reset() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:201)
HutongGames.PlayMakerEditor.FsmVariablesEditor:SetTarget(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:174)
HutongGames.PlayMakerEditor.GlobalVariablesWindow:DoGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/GlobalVariablesWindow.cs:43)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/BaseEditorWindow.cs:117)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

if i close the GlobalVariables window the error does not appear on play.

if i  click on Globals tab while in play mode i have the following error

Owner == null!
UnityEngine.Debug:Log(Object)
HutongGames.PlayMakerEditor.FsmVariable:set_Owner(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:88)
HutongGames.PlayMakerEditor.FsmVariable:.ctor(Object, FsmFloat) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariable.cs:237)
HutongGames.PlayMakerEditor.FsmVariablesEditor:Reset() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:201)
HutongGames.PlayMakerEditor.FsmVariablesEditor:SetTarget(Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:174)
HutongGames.PlayMakerEditor.FsmVariablesEditor:.ctor(EditorWindow, Object) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmVariablesEditor.cs:158)
HutongGames.PlayMakerEditor.GlobalVariablesWindow:Initialize() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/GlobalVariablesWindow.cs:34)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/BaseEditorWindow.cs:87)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

if i click on Globals tab while NOT in play mode the error is the same as the first one

i guess this is harmless but it would be nice to not see it in the middle of my other countless warnings ;-)

i hope this would help identify the source of this debug line
Regards.

Title: Re: "Owner == null!"
Post by: djaydino on August 30, 2018, 08:39:31 AM
Hi.
What playmaker/unity version?
Title: Re: "Owner == null!"
Post by: psypol on August 30, 2018, 08:47:01 AM
unity 2017.3.1f1 + PM 1.9.0.f5
Title: Re: "Owner == null!"
Post by: blackant on August 31, 2018, 03:34:24 AM
unity 2018.2.5f1
Title: Re: "Owner == null!"
Post by: Tonda on September 01, 2018, 05:39:21 PM
Chiming in as well, I have this same error, 2017.3.0f3 + PM 1.9.0.p3

edit: and yes closing down the globals pane does get rid of it for me
Title: Re: "Owner == null!"
Post by: djaydino on September 01, 2018, 11:20:22 PM
Hi.
If anyone can PM their project or a repo project that has the bug in it to Alex, please do.

And don't worry hes not gonna steal your ideas/project (even if he wanted to, he does not have time to do so...24/7 working on playmaker ;) )

Also, is there any particular moment it started to give the error?
Title: Re: "Owner == null!"
Post by: tropical on October 09, 2018, 07:44:15 AM
Hi,

I have got the same issue here with Unity 2018.2.11f1 and Playmaker 1.9.0p4.
If it has not been solved yet by the PM guys for an update in the future here are some things I have observed:

The "Owner == null!" message that appears in my Unity console is not an error, just a log, but still annoying.

When does it appear?
Sometimes just in editor mode (without having pressed the "Play" button), sometimes in play mode (e.g. immediately after pressing the "Play" button to play or stop).

Necessary conditions to make it appear (correct me if I am wrong):
1) The "Globals" tab/window must be visible (already mentioned here in this thread).
2) In the game object hierarchy the scene itself or a game object without an FSM must be selected. If a GO with an FSM is selected the message does not appear (also interesting, maybe).

You can easily reproduce the issue: Just make a new empty Unity project (with one of the latest Unity versions), import PM 1.9, open the PM Editor and the Globals tab. Now you should already see a respective console log. Try pressing the "Play" button.

Best regards
tropical

Title: Re: "Owner == null!"
Post by: Alex Chouls on December 22, 2018, 10:37:15 AM
Thanks for reporting this. It will be fixed in the next patch release.
Title: Re: "Owner == null!"
Post by: Abelius on January 08, 2019, 06:57:51 AM
I also wanted to chime in to add more detail.

I started to have this error after I deleted four global array variables and left the Globals window opened with some text introduced in the search bar.

Also, those variables were still used by two scene FSMs, so I had four errors indicating that PM couldn't find them.

As soon as I replaced those two scene FSMs with an FSM template that didn't use the old arrays, I didn't get the debug log warnings. Not after switching to the Globals window, nor after stopping the game in the editor.