alexis-soluteo / bizhawk

Automatically exported from code.google.com/p/bizhawk
0 stars 0 forks source link

(Lua) Runtime errors in registered functions crash BizHawk #410

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a runtime error (LuaScriptException) occurs in a registered function, 
BizHawk crashes.

For example, running the following script:

function x()
 y.z=0
end
event.onframeend(x)

and unpausing emulation, crashes BizHawk with the following error:

http://i19.photobucket.com/albums/b185/jhchan8/eventerror.png

If x() is merely called outside of a registered function, instead the error 
would appear in the Lua console, like this:

LuaInterface.LuaScriptException: [string "main"]:2: attempt to index global 'y' 
(a nil value)

This problem occurs in BizHawk 1.9.1-1.9.3. No other versions were tested. OS 
is Windows 7 Home Premium.

Original issue reported on code.google.com by justinhc...@hotmail.com on 17 Mar 2015 at 7:33

GoogleCodeExporter commented 9 years ago
Is this with the N64 core? Might be the same as issue 244.

Original comment by pjga...@gmail.com on 18 Mar 2015 at 2:36

GoogleCodeExporter commented 9 years ago
Fixed, revision 9272

Original comment by adeli...@tasvideos.org on 28 Mar 2015 at 12:26