Page 1 of 1
[0.9.8] Crash on resume from suspend
Posted: Fri May 30, 2014 12:14 pm
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.
Re: [0.9.8] Crash on resume from suspend
Posted: Fri May 30, 2014 3:01 pm
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.
Re: [0.9.8] Crash on resume from suspend
Posted: Fri May 30, 2014 7:19 pm
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.
Re: [0.9.8] Crash on resume from suspend
Posted: Thu Jul 31, 2014 8:25 pm
by DaveMcW
Re: [0.9.8] Crash on resume from suspend
Posted: Wed Aug 27, 2014 1:53 pm
by kovarex
Hello, this has been fixed for (the upcoming release) 0.10.9
Re: [0.9.8] Crash on resume from suspend
Posted: Fri Aug 29, 2014 8:31 pm
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.
Re: [0.9.8] Crash on resume from suspend
Posted: Sat Aug 30, 2014 11:21 pm
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?
Re: [0.9.8] Crash on resume from suspend
Posted: Sun Aug 31, 2014 12:52 am
by DaveMcW
Ok, I did a clean reinstall and sleep works now!
Switch user still does not.