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 .
×

"Possible infinite loop detected, shutting down" Still a problem

It has been years since I have been able to run scripts because of this bug.  The customer service told me there is nothing they can do.   I have been waiting for it to be addressed in a patch or update and it seems it still has not happened.   I saw the mods were asking what users what the want from future Roll20 improvements.  My #1 answer is to fix the scripting system.  
You’d have to identify which script is causing the issue and edit it so that it does not cause that error. 
1775936413
The Aaron
Roll20 Production Team
API Scripter
Just this week I deployed an update to the Mod (API) Servers which should give us better feed back about PILD errors and errors in general:&nbsp; <a href="https://app.roll20.net/forum/permalink/12718624/" rel="nofollow">https://app.roll20.net/forum/permalink/12718624/</a> Take a look and paste the output you're getting now, that should help us track down the offending script.&nbsp;
1775996333

Edited 1776005159
Hi I&nbsp;got it here with combat master and initiative managed by group initiative hope it helps Andrea For reference, the error message generated was:&nbsp; Possible infinite loop detected, shutting down. Last publish event: "chat:message" Registered callback: - 1-CLICK: Combat Master [Tab 5]:4546 I tried again by resetting the turn artifact of combat master after restarting the sandbox launched the initiative and the system created a turn with numbers not equal to the one shown in the chat and next does not work exiting and going to the api page I had Possible infinite loop detected, shutting down. nothing more it is said hope it helps ...retried and good news.. i was able to replicate the error in my case it seems the interaction between CM and the turn order when is CM is red statuses are working fine the i select 2 PC and start the combat. two rolls and the first turn. strangely the green circle is on the acting one but the red circle is on the other (i'm new to this script so i cannot say where the red circle should be) pressing the next button everything freezes. upon exit the error message is: Possible infinite loop detected, shutting down. Last publish event: "chat:message" Registered callback: - 1-CLICK: Combat Master [Tab 5]:4546 Andrea
Which other scripts do you have loaded in the game? I vaguely remember an issue with interactions of scripts that all affect the Turn Tracker, such as CombatMaster, OnMyTurn, GroupInitiative, EndOfTurn, etc. Basically several scripts trying to update a token or the Turn Tracker at the same time, or a script updating a token or the Turn Tracker, which then triggers another script, and then that script triggers the first script in a repeating loop.
combat master with group initiative tokenmod bump checklightlevel in theory the case you describe should not be happening as it is quite standard but i agree it could be one of these cases. i hope this is a little bit of good info for the aaron and the production team Jarren said: Which other scripts do you have loaded in the game? I vaguely remember an issue with interactions of scripts that all affect the Turn Tracker, such as CombatMaster, OnMyTurn, GroupInitiative, EndOfTurn, etc. Basically several scripts trying to update a token or the Turn Tracker at the same time, or a script updating a token or the Turn Tracker, which then triggers another script, and then that script triggers the first script in a repeating loop.
1776024664
The Aaron
Roll20 Production Team
API Scripter
Do you know what chat message you are sending when this happens?&nbsp; It looks like CombatMaster will trigger on any chat message if you have autoAddSpells enabled, do you?
Roll Initiative Group-Init Roll Each Round true Target Tokens None Whisper GM Only false Player Allowed Changes true Send Changes to Chat true Clear Conditions on Close true Use Messages false Auto Add Spells false
1776025291
The Aaron
Roll20 Production Team
API Scripter
Ok, then it's a !cmaster command that is triggering the PILD issue.&nbsp; What command are you running immediately before it happens? (note, it will take 30-40 seconds for PILD to occur)
1776027334

Edited 1776027371
started the initiative declaration and then pressed the "next" arrow. nothing happens and becomese non responsive
1776087990
The Aaron
Roll20 Production Team
API Scripter
If you push up in chat after hitting that button, it should show the chat command that button executes.&nbsp;
1776096813

Edited 1776096843
some more trial and info i deleted the group-init script and used CM alone setting initiative to be CM: on the two token i got a NaN in the turn order and nothing working so i did set the initiative to none and rolled manually as soon as i rolled the second one (it is a trial space with only those 2 on the token layer) combat master started stating first turn and in the turn marker there is player A, player B and round -1 in the page player A has the green circle, player B has the red circle pressing next the two circle exchange and in the chat is player b turn pressing next again nothing happens exited and found the message: Possible infinite loop detected, shutting down. Last publish event: "chat:message" Registered callback: - 1-CLICK: Combat Master [Tab 5]:4546 in the terminal there was "Error: No attribute or sheet field found for character_id -OpYKMPc5pchbYSrUeAM named initiative_bonus" Possible infinite loop detected, shutting down. Last publish event: "chat:message" Registered callback: - 1-CLICK: Combat Master [Tab 5]:4546 If anyone wants to look into the specifc game i can obviously grant access thanks Andrea
So it sounds like CombatMaster is causing an error when it tries to process 'initiative_bonus' for an ID that doesn't have that attribute. I wonder if that's a character, or if some non-character element is being selected somehow and that is causing an issue. You could install the Inspector script (from the One-Click) and run this command to see what it outputs: !about ---OpYKMPc5pchbYSrUeAM
{ _id: -OpYKMPc5pchbYSrUeAM s , _type: character , _defaulttoken: , _charactersheetname: dnd2024byroll20 , name: NICK FIGHTER , bio: , undefined , archived: false , inplayerjournals: all , controlledby: , avatar: , inParty: false , tags: [] }