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

Infinite Dice Rolls Exploit/Bug

I'm not sure if this has been posted before, but I can't find any reports on this so I figured I'd add it:
Using:
"/roll xdy!>0"   (Specifically, the one tested that resulted in the worst slowdown, was "/roll 50d20!>0") 
Causes dice to roll infinitely, as a dice roll is never going to be a 0 (Obviously), and this constant rolling slows down the game room unbearably (Typing has close to a 20 second delay, dragging map is impossible, even trying to click the settings tab is borderline impossible) effectively making the command an exploit to make a room unusable.

I was testing out dice mechanics and for the heck of it I tried the "!>0" part (I figured it would throw an error) however it did not, and therefore became an easily exploitable bug to stop a game entirely. Additionally, as of 3 days later, said game is still unbearably slow, and does not appear to have any end in sight.

I would suggest adding a simple check to ensure that rolls' stop conditions are actually possible to occur, to prevent exploitation.   
March 07 (9 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter
I have escalated this for the attention of the devs, in the meantime you could try doing a full game chat archive clearance (not just clearing the chat in game but in the game settings). That might clear the roll and prevent continued issues?
That appears to have fixed it, however I'd still highly recommend adding a case to that command to check for <1 and >(max of the die) conditions, to prevent this from occurring, as it's quite easily to exploit and if someone were to decide to try and be a nuisance, they could potentially repeatedly use this to lock up the chat and prevent the GM from being able to remove them from the game.

Thankfully I was messing around after a game session when I found this bug (I work in Computer Science, testing for bugs is second nature, heh), but I imagine it could be quite annoying if it were to occur in the middle of a game.
March 07 (9 years ago)

Edited March 07 (9 years ago)
Riley D.
Roll20 Team
The dice did not roll infinitely (there is a hard limit to the number of times that a re-roll or explosion will occur...otherwise you could just as easily do >1 (since ">" means "greater than or equal to" in Roll20 to get the same behavior). The way dice rolling works on Roll20, you get a single self-contained roll, even for rolls that have re-rolls and exploding dice. That roll is then rendered to the screen in the chat. With very large rolls with hundreds or thousands of results, if you have the option enabled (and it's enabled by default) to show the background icons of the dice in the roll results, then it can bog down your computer to render all those background images. We currently automatically force this to be disabled for rolls with large numbers of dice being rolled, but it looks like it's not kicking in for that particular type of roll, so I'll take a look at that. Clearing the chat fixes the problem because that large roll is no longer trying to be rendered to the screen.

Thanks for letting us know, I'll make sure to add a check for that in the rendering code.
Oh okay, I figured you guys might have used recursive rolls for that type of exploding dice, but glad to hear it wasn't too major