Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kiu on August 30, 2011, 03:04:51 AM

Title: Maximize on Play -> Null Reference Exception
Post by: Kiu on August 30, 2011, 03:04:51 AM
I developed my application and it runs without any errors.
When I build my fullscreen app or use maximize on Play I get  null reference exceptions which are thrown at
a very fast pace. This happens with 3 out of 10 objects which are actually sharing the same playmaker scripts.

This would be kind of urgent as this has to be installed end of the week. Any hints?

Here's the error I get:
Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.ActivateGameObject.DoActivateGameObject () (at Assets/PlayMaker/Actions/ActivateGameObject.cs:56)
HutongGames.PlayMaker.Actions.ActivateGameObject.OnEnter () (at Assets/PlayMaker/Actions/ActivateGameObject.cs:35)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
PlayMakerFSM.ChangeState (System.String eventName)
HutongGames.PlayMaker.DelayedEvent.Update ()
HutongGames.PlayMaker.Actions.SendEventToFsm.OnEnter () (at Assets/PlayMaker/Actions/SendEventToFsm.cs:56)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
PlayMakerFSM.ChangeState (System.String eventName)
HutongGames.PlayMaker.DelayedEvent.Update ()
HutongGames.PlayMaker.Actions.SendEventToFsm.OnEnter () (at Assets/PlayMaker/Actions/SendEventToFsm.cs:56)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEvent fsmEvent)
HutongGames.PlayMaker.Actions.IntSwitch.DoIntSwitch () (at Assets/PlayMaker/Actions/IntSwitch.cs:49)
HutongGames.PlayMaker.Actions.IntSwitch.OnEnter () (at Assets/PlayMaker/Actions/IntSwitch.cs:29)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
PlayMakerFSM.ChangeState (System.String eventName)
HutongGames.PlayMaker.DelayedEvent.Update ()
HutongGames.PlayMaker.Actions.SendEventToFsm.OnEnter () (at Assets/PlayMaker/Actions/SendEventToFsm.cs:56)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEvent fsmEvent)
HutongGames.PlayMaker.Actions.IntSwitch.DoIntSwitch () (at Assets/PlayMaker/Actions/IntSwitch.cs:49)
HutongGames.PlayMaker.Actions.IntSwitch.OnEnter () (at Assets/PlayMaker/Actions/IntSwitch.cs:29)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEvent fsmEvent)
HutongGames.PlayMaker.Actions.IntCompare.DoIntCompare () (at Assets/PlayMaker/Actions/IntCompare.cs:60)
HutongGames.PlayMaker.Actions.IntCompare.OnEnter () (at Assets/PlayMaker/Actions/IntCompare.cs:33)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEvent fsmEvent)
HutongGames.PlayMaker.Actions.GUIButton.OnGUI () (at Assets/PlayMaker/Actions/GUIButton.cs:32)
PlayMakerGUI.OnGUI ()
Title: More info
Post by: Kiu on August 30, 2011, 07:48:25 AM
OK, traced it further and the problem appears when playmaker tries to activate or deactivate an object with a transparent shader in fullscreen mode or in the editor with "maximize on play" on.
Title: Re: Maximize on Play -> Null Reference Exception
Post by: Alex Chouls on August 30, 2011, 02:47:59 PM
I'll take a look at this. Does it repro in a simple test scene with just ActivateGameObject and a transparent shader?