Client may hang when lua foldit functions are stopped/canceled
|Opened on:||Wednesday, May 2, 2012 - 00:49|
|Last modified:||Friday, September 13, 2013 - 22:21|
Okay, this has been bothering me for months, and I'm sure other people are seeing it, but they're blaming it on the puzzle. I certainly saw it lots on a recent flu puzzle, but that's because my playing style changed.
I spam space during scripts as a sort of 'get on with it', during shakes or wiggles that aren't doing anything, or where the script is going to fix 5 different segments and I want it to get on to 2 and 3.
It happens when I hit space, but ALSO when I hit cancel. It happens most with Precise LWS but ALSO happened on other scripts. It happened mostly on a flu design puzzle but ALSO on other puzzles. It even happened once with just Wiggle from the GUI.
In short, there's some non-zero probability that I'm going to hang the client whenever I hit space to cut an operation short, or cancel a script that does foldit operations. I'm sure everybody else is hitting this from time to time, too.
I've run this short script 10 times on immunodesign 549 and casp template preview 550 and got it to hang within about 30 seconds 10/10 times.
New LUA 1 script.
Run this, spamming space bar (not autorepeat, keep hitting space) as fast as you can and holding down the mouse button to move the view around. I'm pretty sure the mouse input isn't affecting the crash, I'm just doing it to make it obvious when the client hangs.