Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mdotstrange on March 20, 2016, 11:59:04 PM

Title: What causes a "Stack error: 2" ? [SOLVED]
Post by: mdotstrange on March 20, 2016, 11:59:04 PM
I'm getting this error on a Run Fsm action- happens periodically and the error info hasn't provided me with any leads I understand- what causes these?

Unity 5.3.2f1
Playmaker 1.8.0f43

(http://i.imgur.com/Lokdwuw.png)
(http://i.imgur.com/VEAj13T.png)
(http://i.imgur.com/0YlOHMR.png)
Title: Re: What causes a "Stack error: 2" ?
Post by: Alex Chouls on March 21, 2016, 12:38:22 AM
I haven't seen that before, but Stack errors are usually caused by infinite loops. Try setting the Max Loop Override for the FSM to 100. It could be that the default of 1000 is too high in this case, and it's hitting a stack overflow before it can catch the infinite loop.
Title: Re: What causes a "Stack error: 2" ? [SOLVED]
Post by: mdotstrange on March 21, 2016, 01:52:04 AM
Thanks for the tip Alex :) Ends up it was a custom action I made for the Sci-Fi effects asset that was causing the problem- fixed the action and the error went away. Thanks.