Chaosforge Forum

DoomRL => Bug Reports => Topic started by: singalen on October 09, 2013, 14:45

Title: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
Post by: singalen on October 09, 2013, 14:45
On a netbook with 1G RAM, DoomRL crashes trying to read my Ao100 save file. Luckily, I had it in my Dropbox (only to move between computers!).
Here's the error:

Spoiler (click to show/hide)

The screen goes black, but the music continues to play.
As per top, the game only takes 400M of memory, with about 400 more available.
Title: Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
Post by: thelaptop on October 09, 2013, 17:29
Hmm.  That's interesting.

Can you make a copy of the whole set up and try loading it in console mode instead?

Side note: since you are using Dropbox, did you accidentally run the game on x86-64 and then try to load it on x86?  Even though the underlying game is 32-bit in that set-up (possibly), there might be some alignment-related issues when the data structures are dumped to disk in a save.
Title: Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
Post by: singalen on October 10, 2013, 00:52
I will, when I'm back at that computer.
Actually, that's what I did - ran a x86 version on a 64bit save.
My assumption was that,as player.wad and score.wad are platform independent, so save file is too.
Title: Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
Post by: thelaptop on October 10, 2013, 01:33
Ah.  That might be the problem.  player.wad and score.wad are designed to be platform independent, but the save file isn't -- that's why you can't bring a Windows save file to Mac OS X for example.

But having issues between 32-bit Linux and 64-bit Linux using the same 32-bit game binary is a first.
Title: Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
Post by: Kornel Kisielewicz on October 10, 2013, 07:55
Correct. The score and player data are gzipped XML files, but the saves are raw memory dumps, hence incompatible.