Crash while saving

Post bug reports and ask for support here.

Moderators: Icemania, elliotg

Post Reply
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

Crash while saving

Post by RogerBacon »

I had another one of my "crash while saving the game" last night and I was so frustrated (it seems to only happen to me) that I was ready to trash the whole thing and uninstall DWU.
These crashes ONLY happen when saving and they've been with me since DWU came out. I've tried to figure out the cause but to no avail. It not memory, its not size. Last night was a 100 star 4x4 map and the game had barely begun. I just manually set my ship designs and some initial orders. I wanted to ssve the setup because I'd be doing some different things for testing and I didn't want to repeat everything. As soon as I click save As and select the filename, it crashed as it often does.
Here's the stack trace. If ANYONE has similar problems (Crash while saving) please let me know and maybe we can determine what our computers have in common.


System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark)
at System.Threading.Thread.Start(StackCrawlMark& stackMark)
at System.Threading.Thread.Start(Object parameter)
at DistantWorlds.Main.btnGameMenuSaveAs_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

My system is Windows 7 Home Premium
GeForce GTX 970
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
Kothyxaan
Posts: 54
Joined: Mon Feb 21, 2011 7:36 am

RE: Crash while saving

Post by Kothyxaan »

I wish I could help, but I'm not really that computer savvy.
Usually when I'm having some kind of game related computer problem (or any computer problem) I go through the usual browser searches, process of elimination... its amazing how many times I have fixed some problem this way; but it is blind luck and stubbornness (sort of like when you kick something that's broken and it starts to work again - don't recommend you try that one at home though).
Hope you get it fixed though.
User avatar
VPaulus
Posts: 3662
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Crash while saving

Post by VPaulus »

Make sure you are running the game as admin:

Open the game installation folder. Locate and select a file named "autorun.exe".
Press the right mouse button and select Properties.
Click on the Compatibility tab.
Tick the option Run this program as an administrator. Click on Apply and Ok

If you have the Steam version, please try also running Steam as administrator.
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Crash while saving

Post by RogerBacon »

ORIGINAL: VPaulus

Make sure you are running the game as admin:

Open the game installation folder. Locate and select a file named "autorun.exe".
Press the right mouse button and select Properties.
Click on the Compatibility tab.
Tick the option Run this program as an administrator. Click on Apply and Ok

If you have the Steam version, please try also running Steam as administrator.

Sadly that didn't help. :(
Its not a folder permissions issue, otherwise it would crash every time I tried to save it. It only crashes about 90% of the time and only after I've played for 15-30 minutes. If anyone else has experienced issues like this I would love to compare our system stats and try and determine a common causality.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
Kothyxaan
Posts: 54
Joined: Mon Feb 21, 2011 7:36 am

RE: Crash while saving

Post by Kothyxaan »

Eh... do you have more than one hard drive?
Has the hard drive you are saving to been given a maximum save file size?
I seem to remember there is a way to limit the size of files... Could be wrong though (might be getting it mixed up with trash can).
Also I presume you have checked the integrity of the hard rive and it working fine with no faulty blocks (or whatever they are called).
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Crash while saving

Post by RogerBacon »

ORIGINAL: Kothyxaan

Eh... do you have more than one hard drive?
Has the hard drive you are saving to been given a maximum save file size?
I seem to remember there is a way to limit the size of files... Could be wrong though (might be getting it mixed up with trash can).
Also I presume you have checked the integrity of the hard rive and it working fine with no faulty blocks (or whatever they are called).
Yeah, I've checked those things. I have two drives and I've set save locations on both and had the same results.
Last night I updated my video driver (with great effort). I will test tonight and see if it makes a difference. Sometimes outdated drivers can cause weird problems that seem unrelated to video.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
Blabsawaw22
Posts: 286
Joined: Fri Dec 05, 2014 10:21 am

RE: Crash while saving

Post by Blabsawaw22 »

I Don't think it's Ram but might as well run Memtest on your Ram too. Just for kicks.
Chris21wen
Posts: 7241
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: Crash while saving

Post by Chris21wen »

Resurected this.

Game crashing with out of memory problem as above and with 15G it shouldn't. It's been happening for a while and I'd assuming it something Microsoft has changed or it's the mod as it never used too. I've been attempting to isolate the problem and found that randomly the game doubles in save size taking a long time to save and load. In the pick I've only played about 10min between yesterday and today and as you can see gone from 45K to 90K. At some point if you keep playing and it doesn't crash, save size returns to
half.

It might be something to do with reloading in that if you don't exit the game completely the handles do not release the memory and you end up loading teo copies into memory etc. A guess?
Capture.JPG
Capture.JPG (27.14 KiB) Viewed 1108 times
Chris21wen
Posts: 7241
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: Crash while saving

Post by Chris21wen »

Capture.JPG
Capture.JPG (70.75 KiB) Viewed 1097 times
Here's the error I keep getting.
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

Re: Crash while saving

Post by Retreat1970 »

Something to do with the gravity well generator? Maybe baconmod's maybe the component. Did you change something? Just guessing. I play with Bacon's star grav wells off and I haven't had a crash. I know the star's grav well size is determined by adding the star's microwave radiation + xray radiation + solar radiation and maybe a star somewhere has too big of a number? Like I said just guessing.
Chris21wen
Posts: 7241
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: Crash while saving

Post by Chris21wen »

Retreat1970 wrote: Wed Aug 31, 2022 12:07 pm Something to do with the gravity well generator? Maybe baconmod's maybe the component. Did you change something? Just guessing. I play with Bacon's star grav wells off and I haven't had a crash. I know the star's grav well size is determined by adding the star's microwave radiation + xray radiation + solar radiation and maybe a star somewhere has too big of a number? Like I said just guessing.
it is the gravity well generator causing the problem. I even had one 3x the size it should be but the norm is just 2x.

I've tried observing the game as to exactly when it does it but short of saving after every move I've not succeeded so had to turn the function off, which is a pity.
Chris21wen
Posts: 7241
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: Crash while saving

Post by Chris21wen »

Spoke too early. Still saving at double size. Anybody got any idea why it doesn'r do it everytime.
jayman
Posts: 36
Joined: Fri Jul 14, 2023 12:39 pm

Re: Crash while saving

Post by jayman »

I know this is an old thread and nobody might be reading it anymore, but I recently had this same problem and I found what was causing it which might help somebody out there.

I've been playing DWU for ages with no problems, but last week it started to crash when saving games. I soon found what the problem was though, I had changed my anti-virus software from zonealarm to AVG because zonealarm hogs too many system resources, and it was AVG that was causing the problem. I now turn it off when playing the game and I've had no problems since.

Update: AVG was causing problems with other software as well, so I changed to avast but that was as much hassle (uses AVG code I think) so now I use bitdefender.
Post Reply

Return to “Tech Support”