Lua - bugs and problems

Started by steveB

Deleted user

You know, by now I think they get it. Endless posting of logs isn't going to fix it.

mat747 Lv 1

True, But it would be nice to hear that from admin too.

Brick does this Bug crash your foldit?

Deleted user

No - never has, and I've been running and stopping a lot of scripts, both the "classic" style and lua based.

Crashguard303 Lv 1

Must be a "stacking" problem.
This error rather occurs, if the running script is in a loop (or function), and in this loop another loop is executed, and if you abandon the progcess then.

Running a single loop won't let it crash.

For example:

for k …
[point 1]

for l …
[point 2]
end [of loop l]

[point 3]
end [of loop k]

You see, this are two loops whereas the loop "for l" is executed within loop "for k"
If you terminate the process at point 1 or 3, a crash is rather improbable,
abandoning the script at point 2, a crash is more probable.
If you would execute a function at point 2 AND terminating the script while this function is called, a crash is almost for sure.

I hope, this proves and gives more details.

best regards,
Alex

Crashguard303 Lv 1

If it would be possible to fetch some keypresses by command or variable, we could terminate by the script by itself and not by GUI, by exiting loops if a stop key was pressed.

Seth Cooper Staff Lv 1

Can someone post, or give me the name of, a script that consistently crashes for the cases mentioned above, 1) when some segments are already frozen and 2) when canceled at a certain point?

mat747 Lv 1

A screenshot of the recipe output box below is of the script sequence that makes foldit crash if you cancel at that point, with a few seconds of the global wiggle starting.