Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, Quad), 733 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
E1005 - Help #344210
10/15/10 05:25
10/15/10 05:25
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I am getting the E1005 out of memory error after loading a series of levels.

I had asked about this error a couple years ago, and thought I beat it but it has resurfaced upon loading sometimes and I'm not sure why.

From the stats panel:

My sys_memory shows around 425MB, while my nexus is about 150MB on average, and the video memory shows at 1GB on average.

I don't believe this is a damaged file as I resaved everything. Almost all my images are .dds, and my models use bones animation, everything's being purged, ect. My computer has 3GB of virtual memory and 2GB of Ram.

So I am wondering, what accounts for the 425MB exactly? And why is this crashing the game?

I tried using bmap_load to save even more image space but that function isn't fully stable nor is the bmap_create one, it will work mostly(maybe 30 image loads) but then it will crash with some weird Directx E2000 errors or in the latter a pointer crash.

I need to know what or how to cut stuff out or dynamically reload in the game so this E1005 does not appear. All my songs and sounds are streamed through FMOD, and the BMAP pointer definitions in my script only account for about 100MB of it. So where is the rest of it coming from? Levels are loaded dynamically out of .wrs files. There is nothing else defined in my scripts but the BMAPs that would take up space.

Re: E1005 - Help [Re: William] #344218
10/15/10 08:41
10/15/10 08:41
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I got the same error some days before ... couldn't neither figure out where it came from nor eliminate it.

Re: E1005 - Help [Re: pegamode] #344223
10/15/10 09:38
10/15/10 09:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It is unlikely that the resources of a normal game consume all the available memory on a modern PC. When you have no memory left, normally something is wrong either with your game, or with your Windows memory settings.

You can easily find the problem by checking at which moment the error message appears. For instance, when it appears when loading a certain entity, something with that entity might be wrong.

Re: E1005 - Help [Re: jcl] #344290
10/15/10 22:45
10/15/10 22:45
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
If this is true then why does it load this particular level fine over and over again. But when I load another level, then come back to it, it will sometimes give me this error upon loading it and crash the engine?

As well, you still didn't explain how sys_memory calculates it's memory?

And if it is some entity that only gives errors randomly, can the engine at least tell me what entity it failed to load after the crash? After all, I have hundreds of entities, sound, and image files so it is impossible to pinpoint. Especially when the "damaged file" thing does tell you how to make a file work? Do I save it in MED again?


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: E1005 - Help [Re: William] #344295
10/15/10 23:00
10/15/10 23:00
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline
Expert
Rondidon  Offline
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
The revenge of the legendary Intense X memory bug, not? ^-^

Re: E1005 - Help [Re: Rondidon] #344301
10/16/10 00:52
10/16/10 00:52
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Does it oNLY crash after loading another level? Or does it sometimes crash on its own?

It may be that these "other" levels are not being completely 'released' when you
load your 'naughty' level, and so there is not enough space left to fit it in?

Have you tried multi-loading just the naughty level? And checking for crashed or 'extra' memory consumption.
Code:
while(1)
{
   level_load("naughty.wmb");
   diag_memory_usage();
   wait(-10);
}

That may expose an in-engine memory 'leak'...




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: E1005 - Help [Re: EvilSOB] #344318
10/16/10 09:43
10/16/10 09:43
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
That's a good idea. You dont even need diag_memory_usage, you can just observe the sys_memory in the F11 panel and see if your level leaves some memory unfreed.

Also check out the acklog, it normally tells pretty good where the problem happens. If its an entity in your level, you can put a diag output at the start of the entity action, then you see at least which entities load fine and do not use up all that memory.

Re: E1005 - Help [Re: Tobias] #344552
10/18/10 12:00
10/18/10 12:00
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Is the engine supposed to show around 1,777,000 K in the task manager dialog? This is what it is normally at when it crashes. It does not just issue this error on the loading of a certain level.

By loading the same level over and over it doesn not give an error or increase the sys_memory. Here is a way I can make the error appear, load the tutorial level, then load a racetrack, then load the tutorial level again. This will make the error.

However, if I load load let's say 8 different racetracks in different orders the error wont appear.

But, if I do the first it does. There is some times where it won't give the error on the first method but instead give a directX texture error saying it can't create a "Skin2". And the tutorial level will run a second time. But then if I load any other level in the game the E1005 appears.

Re: E1005 - Help [Re: William] #344557
10/18/10 12:32
10/18/10 12:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Your levels are 1.777 GB? I guess you then don't need to look for the problem much further. Consider to make that a little smaller. A max size of 400..500 MB would be ok.

Re: E1005 - Help [Re: jcl] #344563
10/18/10 12:59
10/18/10 12:59
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
No of course not. The level with the problems .wrs is 22.7MB. An entire demo with 8 levels and everything else published is only around 700MB. I don't know why it shows this high. The sys_memory is only at 450MB. The nexus is at 150MB.

What does it mean for the memory in the task bar? How does this compare to sys_memory in the diag?


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Page 1 of 4 1 2 3 4

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1