Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
05659 Crash/Freeze Critical (emulator) Always Aug 7, 2014, 18:47 10 days ago
Tester Firewave View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Fixed OS Linux
Status [?] Resolved Driver
Version 0.154 Fixed in Version Build Debug
Fixed in Git Commit Github Pull Request #
Summary 05659: vendetta2pd: Error when loading savestate
Description
MAME exception: execute_command called with invalid command 0

Happens when running it twice with "-str 2 -autosave".
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version 0.153
Affected Sets / Systems vendetta2pd
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.12335
Osso
Moderator
Jan 11, 2016, 09:08
Broke following this change: http://git.redump.net/mame/commit/?id=d5d1d5d163b53aa0b2b766bbdaa21bac5bd4e91d
User avatar
No.22810
hap
Developer
11 days ago
It works fine on MAME 0.273.

I thought it still crashed, since the 2nd "-str 2 -autosave" command exited immediately. I tried the same with pacman, and have to do "-str 4" on the 2nd run to make it run for 2 seconds. Or is this a bug?
User avatar
No.22828
Firewave
Senior Tester
10 days ago
That is how it is supposed to work:
- `-str 2` tells it to run for 2 emulated seconds in total
- `-autosave` tells it to create an "auto" save state when it exits
- it exits when the 2 seconds have elapse
- when you run it again `-autosave` will load the "auto" save state
- since the state includes the amount of time it has run it sees that the 2 seconds have already been reached and will exit immediately

On a side note - it is actually neat since it will just load, exit save on the second run which is nice to automated testing.
Since `-str` also generates a snapshot you can compare the ones from each run and any difference should indicate any issue since they should be identical. I think I have that integrated in the reporting of my testing tool - but it seems I never filed reports about that (I did about the .wav output). Actually it should also be possible to just compare the save states - not sure if I do that in the tests. Something to look into if I ever get around to doing another regtest run.