[0.9.8] Crash on resume from suspend

This subforum contains all the issues which we already resolved.
Post Reply
agent86
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri May 30, 2014 12:11 pm
Contact:

[0.9.8] Crash on resume from suspend

Post by agent86 »

I can reproducibly crash the game by suspending my PC and then resuming. I do this while at work and while asleep so I generally see this a couple of times a day :)

The Windows crash report looks like:

Problem Event Name: APPCRASH
Application Name: Factorio.exe
Application Version: 0.0.0.0
Application Timestamp: 53480fbc
Fault Module Name: d3d9.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7c5a4
Exception Code: c0000005
Exception Offset: 00000000000b08b6
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 941a
Additional Information 2: 941abd67a2371689c46393fc57371c2b
Additional Information 3: a743
Additional Information 4: a743d69dbbc7d2e1609b303569dbf179

I can provide details of my setup or run additional tests if need be.

SilverWarior
Filter Inserter
Filter Inserter
Posts: 559
Joined: Mon Mar 04, 2013 9:23 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by SilverWarior »

When you susopend your computer Windows releases the handle to the graphics card and shuts it down. Shutting down the graphics card also causes the Vdieo memory to be cleared.
So in order for an application to corectly resume working after the computer is brought back from suspended state it must handle such event correctly.
Basically this means that application must reinitialize its graphical engine and load all neded graphics into Video memory before resuming its normal work. As far as I know Factorio doesen't do that which means that it will crash every time your computer goes into suspended state.

So my advice is to avoid puting your computer into suspended state while Factorio is running. If you are on laptop you might wanna change settings of what happnes when you close the lid so that computer won't go into suspended state as it is set by default. I'm a laptop user I have changed the settings so that nothing happens when I close the lid. Don't worry the computer will still poer off the LCD light and in most cases even shuts down the LCD screen entirely but the graphics card will still be processing things as normally.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by kovarex »

Similar thing happens when the game is minimised and it works properly, we just need to find the correct event for this as well.


kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by kovarex »

Hello, this has been fixed for (the upcoming release) 0.10.9

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by DaveMcW »

Still crashes for me in 0.10.9.

The "switch user" crash I linked above still happens in 0.10.9 too.

I am on Windows 7 x64.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by Rseding91 »

DaveMcW wrote:Still crashes for me in 0.10.9.

The "switch user" crash I linked above still happens in 0.10.9 too.

I am on Windows 7 x64.
It works perfectly for me; I can switch users and put the game to sleep while I'm in the middle of a loaded game and it resumes without any issues. Are you sure you're on 0.10.9?
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.9.8] Crash on resume from suspend

Post by DaveMcW »

Ok, I did a clean reinstall and sleep works now!

Switch user still does not.

Post Reply

Return to “Resolved Problems and Bugs”