#2311 closed defect (fixed)
ITE: Crash when loading old saved game
Reported by: | SF/fancia | Owned by: | sev- |
---|---|---|---|
Priority: | normal | Component: | Engine: SAGA |
Version: | Keywords: | ||
Cc: | Game: | Inherit the Earth |
Description
I don't know if this is a known problem or a result of a change in the save format, but on recent nightly builds, ScummVM crashes when attempting to load any older savegames of mine, while newer ones work properly. It gives the error message:
scummvm(2651,0xa000ef98) malloc: *** vm_allocate (size=2684354560) failed (error code=3) scummvm(2651,0xa000ef98) malloc: *** error: can't allocate region scummvm(2651,0xa000ef98) malloc: *** set a breakpoint in szone_error to debug Fatal signal: Bus Error (SDL Parachute Deployed)
I'm using the latest nightly compiled with GCC 4.0 on Mac OS X 10.4.2. One of the savegames in question is attached.
Ticket imported from: #1338596. Ticket imported from: bugs/2311.
Attachments (1)
Change History (4)
by , 19 years ago
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 6 years ago
Component: | → Engine: SAGA |
---|---|
Game: | → Inherit the Earth |
Yes, we had to broke that recently. The problem was that we wrote our saves in native endianness. We fixed that but since there is no way to tell at which endianness it was written, we show up a warning.
Though, I just looked at the code and see that there was another problem which made ScummVM think that those broken saves were written super-advanced format number 0x30000000 (instead of 3), and it tried to read wrong header.
I fixed that and most probably it'll fix your save. I.e. there is no way to be sure. But at least it will show up this warning:
WARNING: This savegame is not endian-safe. There may be problems