pocomane / MiSTer_Batch_Control

Simple utility to control the MiSTer FPGA from the command line
47 stars 8 forks source link

mbc fails after a while #7

Closed mrchrisster closed 3 years ago

mrchrisster commented 3 years ago

I've been running the following command all day with different systems: for (( ; ; )); do mbc load_rom SNES "$(find /media/fat/games/snes -type f \( -iname "*.sfc" \) | shuf -n 1)" && sleep 100; done It works for a couple rom changes but eventually fails, not bringing up the OSD menu anymore. Issuing mbc raw_seq MODOODDO also has no effect on the core anymore. Only restart eventually fixes mbc.

pocomane commented 3 years ago

I am able to reproduce this with a dalay of 10 seconds between the rom changes and waiting for about 10 minutes. Sadly I think this is a bug of the main MiSTer app. I think so because, you can rescue from such situation without rebooting in the following way

Maybe, MAYBE, I can found a workaround: if I found a way to detect the hanging of Main_MiSTer, then it can be mbc itself to kill and restart it.

However, this should be reported to the core developer, preferably finding a way to reproduce the bug without the use of external tool like mbc (I do not know how, changing roms manually for 10 minuted is a bit boring...)

pocomane commented 3 years ago

The problem is with the core loading procedure itself, that is provided by the MiSTer app. So I was able to reproduce it without external tools. I opened an issue.

Thank for the report.

mrchrisster commented 3 years ago

Thanks for looking into it, lets's hope it gets fixed!

pocomane commented 3 years ago

It seems to be fixed in the last commit in Main_MiSTer.