-
Notifications
You must be signed in to change notification settings - Fork 0
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
Loader: Crash when advancing records #15
Comments
I am unable to reproduce this with SimCoupe and v2.34.
It may be related to .m files being scanned for if they are a mod, any chance you can share an hdf with reproducible? |
You are bang on - it's this image that it dies on, reproducable in SimCoupe when inserted as drive 1: |
There are two files CC.MAC and ZEUS.MAC that look likely candidates, but I guess the commit to skip small files witll fix this |
Yes, it is either file, if the first three sectors could not be read (to check if the internals look like a mod) the loop progresses to the next file, but forgets to pop two values from the stack. This is nicely covered up by the minimum file size check, since a 2108 byte file requires more than three sectors. So yes, professionally covered up by f50933f |
First three sectors of file read to check if internals look like a mod. When too small, a few pops are forgotten resulting in a crash. An earlier change, discarding files smaller than 2108 bytes already covered this bug up. Fixs #15 Also some initial work on moving mod format constants out to mod.i.
When moving through records I can cause a crash.
Mod player is in Record 62.
Use Shift+Back to go back to Record 1
Try and advance to record 6 - crashes after record 5
The text was updated successfully, but these errors were encountered: