playMaker

Author Topic: "Owner == null!"  (Read 1978 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
"Owner == null!"
« on: June 03, 2018, 05: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)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3634
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: "Owner == null!"
« Reply #1 on: June 03, 2018, 08:01:06 PM »
When do you get the error? While playing or editing?

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: "Owner == null!"
« Reply #2 on: June 04, 2018, 05: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)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3634
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: "Owner == null!"
« Reply #3 on: June 04, 2018, 06: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?

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: "Owner == null!"
« Reply #4 on: June 04, 2018, 09:25:31 PM »
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.

blackant

  • Sr. Member
  • ****
  • Posts: 426
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Re: "Owner == null!"
« Reply #5 on: August 24, 2018, 12: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()

psypol

  • Playmaker Newbie
  • *
  • Posts: 39
    • View Profile
Re: "Owner == null!"
« Reply #6 on: August 30, 2018, 04: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.


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4615
    • View Profile
    • jinxtergames
Re: "Owner == null!"
« Reply #7 on: August 30, 2018, 05:39:31 AM »
Hi.
What playmaker/unity version?

psypol

  • Playmaker Newbie
  • *
  • Posts: 39
    • View Profile
Re: "Owner == null!"
« Reply #8 on: August 30, 2018, 05:47:01 AM »
unity 2017.3.1f1 + PM 1.9.0.f5

blackant

  • Sr. Member
  • ****
  • Posts: 426
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Re: "Owner == null!"
« Reply #9 on: August 31, 2018, 12:34:24 AM »
unity 2018.2.5f1

Tonda

  • Playmaker Newbie
  • *
  • Posts: 31
    • View Profile
Re: "Owner == null!"
« Reply #10 on: September 01, 2018, 02: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
« Last Edit: September 01, 2018, 02:40:57 PM by Tonda »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4615
    • View Profile
    • jinxtergames
Re: "Owner == null!"
« Reply #11 on: September 01, 2018, 08: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?

tropical

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: "Owner == null!"
« Reply #12 on: October 09, 2018, 04: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


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3634
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: "Owner == null!"
« Reply #13 on: December 22, 2018, 08:37:15 AM »
Thanks for reporting this. It will be fixed in the next patch release.

Anaxtasia

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: "Owner == null!"
« Reply #14 on: January 08, 2019, 04: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.