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 .
×
Why do rogues wear leather armor? Because it’s made of hide. 🥷

"Possible Infinite Loop Detected" when trying to load sandbox

Every time my game tries to load character sheet data, it takes around a minute and shuts down the sandbox due to a possible infinite loop. The only code is 1 script with log('hello world'); and it executes that just fine but any on( function will not work. Is there a way to bypass the watchdog timer before it even loads the sandbox? Or is my game simply too big? For reference there's about 400+ character sheets.
1641708478
Kraynic
Pro
Sheet Author
Which game system/character sheet are you using?  If you have 400 character sheets in a system that are very simple and only contain a few dozen attributes storing data is much different that 400 character sheets with hundreds of attributes and heavy automation through javascript.  400 is a lot though.
I'm using the Anime Campaign system. Most character sheets are just around 10 attributes (if the passives and abilities in the character sheet itself count, at least 17) though those aren't the ones we use the most. A lot of characters have their entire kits in Token Actions because we don't like the default formatting and a lot of character's tokens are Rollable Tables to show different statuses/emotions. Certain characters might have lots of text for an action or have images included. I'm not entirely sure how Roll20's API loads character sheet data so I hope this information gives any insight on where we're bloated.
1641756878

Edited 1641756898
Kraynic
Pro
Sheet Author
I don't think token actions (whether stored on the Attributes &amp; Abilities tab of a sheet, or in the Macro section of the Collections tab) would affect loading time.&nbsp; I'm not familiar with that game system/sheet. Just as a test, you might try copying the game a couple times with different options checked to see how the copies behave.&nbsp; When you go to copy the game, there are checkboxes to select what gets copied.&nbsp; You might try one without the characters and one without the pages (maps) and see if either of those load better for you.&nbsp; From the sounds of it, I doubt the character sheets are a problem.&nbsp; Something you might check is if you have hardware acceleration enabled in your browser, and make sure that webgl is working.&nbsp; General troubleshooting steps can be found here:&nbsp; <a href="https://wiki.roll20.net/Solving_Technical_Issues" rel="nofollow">https://wiki.roll20.net/Solving_Technical_Issues</a> Webgl basic test is here: <a href="https://get.webgl.org/" rel="nofollow">https://get.webgl.org/</a> If you are on a laptop with both integrated and discrete graphics options, you might want to see if you can get the browser display to be running on the discrete graphics card.