playMaker

Author Topic: What causes a "Stack error: 2" ? [SOLVED]  (Read 1923 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
What causes a "Stack error: 2" ? [SOLVED]
« 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



« Last Edit: March 21, 2016, 01:52:21 AM by mdotstrange »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: What causes a "Stack error: 2" ?
« Reply #1 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.

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: What causes a "Stack error: 2" ? [SOLVED]
« Reply #2 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.
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!