Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maxcallstack exceeded issue #231

Open
nebuchenazarr opened this issue Apr 21, 2022 · 1 comment
Open

Maxcallstack exceeded issue #231

nebuchenazarr opened this issue Apr 21, 2022 · 1 comment

Comments

@nebuchenazarr
Copy link

Hi there, i've run into an issue where an infinite loop happens and maximum call stack exceeded ends up being called. I've simplified the chart to the minimum to replicate the issue :

start=>start: Start
op1=>operation: Operation 1
cond2=>condition: Condition 2
cond3=>condition: Condition 3
cond4=>condition: Condition 4
op5=>operation: Operation 5
op6=>operation: Operation 6
end=>end: End
start->op1
op1->cond2
cond2(yes)->cond3
cond2(no,left)->op5
cond3(yes,right)->cond4
cond3(no)->op6
cond4(yes)->cond2
cond4(no)->end

cond4(yes)->cond2 is the culprit, removing cond2 makes the chart resolve fine. From what the console.logs could tell me it looks like it loops Condition 2, Condition 3 and Condition 4 in sequence indefinitely. If i change one condition 2 or 3 to an operation it does not do it anymore. I suspect it might have to do with having 3 conditions in a row (plus trying to route yes to cond2)?

Also if i swap the targets for no/yes for cond4 it works as well.

Thanks and good day

@adrai
Copy link
Owner

adrai commented Apr 21, 2022

Would you like to send a Pull Request to address this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants