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

API shutting down constantly "Possible Infinite Loop", but I haven't changed APIs in over a year

Running the exact same APIs I have been running for well over a year: - GroupInitiative - TokenMod - Roll20AudioMaster Over the last 2 weeks, my API sandbox keeps shutting down over and over and over again with the "Possible Infinite Loop detected" error, but those same 3 APIs have worked fine for over a year.  Conclusion: Roll20 itself has changed something which broke one of those APIs (conditionally) Anyone else hitting this?
1679962614
Gauss
Forum Champion
The Devs are aware of this and are investigating. It is hitting multiple users.  Until it is fixed you may be able to regain partial functionality by reducing the API load. I suggest removing each script in turn until you find out which one is having a problem. 
Gauss said: The Devs are aware of this and are investigating. It is hitting multiple users.  Until it is fixed you may be able to regain partial functionality by reducing the API load. I suggest removing each script in turn until you find out which one is having a problem.  Is there a bug report or other post about this I can comment in? This happens even if Roll20 is idle (literally, I just let it sit there while I watch the Mods tab and eventually it just crashes, meaning that no APIs are actually being run when it crashes).
I'm having the exact same issue. All I have for mods is TokenMod, ChatSetAttr, and GroupInitiative. So probably one of the latter two if we're both using them. Seconding the request for if there's another bug report or post about it - I couldn't find one. Figured I'd throw down my logs too in case they end up being useful. Possible infinite loop detected, shutting down. Restarting sandbox by user request... No existing sandbox found.  Preparing sandbox to start on game activity. Spinning up new sandbox... "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" Possible infinite loop detected, shutting down. "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" Restarting sandbox by user request... No existing sandbox found.  Preparing sandbox to start on game activity. Spinning up new sandbox... Restarting sandbox by user request... detected currently running sandbox... restarting "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]" Possible infinite loop detected, shutting down. "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" "-=> TokenMod v0.8.76 <=-  [Wed Dec 14 2022 17:45:16 GMT+0000 (Coordinated Universal Time)]" "-=> ChatSetAttr v1.10 <=-" "-=> GroupInitiative v0.9.36 <=-  [Thu Feb 03 2022 01:42:35 GMT+0000 (Coordinated Universal Time)]"
1679982216

Edited 1679982355
Gauss
Forum Champion
There is no specific bug report thread for this issue. There are reports of it all over the place, primarily in the Mods (API scripts) forum. If you would like to file a bug report the best method for doing so is the Help Center .  The forums are primarily users helping users.  With that said, the Devs are aware of this bug, there is hope that it will be resolved quickly for folks. 
I thought this was only me! I have tried stopping APIs sequentially with no change in the infinte loop error. The recurrent crashing of API(Mod) is a joke withn out group with no session being complete with me not swearing at roll20. There are a few Mods that are almost universally  used. Surely these could be incorporated into the base Roll20 code which would aid stability.
To me, a Mod (Script) can only "fail" if it is executed.   I've had the sandbox shutdown while Roll20 was 100% idle.  I was intentionally not interacting with the UI, just letting it run in one tab while I had the Mod logs open in another tab, and it would just crash.  So this means no script action is actually causing this.
1680011721
The Aaron
Roll20 Production Team
API Scripter
Based on that log and the scripts you're running, I'm guessing the issue is actually in the Character Sheet. All three of the scripts you're using are completely passive and only react to events you initiate (chat messages, changes in turnorder, etc) Background: Character sheet web workers execute on the Mod Sandbox.   All of these: "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" are coming from the character sheets.  And there shouldn't be 3 copies of the webworker start.
The Aaron said: Based on that log and the scripts you're running, I'm guessing the issue is actually in the Character Sheet. All three of the scripts you're using are completely passive and only react to events you initiate (chat messages, changes in turnorder, etc) Background: Character sheet web workers execute on the Mod Sandbox.   All of these: "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" are coming from the character sheets.  And there shouldn't be 3 copies of the webworker start. My games show the same thing - using the 'D&D 5E by Roll20' character sheet. I've never paid too much attention to that initial sandbox message but I feel like it always looked like that (though the number of translation strings has changed over time).  If it's true that there's only supposed to be one copy of the webworker start, maybe that has something to do with the 'infinite loop' errors that are popping up so commonly now?
I am seeing the possible infinite loop error on multiple games too. I have not found a specific script that causes the issue. Which seems to agree with what others have found. Would really be nice to see an issue confirmation from Roll20 staff. If they are looking into it, then they should let the community know.
1680034215
Gauss
Forum Champion
Sean E. said: I am seeing the possible infinite loop error on multiple games too. I have not found a specific script that causes the issue. Which seems to agree with what others have found. Would really be nice to see an issue confirmation from Roll20 staff. If they are looking into it, then they should let the community know. The Devs are looking into it. :)
That is not really a proper known issue response. Especially for an issue that is very disruptive to game play and prevents the use of a feature customers are paying extra money to have access to. They really need a public facing known issues log. With proper acknowledgement of issues and what is being done to resolve them. 
I see the same: "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" Also, why is it loading Kingmaker Module log in my 5E D&D game?
1680048887
Gauss
Forum Champion
Zaodon said: I see the same: "Loading character sheet data..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "Starting webworker script..." "Loading 1094 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "Roll20 Environment: Web" Also, why is it loading Kingmaker Module log in my 5E D&D game? That has been there ever since the Kingmaker update. All 5e by Roll20 sheets have a Kingmaker component. Kingmaker was not just for Pathfinder, it was a cross-game release for PF2, PF1, and DnD 5e. 
I just finished my weekly game, and the API Sandbox crashed on us no less than 20 times during the 4 hours we were playing. Sometimes, it crashed even when no one was doing anything that involved the API - when we were just sitting and talking.  I did not make any changes to the API in weeks.  
Howdy, wanted to confirm that this is something the devs are investigating. We'll update when we have more info.
Thanks for looking into this! I thought it had something to do specifically with the Status Info script I had running. But having read through this thread, it appears it's not just me and has little to do with that specific script.
Me too
Bianca said: Howdy, wanted to confirm that this is something the devs are investigating. We'll update when we have more info. Is there an ETR for this?
1680300479

Edited 1680300495
Sydney S.
Roll20 Team
Hi everyone!  I pushed a change that looks like it’s already having some positive results.  I’ll be monitoring over the weekend for any major changes in things. If you're still having trouble this weekend, please update the thread so that I can keep digging.
Thank you for the update.
1680314263

Edited 1680314796
I have had this issue now for a while. I had to create a copied game removing archives and maps to cut the load down and fight battles on the alternate game as it had become so bad that API crashed within minutes. I use Aarons hex facing script  and without it I cannot run combats. I will say that the issue I had seem to have nothing to do with the API itself but rather that my game has a lot in it with scores of characters, NPC's and archived maps it was crashing the API constantly.  
Seems to be better, but the Possible Infinite Loop error is still happening. Just not as often.
Thanks for the information!  I see that the positive results weren't quite positive enough for my liking, so I've made another change and I'm seeing even more improvement now.  These changes take a while to have full effect, though, so I'll keep monitoring it.
I hope that the problems have been resolved. I'm tired of the API crashing every Tuesday night, multiple times.  I've been having a lot of problems with the API lately, even to the point of one of the scripts dumping what looks like debug code to the console. I don't know what it could be from because I haven't changed which APIs I use in a long time and this started happening a couple of weeks ago.  I would put the code that's being dumped here but every time I do, this page crashes. I'll have to email it to someone, I guess. But, the scripts I'm using are: If anyone sees a problem script, or recognizes one that they've changed to print out debug information, I'd definitely like a fix. :-) 
1680893661
The Aaron
Roll20 Production Team
API Scripter
If you can provide the debug messages that are being output, we can probably find it.  It will be one of the 1-click scripts as they get updated behind the scenes when they are updated in the repo.