Author Topic: SOLVED: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)  (Read 1801 times)

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on a game that was nominated for an AGS Award!
Hi

any idea as to why this error message should arise?

Error: Out of memory: failed to allocate-1795162107 bytes (at PP=200)

cheers




« Last Edit: 23 Jun 2013, 20:37 by slasher »

RickJ

  • fix'n one thing and break'n two ...
    • I can help with scripting
    • I can help with story design
    • RickJ worked on a game that was nominated for an AGS Award!
Perhaps your computer doesn't have 1.8 GB of free memory ;)

PP = 200 means room load has started.
What is your room size and number of backgrounds?

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on a game that was nominated for an AGS Award!
Hi

Room to load is 640 x 480. One background Only. My RAM is a modest 352Mbs HD 1 Gig spare.

The game was ok earlier yet when I opened the game later to play the game I got the error.

cheers




Are you creating any DynamicSprites?

Yes, the small room like that can't take so much.

Might be a corruption in game data too. Did you imported a project in other editor version recently? What will happen if you run "Rebuild all files" command from menu?

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on a game that was nominated for an AGS Award!
Hi

Quote
Did you imported a project in other editor version recently?
No.

Quote
What will happen if you run "Rebuild all files" command from menu?
I will try that. BRB

edit: AGS errors and closes program!

Should I use game bak?


« Last Edit: 23 Jun 2013, 19:11 by slasher »

What AGS version do you use?
Were there any errors in the editor recently during the compilation or saving the game?

There's certainly a corruption of room file (*.crm), I think.

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on a game that was nominated for an AGS Award!
Hi

3.2.1

No errors until I started computer later in the day and opened AGS and ran game.

Here is the script for part before error occurs:

Code: Adventure Game Studio
  1. cspaceman.Walk(602, 1250, eBlock, eAnywhere);
  2.  cspaceman.Say("SAL: Activate landing systems. Prepare to land. Maybe I can find the solutions to the ship's   problems on this planet.");
  3.  game.speech_text_align =eAlignLeft;
  4.  Button23.Animate(5,0, 3, eRepeat);
  5.  cSpace.SayAt(3, 300, 200, "Landing systems activated.");
  6.  Button23.NormalGraphic=414;
  7.  game.speech_text_align =eAlignCentre;
  8.  float duration = 2.5;
  9.  cPlanetPB11.TweenScaling(2.5, 170, eEaseOutTween, eNoBlockTween);
  10.  cspaceman.Walk(cEgo.x +0, cEgo.y -120, eBlock, eAnywhere);
  11.  cPlanetPB11.TweenScaling(2.5, 200, eEaseOutTween, eNoBlockTween);
  12.  cspaceman.Walk(cEgo.x +0, cEgo.y -90, eBlock, eAnywhere);
  13.  cspaceman.ChangeRoom(6, 265, 249);
  14.  
« Last Edit: 23 Jun 2013, 19:18 by slasher »

Well, if you have a backup, I'd suggest you to replace the room which gives this error.

Otherwise, I don't know if you will be able to load the room in the editor... Maybe you can try to open only script and copy it somewhere, then recreate the room.

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on a game that was nominated for an AGS Award!
Hi

Quote
There's certainly a corruption of room file (*.crm), I think.
This does in fact appear to be the case. I loaded a different Room and it was ok.

I deleted the 'bad' Room and made a new Room to replace it. I added the background and it changed with no problem so i guess corrupted Room.

All I have to do now is rebuild everything. Aghhhhhhhhhhhhhhhhhhhhhhhhhhhh

Thanks Crimson

Oh well, such is life.

Cheers guys