Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Script] Infinite loop or long running process detected.

Dear colleagues, my power cards are giving problem. In two of my campaigns, usually my power cards don´t work, and when i go to "API Sripts" appears a "Infinite loop or long running process detected". So i saved and the problem is ended, but i created the api´s to do more easy some characters action, and when they use always this problem occurs. Could somebody help me?
1404128864
The Aaron
Roll20 Production Team
API Scripter
Are you saying that every time you run a specific API command you get the Infinite Loop error? If so, post that code and we can take a look...
Aaron, thanks for help, but isn´t every time. Usually i enter in table, use normally the API (power cards) and when players try to use, usually, the problem occurs. Follow the code: <a href="https://app.roll20.net/forum/post/673780/script-custom-power-cards#post-673780" rel="nofollow">https://app.roll20.net/forum/post/673780/script-custom-power-cards#post-673780</a>
1404190748
The Aaron
Roll20 Production Team
API Scripter
Ah. I'm familiar with HoneyBadger's power card script and use it myself. Are you certain you have the latest version? I had similar problems a few months ago.
Now i´m not sure! I became mentor a few time ago and need to learn somethings yet. Where i could find this latest version? Would be the first code who appears in that link? <a href="https://app.roll20.net/forum/post/673780/script-custom-power-cards#post-673780" rel="nofollow">https://app.roll20.net/forum/post/673780/script-custom-power-cards#post-673780</a> Or would have in other place? tks for help!
1404576724
Natha
KS Backer
Sheet Author
API Scripter
I have the same problem with my own API scripts, and I'm pretty sure that it's not due to the scripts themselves, because it happens randomly (and I have absolutely no looping instructions in my scripts) and mostly when we are serveral players connected. When I test my scripts, I'm the only one connected, and it's not happenning. My guess is that there is a "safety auto disable" control in the sandbox thingy, and it triggers when "big" scripts run and/or when ressources are low ? It's really annoying. Perhaps some (ressource consuming) instructions favor this behavior ? Anyone has any clue about that ?
I've found that disabling them and then enabling them again will fix the issue. BUT, you have to do it every time.
Hi! The same thing happens to me: when i´m alone, the API works good. When a player use them, the problem occurs. By now i´ll disable and enable as soon i finish the session...but, as Natha says, it´s really annoying.
+1 this post - I have a large character loading script and one of the sub functions at the end calls a separate function to apply some changes to macros after the character load is complete. Now, everytime I'm alone the entire character load works just fine. When multiple people are logged into the session i have to disable only the sub function call otherwise I get stuck in an infinite loop. I can run the sub function separately without any issue.