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

Drag & Drop get's stuck when sandbox is under high load

1464709158

Edited 1464709397
When I duplicate characters from the API (which takes a lot of time) while dragging tokens into the table the interfaces gets stuck in a "drag" mode. The sandbox is still alive, when I switch to the chatbox and issue a new command I do still get responses in the API sandbox console window. However the game is unplayable in this stuck mode and therefore I have to reload which takes a lot of time... Campaign: 647721 Reproduce: Drag ~5-10 characters of name "Basismensch" to the table. It happens every single time. Only a reload of the window helps. Browser: Chrome Version 50.0.2661.102 m OS: Windows 10 64 bit
1464799280
Phil B.
Forum Champion
Sheet Author
Hey Wandler, I joined your game and gave it a try and confirmed this issue. (The tokens are at the bottom right of the current game board, I don't have access to actually use the token, so I can't delete them) I'm going to make a copy of your game, so that I can test this further, but it probably won't be for a while and it doesn't look like it's going to be an easy fix. Some additional questions, since I don't want to mess up your board too much: Does this happen after dropping ~5 tokens no matter how fast you drop them, or can it be avoided by giving it a few seconds between each drop? Have you ever seen this issue in another game, or just this one specifically? This particular game is quite large, and because of that, it's slower than average; I'm wondering if that is part of the issue.
Hello Phil, thank you for testing it. It is absolutely okay, that you dragged them there :) It happens only when you drag them quickly to the tabletop. I assume the reason is because everytime you drag a token it actually takes a few seconds to finish copying the whole character and linking the token to the new copy. It is queued up on the API server and as each function is just fast enough to not kill the heartbeat everything turns out fine - but it leaves "something" in the dragged state. I am pretty sure the reason is because this particular game and more specific this particular script generates that much load. A copy of a whole character on this custom sheet which is really not a small one does just generate a lot of load and I have never experienced the issue with smaller sheets or scripts that don't run that long. It is obviously absolutely okay that this is not an important fix right now. I just wanted to report it because it is reproduceable and I am happy if it get's fixed anytime. I just manually set the css for the stuck item to display:none to avoid reloading the page everytime it happens, which allows me to continue gming the campaign as a hotfix.