Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Unable to load game, out of memory.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support >> Unable to load game, out of memory. Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Unable to load game, out of memory. - 3/28/2010 3:48:56 PM   
Epsilon

 

Posts: 81
Joined: 11/20/2009
Status: offline
This is starting to become really bothersome, when I can't expect my empire to continue on flourishing, but expect it to suddenly die due to memory error.

This is my system performance, as you can see I have plenty of ram (12gb) DDR3. I noticed the application loading all the pictures into memory upon execution... you're bound to run into 32bit register limits on a .net application this way. I might suggest a 64 bit binary for the those of us with the systems for it, and also for the future. Anyway the game is unplayable when it suddenly cannot load a savegame due to memory limitations.

here's my savegame
Post #: 1
RE: Unable to load game, out of memory. - 3/28/2010 4:04:49 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Thanks, investigating this and Jim's report will be our next top priority.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Epsilon)
Post #: 2
RE: Unable to load game, out of memory. - 3/28/2010 7:13:12 PM   
JudgeDredd


Posts: 8573
Joined: 11/14/2003
From: Scotland
Status: offline
quote:

This is my system performance, as you can see I have plenty of ram (12gb) DDR3.


_____________________________

Alba gu' brath

(in reply to Epsilon)
Post #: 3
RE: Unable to load game, out of memory. - 3/28/2010 7:20:04 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
I was more impressed with the 8 processor cores, personally.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to JudgeDredd)
Post #: 4
RE: Unable to load game, out of memory. - 3/28/2010 8:16:17 PM   
OverlordCW

 

Posts: 88
Joined: 3/28/2010
Status: offline
It's probably a Core i7 with HyperThreading, I have one too.

(in reply to Erik Rutins)
Post #: 5
RE: Unable to load game, out of memory. - 3/28/2010 9:05:50 PM   
Gargantou


Posts: 205
Joined: 4/28/2007
Status: offline
I get the same problem, I only got 2 gigs however.

Can't be bothered at this late hour to find a site to upload it too though.

Still, it's a real shame, up until being unable to load this game, I've been greatly enjoying this game, will now be waiting 'til this can be fixed until I start playing again.

_____________________________


(in reply to OverlordCW)
Post #: 6
RE: Unable to load game, out of memory. - 3/28/2010 9:16:45 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Gargantou,

When you have time, please upload your save per the instructions pinned to the top of this sub-forum. We'd really like to take a look and see what is causing the problem so we can fix it ASAP.

Regards,

- Erik

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Gargantou)
Post #: 7
RE: Unable to load game, out of memory. - 3/28/2010 9:29:21 PM   
Gargantou


Posts: 205
Joined: 4/28/2007
Status: offline
As I deleted the ZIP I had made of the save earlier, I unwittingly deleted the original save too. Boy was my face red when I realized.

But I will start a new game tomorrow, and if I encounter the same bug I will upload it, probably via a third-party site though because I'm not big on installing an FTP program just for uploading the savegame.

_____________________________


(in reply to Erik Rutins)
Post #: 8
RE: Unable to load game, out of memory. - 3/29/2010 8:45:07 AM   
elliotg


Posts: 3597
Joined: 9/10/2007
Status: offline
While we look at this one, here's something you could try in the meantime:

1. Exit DW completely 2. Restart DW 3. Then try to load the game again

(in reply to Epsilon)
Post #: 9
RE: Unable to load game, out of memory. - 3/29/2010 2:50:23 PM   
Gargantou


Posts: 205
Joined: 4/28/2007
Status: offline
I did that with my save a total of three times, I even tried a complete reboot of my PC, terminated all not-necessary applications to conserve as much memory as possible, but it still gave me the same result.

_____________________________


(in reply to elliotg)
Post #: 10
RE: Unable to load game, out of memory. - 3/29/2010 10:17:55 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Thanks for trying. Figuring this out is a high priority for us.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Gargantou)
Post #: 11
RE: Unable to load game, out of memory. - 3/29/2010 11:29:06 PM   
Aurelian

 

Posts: 3916
Joined: 2/26/2007
Status: offline
quote:

ORIGINAL: JudgeDredd

quote:

This is my system performance, as you can see I have plenty of ram (12gb) DDR3.



(in reply to JudgeDredd)
Post #: 12
RE: Unable to load game, out of memory. - 3/29/2010 11:58:43 PM   
Webbco


Posts: 682
Joined: 2/6/2010
Status: offline
Haha. I've never seen that before. Actually there's another guy in this forum who has 8 terrabytes or something. Who was that guy?!

(in reply to Aurelian)
Post #: 13
RE: Unable to load game, out of memory. - 3/30/2010 1:36:23 AM   
Volcano

 

Posts: 52
Joined: 3/25/2010
From: France
Status: offline
I have just had the same error message while trying to load a quite advanced saved game.

I join a DxDiag report and the concerned saved game on your FTP (Volcano_unable_to_load_march30).

Attachment (1)

(in reply to Webbco)
Post #: 14
RE: Unable to load game, out of memory. - 3/30/2010 1:41:17 AM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Thank you for the report, Volcano.

Looking at your DxDiag, your audio drivers seem to be from 2005 so I would definitely update those. Graphics drivers are from early 2009 so I would update those as well. It's good to keep these up to date, though I doubt these caused the issue.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Volcano)
Post #: 15
RE: Unable to load game, out of memory. - 3/30/2010 4:14:34 AM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Can you guys confirm for me please which galaxy size you chose for these games?

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Erik Rutins)
Post #: 16
RE: Unable to load game, out of memory. - 3/30/2010 8:17:58 AM   
malfid

 

Posts: 30
Joined: 3/20/2010
Status: offline
I have now experienced the same problem on a 1,400 star galaxy (the game crashed because it ran out of memory). My system is an 8gb DDR3 RAM, i7 quad-core (2.80ghz). I cannot upload the save, because I foolishly did not make one, before the crash. That crash occurred around the third-point of the game, when much of the galaxy had been explored by the various empires (12 loaded at start-up) and the average colony count was in the high teens. 

(in reply to Erik Rutins)
Post #: 17
RE: Unable to load game, out of memory. - 3/30/2010 9:21:26 AM   
Volcano

 

Posts: 52
Joined: 3/25/2010
From: France
Status: offline
In my game I was on a 700 stars galaxy.

And for the graphic drivers, I have tried to install the latest drivers, but the installation program tells me it hasn't detected compatible drivers for my hardware, though it must have, because I have checked the list of compatible hardware for the drivers...

That's really the sort of thing that gives you the desire to hang yourself...

(in reply to malfid)
Post #: 18
RE: Unable to load game, out of memory. - 3/30/2010 10:41:44 AM   
sbach2o

 

Posts: 378
Joined: 3/26/2010
Status: offline
Just a (more or less random) note:

The DW application is built on the .NET framework. When huge amounts of data are handled in memory, one has to be careful about the (otherwise carefree) memory handling. I've seen instances where the dynamic handling of strings reached its limit. If you try to increase a string to beyond some ~150 MB (or maybe double of that , I don't remember whether that limit was bytes or characters), you run afoul of an out of memory error. This is not the system running out of memory, but the .NET library reaching a limit for a certain operation.

My guess (confirmed by the example below) is, this may also apply to other dynamic structures like certain collection types, which in turn would be a candidate for DW (I really don't think it handles strings that long).

Here is a code snippet that will produce an 'out of memory exception' after using up 'only' 0.5 GB of virtual memory. I am sure one can produce examples that reach that with even less investment:


    struct bla

// 160 bytes of data

    {



  long a1, a2, a3, a4, a5, a6, a7, a8, a9, a10;



  long b1, b2, b3, b4, b5, b6, b7, b8, b9, b10;



  public bla(int i)



  {





a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = a10 = 0;





b1 = b2 = b3 = b4 = b5 = b6 = b7 = b8 = b9 = b10 = i;



  }

    }



 private void crashme()

    {



  // pre allocate a huge dump, we're interested in what happens beyond that.



  Dictionary<string, bla> dump = new Dictionary<string, bla>(500000);





for (int i = 0; i < 100000000; ++i)



  {





try





{





    dump.Add(i.ToString(), new bla(i));





}





catch (Exception ee)





{





    MessageBox.Show(this, String.Format("adding to the dump crashed at {0} with excpetion {1}", i, ee.Message));





    break;





}



  }

    }



Edit: Better example that crashed with less memory use.

In .Net applications you have to be very careful wherever huge arrays are handled that are dynamically expanded. That includes library-internal handling of arrays as it happens with string in, for example:


// string type uses a character array internally that is dynamically expanded while reading in a text file.

// Will crash beyond ~80 MB

string fileContents = File.ReadAllText("c:\hugetextfile.txt");   


To 'fix' the first example, you'd need to store references in the dictionary (and its internal value array). Change 'struct' to 'class' and the app will consume practically all available memory before crashing.

< Message edited by sbach2o -- 3/30/2010 11:15:11 AM >

(in reply to Volcano)
Post #: 19
RE: Unable to load game, out of memory. - 3/30/2010 3:17:52 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Thank you for the reports and suggestion. Elliot is focusing on this issue.

It appears that in some cases (I'm guessing long sandbox style games though I'd love to have confirmation on that from those who have experienced this) that enough "stuff" is being generated in the galaxy to get past what we thought were pretty generous limits on the addressable memory. We hadn't hit this in testing even with our "big" developed test games but it's obviously out there and perhaps we did something later in development that increased the memory usage somehow. It's a priority now to pare things down to allow these saves to open and these games to continue as well as prevent this reoccurring.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to sbach2o)
Post #: 20
RE: Unable to load game, out of memory. - 3/30/2010 3:26:58 PM   
RViener

 

Posts: 123
Joined: 7/8/2004
Status: offline
Erik, I got the same mesage on 1400 star game with 20 civs with the size of the save >60 megs. I was able to save and reload. I'm now greater than 70 megs and working. I'll try to send it. Bob Viener

(in reply to Erik Rutins)
Post #: 21
RE: Unable to load game, out of memory. - 3/30/2010 6:40:31 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Thanks, please do upload it if you get a chance.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to RViener)
Post #: 22
RE: Unable to load game, out of memory. - 4/12/2010 9:53:38 AM   
ucchigoro

 

Posts: 4
Joined: 4/12/2010
Status: offline
Hello

It happens that I have the same problem, but I is not seen a solution.

This is the third party that makes me ca. It's quite annoying to be condemned to play only with the birth of empire.

I try to search the forum, but I're not seen a solution, he said the problem was found?

ps: Sorry for my English, I'm not too good: p

(in reply to Erik Rutins)
Post #: 23
RE: Unable to load game, out of memory. - 4/12/2010 10:15:34 AM   
Fishman

 

Posts: 795
Joined: 4/1/2010
Status: offline
This issue can happen if you attempt to load a game after closing a current game. The game will load fine if you reboot the program, but since the OLD game should have been deallocated after closing it to the main menu, the game must be leaking a large chunk of memory somewhere. The memory leak is probably what is causing games to explode.

(in reply to ucchigoro)
Post #: 24
RE: Unable to load game, out of memory. - 4/12/2010 10:23:36 AM   
elliotg


Posts: 3597
Joined: 9/10/2007
Status: offline
quote:

ORIGINAL: ucchigoro Hello

It happens that I have the same problem, but I is not seen a solution.

This is the third party that makes me ca. It's quite annoying to be condemned to play only with the birth of empire.

I try to search the forum, but I're not seen a solution, he said the problem was found?

ps: Sorry for my English, I'm not too good: p
Hi ucchigoro. Are you using the most recent version 1.0.3? There are a lot of optimizations in this version that greatly reduce memory consumption.

(in reply to ucchigoro)
Post #: 25
RE: Unable to load game, out of memory. - 4/12/2010 12:18:50 PM   
ucchigoro

 

Posts: 4
Joined: 4/12/2010
Status: offline
I're not really understood what you meant Fishman :D

Elliotg, yes it is even a party launched in the patch 1.0.3

(in reply to elliotg)
Post #: 26
RE: Unable to load game, out of memory. - 4/12/2010 2:09:58 PM   
BigWolfChris


Posts: 634
Joined: 3/31/2010
Status: offline
Fishman means, if you're currently playing a game and wish to use a saved game, close the game, then launch it again

Also, have you tried playing with less stars?  it might not be as fun for you, but it will allow you the opportunity to go further into the game at least

_____________________________

AMD Ryzen 7 2700X 8 Core @3.7GHz
2x16 GB Vengeance LPX 2666MHz RAM
MSI RTX 2070 Armor 8G
SSD Drive

(in reply to ucchigoro)
Post #: 27
RE: Unable to load game, out of memory. - 4/12/2010 3:55:58 PM   
ucchigoro

 

Posts: 4
Joined: 4/12/2010
Status: offline
Ah ok, yes even restarting the game continues to crash.

This solution is just to jump further back, to get more than 70MB, backup eventually crash, when there is too much information recorded above. It's just a matter of time unfortunately.

But I no longer have the courage to repeat parts so I can finish them: (

(in reply to BigWolfChris)
Post #: 28
RE: Unable to load game, out of memory. - 4/12/2010 4:38:59 PM   
Fishman

 

Posts: 795
Joined: 4/1/2010
Status: offline
Yes, then you're really running out of memory. The odd thing is why it runs out of memory at around 1 GB, when a 32bit program, unmodified, is allowed up to 2. Where's the other half of the RAM going?

(in reply to ucchigoro)
Post #: 29
RE: Unable to load game, out of memory. - 4/12/2010 5:01:50 PM   
ucchigoro

 

Posts: 4
Joined: 4/12/2010
Status: offline
As the person who opened this topic I have more memory than XP can handle.

Always when the backup is too large it crashes.

(in reply to Fishman)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support >> Unable to load game, out of memory. Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.234