Out of memory in DA

For me the out of memory problem seems to be getting worse. Is this what others are seeing?

I haven't had the problem of the turn never completing lately though...

What I don't get is how can you keep developing new features when the game is still basically unstable? I've tried Cacheman, and I've dialed down the texture maps. The reality is this game has a major memory leak. Why is this taking so long to address?
11,488 views 25 replies
Reply #1 Top
Yep, same problem here. Constantly Out of Memory errors.. Its getting really annoying, especially when you just designed 10 awesome ships, and you cant save the game because of the out of memory error... Byebye!

1.5 didnt have this problem for me, nope it didnt. In fact i never ever had this problem before i updated to 1.6..
And i dont want another link to some stupid FAQ thread, they are no help. They just always state the obvious newbie stuff, "increase your pagefile size", "make sure you have more than 1gb ram"..

I want a solution / reason for why this is happening, and i want it fixed now. Thank you.
Reply #2 Top

Well, I fear that without a debug.err file and a smart exception report to get more clues about your problems, it will be impossible for the devs to fix the problem.

BTW, have you tried to turn off the "use enhanced ship rendering" option in the video tab? Have you tried to reduce the planet surface variety.

And what was the memory usage when you get the "out of memory error"?

Reply #3 Top
I've had the same problem, and sent the debug.err file to them three times. I can't send the smart exception file, as it never registers as having been a problem when this error happens. They have responded one time to my e-mail, that being to update to 1.6a when I had the problem with 1.6. That didn't help either. They haven't even acknowledged receiving my lastest e-mail regarding the problem. Has anyone looked at their debug.err and seen the last thing being a random event? That is what it has been almost every time for me.

Oh, and the page file is using 291MB out of 3705MB on mine.
Reply #4 Top

Oh, and the page file is using 291MB out of 3705MB on mine.

If this data is from the debug.err, it is the page file usage at the start of the game, not when it has crashed.

And what about changing some video options?

Reply #5 Top
Ill give it a try tonight with lowering the new options, enhanced ship rendering and the terrain variety slider. And i'll check the memory usage as well once i get that error
Reply #6 Top
Does anyone else have it happen where your desktop background gets wiped out afterward?

I wonder if that's a clue. Maybe I'll try setting my background to black to see if that saves some memory...

As far as sending data in, I know they know about the problem. There have been posts about / around this topic for a long time. It just seems to me that it's getting worse in the newer DA builds. The only thing that's really helped me is to avoid gigantic, and/or have fewer planets.

I just pray that they have some focus on fixing this, as compared to adding more features. (which seems to be the order of the day)

Reply #7 Top
gallagher118, are you playing in fullscreen or in windowed mode? Have you tried to change the "enhanced ship rendering" option and the "planet surface variety" option (which need the Heighmaps module)?
Reply #8 Top
I know I've turned down planet surface variety. I'll check the enhanced ship rendering next time i play.
Reply #9 Top
I have had the same memory-related crashes since before D.A. was released and all throughout its development. I have sent the debug.err file in on 3 occasions. They just can never resolve this issue. Stop blaming the user. I have turned off anti-aliasing, I have turned of ship textures. I have 2 GB of physical mmeory and very large page files for my partitions as was suggested. I have done my part. I do NOT think Stradock has a good handle on this. They have acknowledged the memory issues for ages do a little tweaking here and there , but it simply has NOT been adequate. Also I occasionally get nvidia driver crashes with a blue screen and screen dump. This also has been going on for ages. Even after Nvidia updated their driver 3 weeks ago, I still have the problem, though with reduced frequency. All this garbage is very unnerving. I expect the game to be stable at all times. This is not even close to being true. STOP blaming the users, its is NOT a user created problem , it is a development issue.
Reply #10 Top
I dont really have a problem with the crashes. I anticipate when the crashes are going to happen and save+quit+reload after the page file usage has been reduced. My computer only has 512 MB so I have to do this pretty frequently on Gig maps, and they take forever anyways, so not really any big losses. haha!

GalenEvil
Reply #11 Top

it is a development issue

But the devs don't have your computer to analyze the problem. Nor they have the time to play abundant gigantic game. So it can help them to track the problem if some workarounds can be found.

Reply #12 Top
Turning off enhanced ship rendering seems to help. (I didn't have any problems in a game session).

If I can play another 2-3 hours without a problem, then that will synch it for me. In which case stardock needs to look at enhanced ship rendering...

Thx for the suggestion Peace Phoenix.
Reply #13 Top
For me . increasing the size of my pagefile to 4096 which is 4 gig seemed to solve all errors i have had.
Reply #14 Top

For me . increasing the size of my pagefile to 4096 which is 4 gig seemed to solve all errors i have had.

I guess that you have vista since I think to remember that windows XP has a hard time working correctlty with more than 2GB.

Reply #15 Top
I've tried upping my pagefile, was 4gb-1 (doesn't support 4096mb but 4095 (hence the 4gb-1) on a different physical 7200rpm hard drive and now is 8gb-1 on two physical one at 10000rpm and one a 7200rpm without any changes, I also tried the readyboost with 4gb also but to no avail, only it takes more time to achieve the crash. I will try the tricks reported here, but I shouldn't had to do this...

Seem there's a huge memory leak somewhere. From my experiances, it seem located in the invasion screen and into the AI scripts...
Reply #16 Top
Seem there's a huge memory leak somewhere. From my experiances, it seem located in the invasion screen and into the AI scripts...


I've noticed that too. After an invasion often things seem to deteriate...

For me I've had less problems, but they're still there. I had thought it was gone, but now I've experienced them less and differently.

Hello stardock ?? Are you addressing this or not?
Reply #17 Top
These things are always under investigation, though when there's been no progress, there really isn't much to comment about it   
Reply #18 Top
I never had any "out of memory errors" until 1.6 came out. I emailed two smart exceptions logs in a few hours today because of those. I also have a screenshot of my memory usage when DA crashed like Win 95 alpha version. I have 3 Gigs of RAM and the game was not even using 2 Gigs of RAM! My computer was using a total of 2.14 Gigs of RAM when it crashed. I have programs that take up memory running in the background. Like I said I have never had this problem until 1.6 came out. I had my virtual RAM up to 30 Gigs, (30 Gigs!) at one time. Right now it is at 3369 MB. But the game seems to ignore my page file no matter what I set it at. This is silly because my notebook computer that has 1.5 Gigs of RAM and 256 MB Shared intel graphics memory and a weaker processor actually plays this game better than my desktop. My notebook never crashes or has a memory error. Did Stardock decide to increase framerate by making sure it ran on low end systems and screw the rest of us who have a somewhat reasonable and above system.

I keep having the same problem with the SINS beta 2. I'm seeing a pattern with this company that I don't like. Stardock says they listen to users and incorporate stuff into their game based on feedback. How about the big memory leak problem gets fixed first and then you make it better?

I don't have a web page so I can't import the picture of lack of memory use by this game into this post. This game now crashes every time I play. I can never finish a game on my desktop with a large galaxy. But I can finish a gigantic game on my notebook. Now that's really messed up. By the way I sent the picture with the exception and the debug and the previous autosave to the debugging email. It always runs out of memory while tyring to autosave at some point in the game. It's random in its timming. It will do that even when I only have 2-3 ships. Today it did it when I had like 16. So I'm guessing its not based on how many 3d models are running around.

Edit: By the way, my notebook plays the game on the highest graphic settings. It can get a little choppy with big fleets fighting it out but other than that it's fine.
Reply #19 Top

I never had any "out of memory errors" until 1.6 came out.

Have you tried to uncheck the "use enhanced ship engine" option to see any difference?

Reply #20 Top
I just wanted to says huge thanks for Kryo and Stardock (NOT sarcastic), their 1.6c build corrected the problem wonderfully.

To get it, see the sticky tread announcing the 1.6a build in the bug report. Near the end of the tread, the 1.6c link is provided.
Reply #21 Top
These things are always under investigation, though when there's been no progress, there really isn't much to comment about it


That's all I was looking for. I'm just hoping that stardock puts more effort into this than into new features. Thx for the reply Kryo.

Reply #22 Top
I'm sorry for blowing up in my post above. I was just so frustrated. It is weird how it will not have any memory errors on my notebook computer and then have problems on my desktop with the same mods and settings on both computers. I'll download the 1.6c and hopefully that will fix it. Thanks for the game that I have played more than any other.  

Reply #23 Top
I have the latest version of DA, 2 Gig of RAM, and I still hold my breath whenever I save a game (which I like to do often). It does not give me the "out of memory error" as often as before the latest fix, but it still happens. Usually, it does not crash the game (though it does delete the save file, if I'm saving over a previous save), so I am able to go back and save the game after waiting for the PC to do whatever it needs to do for a couple of minutes until the game "comes back." I also would put my two cents in to the devs to continue looking at this along with working on new features.

In all, though, many thanks for your great work on this product. It has not ceased to be a very enjoyable game!
Reply #24 Top
Yea! Not one memory crash yet. I was able to actually finish a game. But the computer grounded my face into the sidewalk and then ran me over with an industrial truck used to move tons of earth. Ouch...

I decided to go up in difficulty. I also had the most ships I have ever had. The ai had more.

Well, here I go again.
Reply #25 Top
I'm still suffering from the problem sadly, so I'm looking forward to the next update. If I just play DA then it's not as big a problem, but if I use my preferred mods, DA will always crash. If I use my mashed up mod (the HD mod, New Weapon Effects, Misc New Planets, and Custom Races from SW, ST, and B5) My game might not make it to turn 25 before the Out of Memory occurs.

I do really like this game and I'm not raving upset about not being able to play it, as I'm sure it's a difficult problem and is a pain, but it does bother me every time I see the box on my shelf. I'm just patiently waiting for the update, good luck.