cas1993per / bizhawk

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

Lua error message hangs emulator #376

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

"Warning: Attempted write to # outside the memory size of #"

On accident I've sometimes made for loops that try to read past the memory 
size, this causes the top message to appear over and over, and causes the 
emulator to stop responding to all user input(cant even close it without task 
manager)

What version of the product are you using? On what operating system?
Lastest SVN.

Original issue reported on code.google.com by tribeam....@gmail.com on 20 Jan 2015 at 8:04

GoogleCodeExporter commented 9 years ago
Could you provide a simple lua script that reproduces this, and name what core 
and game to run it on?

Original comment by goyu...@gmail.com on 20 Jan 2015 at 10:18

GoogleCodeExporter commented 9 years ago
Added Tags pending information.

Original comment by hegyak on 21 Jan 2015 at 2:16

GoogleCodeExporter commented 9 years ago
Core: Gensplus-gx
Game: tested it on sonic2(should work on any game)

Code:
-- lets purposely crash the emulator :D!
memory.usememorydomain("Z80 RAM")

while true do

    emu.frameadvance()
    for i = 0x2000, 0x3000 do
        memory.read_u8(i)
    end
end

Original comment by tribeam....@gmail.com on 21 Jan 2015 at 4:47

GoogleCodeExporter commented 9 years ago
I ran the script and it constantly shows the error message "Warning: Attempted 
write to 8870 (Incrimenting) outside the memory size of 8500 (Incrimenting)"

It runs eternally.

Original comment by hegyak on 21 Jan 2015 at 3:58