Random crash happens when we reload a Lua script too many times in the Lua Console. (v1.9.4)
1. Load a rom
2. Create, or load a Lua script in the Lua Console
3. Highlight a script
4. Press "Reload Script" 90 times (It can throw a random error at 64 times, but it will freeze at 90)
Enable/disable a script too many times does the same thing.
It also crash with an empty script like this:
while true do
emu.frameadvance();
end
Example of random errors:
1: BizHawk freeze
2: Any kind of error window
3: The current loaded rom file is now corrupted
4: Output > "Unknown Lua Error"
5: Output > "Table"
6: Output > A random error in the script
7: The script doesn't activate and nothing happens
There is probably a data overflow somewhere in the Lua Console script. When the user ask to load a Lua script, the Lua Console script keeps counting up something and doesn't reset.