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

running jajamaru, when load state, there is an error #12689

Open
krysof opened this issue Aug 25, 2024 · 1 comment
Open

running jajamaru, when load state, there is an error #12689

krysof opened this issue Aug 25, 2024 · 1 comment

Comments

@krysof
Copy link

krysof commented Aug 25, 2024

MAME version

mame 0268

System information

Windows 11, 64-bit, version 22H2, USA, US English x86-64, 32GB system RAM, GeForce RTX 3090 driver version 516.54

INI configuration details

default

Emulated system/software

vsnes

Incorrect behaviour

#######################################################################################################################

Starting MAME

F:\mame-ao-1.94\0268\mame.exe

jajamaru

#######################################################################################################################

MAME error:
MAME error:-----------------------------------------------------
MAME error:Exception at EIP=00007ff6b2c76d88 (memory_view::register_state()::{lambda()#1}::operator()() const+0x0018): ACCESS VIOLATION
MAME error:While attempting to read memory at 0000000000000000
MAME error:-----------------------------------------------------
MAME error:RAX=00000253f9d1d7f8 RBX=0000025380114cc8 RCX=0000000000000000 RDX=00000000ffffffff
MAME error:RSI=000002538065ac20 RDI=0000025380551868 RBP=000000cd303f99b0 RSP=000000cd303f8e90
MAME error: R8=0000000000000002 R9=000000007ffe2000 R10=0000000000000007 R11=00000211c9dbe996
MAME error:R12=00000253f8e8c9b0 R13=0000000000000004 R14=0000025380551868 R15=0000000000000001
MAME error:-----------------------------------------------------
MAME error:Stack crawl:
MAME error: 000000cd303f8eb0: 00007ff6b2c76d88 (memory_view::register_state()::{lambda()#1}::operator()() const+0x0018)
MAME error: 000000cd303f8f90: 00007ff6b29c42b9 (save_manager::read_file(util::core_file&)+0x02d9)
MAME error: 000000cd303f9530: 00007ff6b29fd8b0 (running_machine::handle_saveload()+0x0890)
MAME error: 000000cd303f9690: 00007ff6b29febd1 (running_machine::run(bool)+0x01d1)
MAME error: 000000cd303fec50: 00007ff6b644b78b (mame_machine_manager::execute()+0x020b)
MAME error: 000000cd303ff030: 00007ff6ba7816bf (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)+0x03cf)
MAME error: 000000cd303ff2f0: 00007ff6ba781ccd (cli_frontend::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&)+0x004d)
MAME error: 000000cd303ff350: 00007ff6b6445e09 (emulator_info::start_frontend(emu_options&, osd_interface&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&)+0x0029)
MAME error: 000000cd303ff720: 00007ff6bc4838fc (luaopen_lfs+0xf9e61c)
MAME error: 000000cd303ff7f0: 00007ff6adb513b1 (__tmainCRTStartup+0x0231)
MAME error: 000000cd303ff820: 00007ff6adb514e6 (mainCRTStartup+0x0016)
MAME error: 000000cd303ff850: 00007ff943c87374 (BaseThreadInitThunk+0x0014)
MAME error: 000000cd303ff8d0: 00007ff94473cc91 (RtlUserThreadStart+0x0021)

MAME Shell Exit BAD: -1073741819

Expected behaviour

#######################################################################################################################

Starting MAME

F:\mame-ao-1.94\0268\mame.exe

jajamaru

#######################################################################################################################

MAME error:
MAME error:-----------------------------------------------------
MAME error:Exception at EIP=00007ff6b2c76d88 (memory_view::register_state()::{lambda()#1}::operator()() const+0x0018): ACCESS VIOLATION
MAME error:While attempting to read memory at 0000000000000000
MAME error:-----------------------------------------------------
MAME error:RAX=00000253f9d1d7f8 RBX=0000025380114cc8 RCX=0000000000000000 RDX=00000000ffffffff
MAME error:RSI=000002538065ac20 RDI=0000025380551868 RBP=000000cd303f99b0 RSP=000000cd303f8e90
MAME error: R8=0000000000000002 R9=000000007ffe2000 R10=0000000000000007 R11=00000211c9dbe996
MAME error:R12=00000253f8e8c9b0 R13=0000000000000004 R14=0000025380551868 R15=0000000000000001
MAME error:-----------------------------------------------------
MAME error:Stack crawl:
MAME error: 000000cd303f8eb0: 00007ff6b2c76d88 (memory_view::register_state()::{lambda()#1}::operator()() const+0x0018)
MAME error: 000000cd303f8f90: 00007ff6b29c42b9 (save_manager::read_file(util::core_file&)+0x02d9)
MAME error: 000000cd303f9530: 00007ff6b29fd8b0 (running_machine::handle_saveload()+0x0890)
MAME error: 000000cd303f9690: 00007ff6b29febd1 (running_machine::run(bool)+0x01d1)
MAME error: 000000cd303fec50: 00007ff6b644b78b (mame_machine_manager::execute()+0x020b)
MAME error: 000000cd303ff030: 00007ff6ba7816bf (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)+0x03cf)
MAME error: 000000cd303ff2f0: 00007ff6ba781ccd (cli_frontend::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&)+0x004d)
MAME error: 000000cd303ff350: 00007ff6b6445e09 (emulator_info::start_frontend(emu_options&, osd_interface&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&)+0x0029)
MAME error: 000000cd303ff720: 00007ff6bc4838fc (luaopen_lfs+0xf9e61c)
MAME error: 000000cd303ff7f0: 00007ff6adb513b1 (__tmainCRTStartup+0x0231)
MAME error: 000000cd303ff820: 00007ff6adb514e6 (mainCRTStartup+0x0016)
MAME error: 000000cd303ff850: 00007ff943c87374 (BaseThreadInitThunk+0x0014)
MAME error: 000000cd303ff8d0: 00007ff94473cc91 (RtlUserThreadStart+0x0021)

MAME Shell Exit BAD: -1073741819

Steps to reproduce

1 start mame with run
2 f6 to save state
3 f7 to load state

Additional details

No response

@happppp
Copy link
Member

happppp commented Aug 25, 2024

It does not crash here, but I see this driver (nintendo/vsnes.cpp) does not officially support savestates, which means some variables are not saved and unexpected things can happen when a state is loaded.

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

No branches or pull requests

2 participants