The following Lua script crashes EmuHawk when rebooting the core:
event.onexit(function()
memory.read_u8(0)
end)
while true do
emu.frameadvance()
end
This happens because the script is not stopped until LuaConsole.Restart, at which point the old core instance has been disposed. (Of course, even if the exit handler read from the new core, that would not be correct either.)
Repro
- Open a ROM with a core that supports memory API
- Start the above Lua script
- Reload the ROM
Output
No error message.
Host env.
BizHawk 2.11 and current master
The following Lua script crashes EmuHawk when rebooting the core:
This happens because the script is not stopped until
LuaConsole.Restart, at which point the old core instance has been disposed. (Of course, even if the exit handler read from the new core, that would not be correct either.)Repro
Output
No error message.
Host env.
BizHawk 2.11 and current master