Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sektor 13 on Fri 12/08/2005 16:26:41

Title: Out of memory error with 2.7
Post by: Sektor 13 on Fri 12/08/2005 16:26:41
I got:
ERROR:Out of memory:Failed to allocate 1756690944 bytes (AT =3336)

I get this eeror when loading room 7. I think i got it when i upgraded from 2.62 to 2.7. As i tried old back up, that works normaly under 2.62 but even if i copy room7 to my current game it still shows the same error.. Any idea ??
Title: Re: Out of memory error with 2.7
Post by: Rui 'Trovatore' Pires on Fri 12/08/2005 16:29:18
Silly question, but we might as well cover all angles... did you actually save the room in 2.7?
Title: Re: Out of memory error with 2.7
Post by: Sektor 13 on Fri 12/08/2005 16:39:02
i tried both (save with 2.7 and only copy the backup-last saved with 2.62) :'(
Title: Re: Out of memory error with 2.7
Post by: Pumaman on Fri 12/08/2005 19:48:21
I take it this error is in the game engine, not the editor? Does the room load ok into the editor?
Title: Re: Out of memory error with 2.7
Post by: Pod on Fri 12/08/2005 23:21:31
Do you have 1.675gbs of memory?

What scripts do you have running in room 7?
Title: Re: Out of memory error with 2.7
Post by: Gilbert on Sat 13/08/2005 03:09:21
Did you make a large array in that room?
Title: Re: Out of memory error with 2.7
Post by: GarageGothic on Sat 13/08/2005 03:47:33
The only times that I have experienced gross out-of-memory messages like this is when I've tried to resize graphics either using RawDraw or the ned DynamicSprite functions. What kind of script are you running in room 7? And could any part of your global script be triggered here and not elsewhere?
Title: Re: Out of memory error with 2.7
Post by: Sektor 13 on Sat 13/08/2005 09:16:57
Room loads ok in the editor.

I am using SLOW MOVEMENT script (which usese global script too) and a prettly large sprite (as an Object). But i tried to comment all scripts (so that room was without any commands to execute), but it is all the same. Still wondering why does it work in 2.62 ?

I didn't use any Raw Draw

And i don't have 1.675 Bbs of memory :) only 512..
Title: Re: Out of memory error with 2.7
Post by: DoorKnobHandle on Sat 13/08/2005 09:40:34
I come across this error from time to time, and I'm still not quite sure what causes it. I always thought my < 200MB free hard drive space would be the reason...

Anyways, to prevent it, simply don't use the "Test Game" option in AGS but use the windows explorer to locate your created game EXE and launch it from there. That does the trick for me.
Title: Re: Out of memory error with 2.7
Post by: Sektor 13 on Sat 13/08/2005 13:13:57
Quote from: [ ... ] on Sat 13/08/2005 09:40:34
I come across this error from time to time, and I'm still not quite sure what causes it. I always thought my < 200MB free hard drive space would be the reason...

Anyways, to prevent it, simply don't use the "Test Game" option in AGS but use the windows explorer to locate your created game EXE and launch it from there. That does the trick for me.

Nope, doesn't work for me... :(
Title: Re: Out of memory error with 2.7
Post by: Pod on Sat 13/08/2005 14:07:49
Jus re-do that room then. copy and paste the scripts over...
Title: Re: Out of memory error with 2.7
Post by: Pumaman on Sat 13/08/2005 16:05:07
Quote from: Pod on Sat 13/08/2005 14:07:49
Jus re-do that room then. copy and paste the scripts over...

Please don't suggest that as a solution. If there's something wrong with the room, I want to find out what it is so that I can fix it.

How large is your game? Is it small enough to upload for me to take a look at?

(Please note: I'll be at mittens from today until next week, so send me a PM if you upload it and I'll reply when I get back).
Title: Re: Out of memory error with 2.7
Post by: Pod on Sat 13/08/2005 17:08:25
Sorry ;(
Title: Re: Out of memory error with 2.7
Post by: Sektor 13 on Sat 13/08/2005 18:36:14
Well game is 34,5 mb under ZIP, soo much about shortness :) I will try to upload it, maybe on wednesday when my friend comes home..

I deleted the room, and recreated it, same pictures, objects and script.. it works fine now.... := (I have old backup of ROOM 7 thou, hehe)
Title: Re: Out of memory error with 2.7
Post by: Pumaman on Mon 29/08/2005 18:21:04
Thanks for sending it.

I have tracked it down to a bug in AGS, if you have a character who is off the screen AND you have a continuous scaling walkable area that touches the bottom of the screen.

In this case your character 22 ("DOCTORB") was at a very large Y co-ordinate (off the bottom of the screen), and walkable area 1 was continuously scaled and touched the bottom of the screen.

I will fix it for the next version.