Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call emu.frameadvance() in Lua Console #414

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 1 comment
Open

Cannot call emu.frameadvance() in Lua Console #414

GoogleCodeExporter opened this issue Jun 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open Lua Console.
2. Type emu.frameadvance().
3. Alternatively, call any user-defined Lua function that internally calls 
emu.frameadvance().

What happens:
LuaInterface.LuaScriptException: attempt to yield across metamethod/C-call 
boundary

What should happen:
It should just work. :)


BizHawk 1.9.3, tested this with bsnes core.

Original issue reported on code.google.com by denilsonsa on 23 Mar 2015 at 4:17

@GoogleCodeExporter
Copy link
Author

A similar error shows up if we call emu.frameadvance from within a button (i.e. 
inside the function that handles the click on a gui.button).

It certainly happens because we can't call that function in another thread 
(i.e. we can't call it in the GUI thread).

Not sure how easy this can be solved, probably not easy at all. Specially 
tricky if we make a Lua button that runs a function that calls frameadvance in 
a loop. Maybe the best solution would to handle this exception and give a good 
error message to the user.

Original comment by denilsonsa on 24 Mar 2015 at 3:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant