Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, Nymphodora, Quad, TipmyPip, Imhotep), 852 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: E1005 - Help [Re: William] #344564
10/18/10 13:08
10/18/10 13:08
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
sys_memory should be somewhat smaller than the memory in your task manager.

sys_memory is the sum of all memory allocations by the engine, and depends on what you have in your level and scripts. The task manager memory is the overall consumed memory by the process. It is calculated by Windows, while sys_memory is calculated by the engine. sys_memory is a var and thus can not (and should not!) exceed 1 GB.

If you have huge discrepancies between both, you're maybe doing things that consume memory but don't affect sys_memory - for instance, opening new tasks, loading DLLs or something like that. Make some tests, for instance load your levels without script or your script without level, and check where the discrepancies come from.

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

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Thanks for the run down, this type of information helps me find the problem. Do you think that this error could be caused by memory consumed that the engine does not allocate? For instance, would the engine detect in the sys_memory FMOD sounds like these which are loaded through a .dll:


ftorpedo_bounce = fsoundSampleLoad(FSOUND_FREE, "Audio\\torpedo_bounce2.ogg", FSOUND_NORMAL+FSOUND_FORCEMONO, nullvector);
fdynamad_explode = fsoundSampleLoad(FSOUND_FREE, "Audio\\dynamad_explode.ogg", FSOUND_NORMAL+FSOUND_FORCEMONO, nullvector);
fdynamad_travel = fsoundSampleLoad(FSOUND_FREE, "Audio\\dynamad_travel.ogg", FSOUND_NORMAL+FSOUND_FORCEMONO, nullvector);
fdynamad_shoot = fsoundSampleLoad(FSOUND_FREE, "Audio\\dynamad_shoot.ogg", FSOUND_NORMAL+FSOUND_FORCEMONO, nullvector);

Do you think that this problems lies on the FMOD.dll not removing it's memory properly? Other than that, I can't really see anywhere that my other .dll's would use much memory, as it's just ANET, mysql, and the xbox controller plugin.

Since my sys_memory only shows about 450MB that means that over 1GB is somehow allocated elsewhere... I just don't know how. All my songs are streamed too.


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] #344567
10/18/10 13:35
10/18/10 13:35
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Yes, that's possible. Memory allocated by external DLLs is not counted by sys_memory.

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

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Alright, heres something that is odd. I am entering the IGF demo and it's due today, so I published a new demo. Now when I run the published version, the engine shows about 450MB in the taskbar upon loading the menu without a level.

Once the level is loaded it shows around 750 on average, this is mostly the same regardless of the level.

Now I just loaded around 10 different levels including the problem one and couldn't get this error to happen at all.

But in the development version the error will show every time and the task bar memory is completely different(about 1GB more memory).

Any ideas why this is?


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] #344570
10/18/10 14:12
10/18/10 14:12
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Just set warn_level=0; and you will get no error massage grin In pulished versions you won´t get any error messages, because i think warn_level wil automatically set to 0. Just heavy errors, like while loop without a wait or other heavy errors let the engine crash, but you won´t get a error message.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: E1005 - Help [Re: alibaba] #344644
10/19/10 09:23
10/19/10 09:23
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
This error message is not affected by the warn level. It is a hard error, meaning that the application must terminate.

Re: E1005 - Help [Re: jcl] #344651
10/19/10 11:06
10/19/10 11:06
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
OH!Then... just ignore my post laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: E1005 - Help [Re: alibaba] #344735
10/20/10 08:05
10/20/10 08:05
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Thanks to this thread I was able to figure out where the same problem in my project came from.

I only get this error when starting my project with SED in debug mode. In that case about 1GB additional memory is allocated by the process and once I reach a memory consumption of about 1.6GB I get either E1005 or DirectX "can't create texture - out of memory".

Re: E1005 - Help [Re: pegamode] #344749
10/20/10 11:27
10/20/10 11:27
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Oh wow, perhaps that explains it, those are the exact errors I recieve. Although I use the black arrow to run my game from SED and not the red one.

I can't get the error to appear in the published version no matter what(loaded 20 levels). But I can get it to appear in the development one everytime after 3 level loads.




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] #344752
10/20/10 11:51
10/20/10 11:51
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I just gave it a try ... I only get the error when using SED in debug mode (red arrow). When I use the test run button (the black one) the allocated memory is somewhat higher than in the published version, but far away from starting in debug mode.

Page 2 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