Unable to load game, out of memory. (Full Version)

All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support



Message


Epsilon -> Unable to load game, out of memory. (3/28/2010 3:48:56 PM)

[image]http://img694.imageshack.us/img694/614/outofmemory.jpg[/image] 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. [image]http://img522.imageshack.us/img522/4422/systemne.jpg[/image] 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




Erik Rutins -> RE: Unable to load game, out of memory. (3/28/2010 4:04:49 PM)

Thanks, investigating this and Jim's report will be our next top priority.




JudgeDredd -> RE: Unable to load game, out of memory. (3/28/2010 7:13:12 PM)

quote:

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




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

I was more impressed with the 8 processor cores, personally. [X(]




OverlordCW -> RE: Unable to load game, out of memory. (3/28/2010 8:16:17 PM)

It's probably a Core i7 with HyperThreading, I have one too.




Gargantou -> RE: Unable to load game, out of memory. (3/28/2010 9:05:50 PM)

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.




Erik Rutins -> RE: Unable to load game, out of memory. (3/28/2010 9:16:45 PM)

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




Gargantou -> RE: Unable to load game, out of memory. (3/28/2010 9:29:21 PM)

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.




elliotg -> RE: Unable to load game, out of memory. (3/29/2010 8:45:07 AM)

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




Gargantou -> RE: Unable to load game, out of memory. (3/29/2010 2:50:23 PM)

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.




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

Thanks for trying. Figuring this out is a high priority for us.




Aurelian -> RE: Unable to load game, out of memory. (3/29/2010 11:29:06 PM)

quote:

ORIGINAL: JudgeDredd

quote:

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


[sm=00000116.gif][sm=00000116.gif]




Webbco -> RE: Unable to load game, out of memory. (3/29/2010 11:58:43 PM)

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




Volcano -> RE: Unable to load game, out of memory. (3/30/2010 1:36:23 AM)

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




Erik Rutins -> RE: Unable to load game, out of memory. (3/30/2010 1:41:17 AM)

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 -> RE: Unable to load game, out of memory. (3/30/2010 4:14:34 AM)

Can you guys confirm for me please which galaxy size you chose for these games?




malfid -> RE: Unable to load game, out of memory. (3/30/2010 8:17:58 AM)

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. 




Volcano -> RE: Unable to load game, out of memory. (3/30/2010 9:21:26 AM)

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




sbach2o -> RE: Unable to load game, out of memory. (3/30/2010 10:41:44 AM)

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.




Erik Rutins -> RE: Unable to load game, out of memory. (3/30/2010 3:17:52 PM)

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.




RViener -> RE: Unable to load game, out of memory. (3/30/2010 3:26:58 PM)

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




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

Thanks, please do upload it if you get a chance.




ucchigoro -> RE: Unable to load game, out of memory. (4/12/2010 9:53:38 AM)

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




Fishman -> RE: Unable to load game, out of memory. (4/12/2010 10:15:34 AM)

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.




elliotg -> RE: Unable to load game, out of memory. (4/12/2010 10:23:36 AM)

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.




ucchigoro -> RE: Unable to load game, out of memory. (4/12/2010 12:18:50 PM)

I're not really understood what you meant Fishman :D

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




BigWolfChris -> RE: Unable to load game, out of memory. (4/12/2010 2:09:58 PM)

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




ucchigoro -> RE: Unable to load game, out of memory. (4/12/2010 3:55:58 PM)

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




Fishman -> RE: Unable to load game, out of memory. (4/12/2010 4:38:59 PM)

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?




ucchigoro -> RE: Unable to load game, out of memory. (4/12/2010 5:01:50 PM)

As the person who opened this topic I have more memory than XP can handle.

Always when the backup is too large it crashes.




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.640625