Out of memory error with 2.7

Started by Sektor 13, Fri 12/08/2005 16:26:41

Previous topic - Next topic

Sektor 13

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

Rui 'Trovatore' Pires

Silly question, but we might as well cover all angles... did you actually save the room in 2.7?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Sektor 13

i tried both (save with 2.7 and only copy the backup-last saved with 2.62) :'(

Pumaman

I take it this error is in the game engine, not the editor? Does the room load ok into the editor?

Pod

Do you have 1.675gbs of memory?

What scripts do you have running in room 7?

Gilbert

Did you make a large array in that room?

GarageGothic

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?

Sektor 13

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

DoorKnobHandle

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.

Sektor 13

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... :(

Pod

Jus re-do that room then. copy and paste the scripts over...

Pumaman

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

Pod


Sektor 13

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)

Pumaman

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.

SMF spam blocked by CleanTalk