derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
761 stars 39 forks source link

state chart : Stack overflow infinite recursion #30

Closed Zheromaro closed 1 year ago

Zheromaro commented 1 year ago

hello, I have tried the state charts addon (which is a very cool addon by the way) but for some reason when I run the game, it gives me a "Stack overflow infinite recursion" error message and the game does not run, This is without attaching any script.

image

I hope for this problem to be solved however this is a pretty good package

derkork commented 1 year ago

At first glance it would look like you have some transitions that form an infinite loop, e.g.

State A: 
   Transition To B (Immediately)

State B:
    Transition To A (Immediately)   

So whenever you enter either state A or state B this will constantly ping-pong between those states with no end. Please check your transitions. If you cannot find any problem, please attach a sample scene here which reproduces the problem so I can have a look at it. Thanks!

Zheromaro commented 1 year ago

Yes this was exactly the problem, now it works pretty well

thanks :)

derkork commented 1 year ago

Awesome! Thanks for reporting back!