Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Sun 23/06/2013 18:36:37

Title: SOLVED: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Slasher on Sun 23/06/2013 18:36:37
Hi

any idea as to why this error message should arise?

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

cheers




Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: RickJ on Sun 23/06/2013 18:44:40
Perhaps your computer doesn't have 1.8 GB of free memory ;)
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Crimson Wizard on Sun 23/06/2013 18:50:17
PP = 200 means room load has started.
What is your room size and number of backgrounds?
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Slasher on Sun 23/06/2013 19:01:20
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



Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Ryan Timothy B on Sun 23/06/2013 19:04:29
Are you creating any DynamicSprites?
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Crimson Wizard on Sun 23/06/2013 19:06:47
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?
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Slasher on Sun 23/06/2013 19:08:21
Hi

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

QuoteWhat 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?


Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Crimson Wizard on Sun 23/06/2013 19:12:34
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.
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Slasher on Sun 23/06/2013 19:15:24
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 (AGS) Select
cspaceman.Walk(602, 1250, eBlock, eAnywhere);
cspaceman.Say("SAL: Activate landing systems. Prepare to land. Maybe I can find the solutions to the ship's   problems on this planet.");
game.speech_text_align =eAlignLeft;
Button23.Animate(5,0, 3, eRepeat);
cSpace.SayAt(3, 300, 200, "Landing systems activated.");
Button23.NormalGraphic=414;
game.speech_text_align =eAlignCentre;
float duration = 2.5;
cPlanetPB11.TweenScaling(2.5, 170, eEaseOutTween, eNoBlockTween);
cspaceman.Walk(cEgo.x +0, cEgo.y -120, eBlock, eAnywhere);
cPlanetPB11.TweenScaling(2.5, 200, eEaseOutTween, eNoBlockTween);
cspaceman.Walk(cEgo.x +0, cEgo.y -90, eBlock, eAnywhere);
cspaceman.ChangeRoom(6, 265, 249);

Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Crimson Wizard on Sun 23/06/2013 19:18:09
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.
Title: Re: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)
Post by: Slasher on Sun 23/06/2013 19:49:15
Hi

QuoteThere'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