Chaosforge Forum

  • March 28, 2024, 13:52
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game  (Read 3270 times)

singalen

  • Supporter
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 182
  • Lost Soul
    • View Profile

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.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
« Reply #1 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.
Logged
I computed, therefore I was.

singalen

  • Supporter
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 182
  • Lost Soul
    • View Profile
Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
« Reply #2 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.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
« Reply #3 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.
Logged
I computed, therefore I was.

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: [0.9.9.7|G|Linux x86] Crashes with OOM when loading a game
« Reply #4 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.
Logged
at your service,
Kornel Kisielewicz
Pages: [1]