Factorio crashes upon installing updates

This subforum contains all the issues which we already resolved.
User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Factorio crashes upon installing updates

Post by metzyn »

I think I've reported this issue in the past somewhere, although I cannot find that post so I'm making a new one since the issue is still present.

After installing an update Factorio will crash and Windows displays the following message:
Factorio.exe has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
After the crash Factorio starts right up again. Normally, this isn't a big deal but I've not updated since 0.9.2. So I had to update several times before I finally reached the latest version. Just a tad annoying having to crash a few times to finish all the updates. Both of my computers experience this issue, both on Windows 8 and 8.1.

Thanks for the work you guys do!
Factorio Modder
Solar Expansion

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Factorio crashes upon installing updates

Post by cube »

This definitely shouldn't happen.

Now a little bit tricky question: what was the last version of factorio where the crash appeared? I mean -- if you were updating from 0.9.2 to 0.9.6 and everything went smoothly, the whole update would be performed by 0.9.2. If it crashed during the update, it's possible that you restarted it and the rest of the update was done by 0.9.4 ...
I'm asking this, because we added some updater related fixes and significantly improved the update error messages in 0.9.4.

Also, did you change any files in base or core?
I have no idea what I'm talking about.

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: Factorio crashes upon installing updates

Post by metzyn »

This crash happens with every single version I have ever used since auto-updating was put into place. Well, not sure if I started playing before or after that but every time I have updated when prompted this occurs. I've made no changes to the code at all. This happens both with the zipped and installed versions of the game.

The game never crashes during the update, it happens right at the very end when the progress bar fills up. It shows that it's updating the package 0.9.2 to 0.9.3 and then crashes... then I have to update as 0.9.3 to 0.9.4 package, and so on. I earliest I can remember this happening was around 0.6.x.
Factorio Modder
Solar Expansion

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

Re: Factorio crashes upon installing updates

Post by SilverWarior »

I belive I encountered something similar if not the same when updating some version in 0.8.x branch.
I never managed to recreate it but I suspect that ti might be caused by Wundows UAC (it happened soon after Windows UAC promtet me that Factorio requests elevated permision in order to restart itself).

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Factorio crashes upon installing updates

Post by cube »

Now that 0.10.0 has at least some logging -- once the 0.10.1 is released try updating (but make sure you are startnig at 0.10.0) again and if it crashes, upload the factorio-current.log it should have some useful info. The file is placed in the write data directory, that is next to the saves directory.
I have no idea what I'm talking about.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Factorio crashes upon installing updates

Post by cube »

Does this still happen? If it does, then please post a log file.
I have no idea what I'm talking about.

renea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Sep 07, 2014 9:36 am
Contact:

Re: Factorio crashes upon installing updates

Post by renea »

This is still happening, the update does succeed, it just does not look nice.

what does it look like to the user:
- factorio starts and prompts to install update.
- User accepts and download is done.
- Windows UAC prompts for elevated privileges ('do you want to allow factorio to make changes to your computer')
- just after that the factorio screen greys out (like a non resposive application is) and prompt is shown; 'factorio has run into a problem and needs to close'
- after close factorio restarts with the updated version.

I've seen this for all updates that could be done automatically from 0.9.8 (?, the last 0.9 version at least).
No mods are installed.

Factorio log looks clean to me:

Code: Select all

11:16:35 Info None: 2014:09:07; Factorio 0.10.8 (Build 10621, win64)
11:16:36 Info Mods: Loading mod core 0.0.0 
11:16:36 Info Mods: Loading mod base 0.10.8 
11:16:37 Info Atlas: Initial atlas bitmap size is 16384
11:16:37 Info Atlas: Created atlas bitmap 16384x5798
11:17:01 Info Updater: Downloading https://www.factorio.com/updater/get-available-versions?username=renea&token=<private>&apiVersion=2
11:17:02 Notice Updater: 1 packages available to download (experimental updates enabled).
11:17:05 Info Updater: Downloading https://www.factorio.com/updater/get-download-link?username=renea&token=<private>&package=core-win64&from=0.10.8&to=0.10.9&isTarget=true&apiVersion=2
11:17:05 Info Updater: Downloading https://updates-factorio-com.s3.amazonaws.com/core-win64-0.10.8-0.10.9-update.zip?Expires=1410081449&AWSAccessKeyId=AKIAJDOJU3RLQYEZDRBA&Signature=fnMi3BMu0%2BEVk2kr%2F3jafL01NM8%3D to C:/Users\Rene\AppData\Roaming\Factorio\temp\core-win64-0.10.8-0.10.9-update.zip
11:17:13 Info Updater:  => 200
11:18:09 Info None: 2014:09:07; Factorio 0.10.8 (Build 10621, win64)
11:18:09 Info Updater: Waiting for parent process to close (pid 4700)
11:18:38 Info Updater: Starting updater
11:18:38 Info Updater: Applying update C:/Users/Rene/AppData/Roaming/Factorio/temp/core-win64-0.10.8-0.10.9-update.zip
11:18:38 Info Updater: Starting updated game
11:18:38 Info None: Goodbye
11:18:39 Info None: 2014:09:07; Factorio 0.10.9 (Build 10689, win64)
11:18:39 Info Mods: Loading mod core 0.0.0 
11:18:39 Info Mods: Loading mod base 0.10.9 
11:18:50 Info Atlas: Initial atlas bitmap size is 16384
11:18:50 Info Atlas: Created atlas bitmap 16384x5798
11:19:02 Info Updater: Downloading https://www.factorio.com/updater/get-available-versions?username=renea&token=<private>&apiVersion=2
11:19:03 Notice Updater: 0 packages available to download (experimental updates enabled).
Windows eventlog:

Code: Select all

- System 
  - Provider 
   [ Name]  Application Error 
  - EventID 1000 
   [ Qualifiers]  0 
   Level 2 
   Task 100 
   Keywords 0x80000000000000 
 
  - TimeCreated 
   [ SystemTime]  2014-09-07T09:18:10.000000000Z 
   EventRecordID 66319 
   Channel Application 
   Computer Rene-PC 
   Security 

- EventData 
   Factorio.exe version 0.0.0.0 timestamp 53ee2d0c 
   Factorio.exe version 0.0.0.0 timestamp 53ee2d0c 
   exception code c0000005 
   exception offset 000000000058ff2d 
   process ID 125c 
   starttime of application with fault 01cfca7c6bd0b081 
   path to application with fault C:\Program Files\Factorio\bin\x64\Factorio.exe 
   path to module  with fault  C:\Program Files\Factorio\bin\x64\Factorio.exe 
Computer info:
Windows 7 Home Premium 64 bit, automatic updates are on, UAC set to standard.

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

Re: Factorio crashes upon installing updates

Post by kovarex »

Well, this was supposed to be fixed in 0.10.9 so if the fix works, it will affact the update 0.10.9 -> 0.10.10

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Factorio crashes upon installing updates

Post by cube »

To clarify: we are hoping this got fixed with the upgrade of allegro in 0.10.9 and it needs more testing during the next update.

renea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Sep 07, 2014 9:36 am
Contact:

Re: Factorio crashes upon installing updates

Post by renea »

Auto updated 0.10.9 -> 0.10.10, issue still occurs.

Factorio log snippet:

Code: Select all

16:52:30 Info Updater: Downloading https://updates-factorio-com.s3.amazonaws.com/core-win64-0.10.9-0.10.10-update.zip?Expires=1410533578&AWSAccessKeyId=AKIAJDOJU3RLQYEZDRBA&Signature=K7%2FQR7f%2BOgRkI0EiOY8FUmQeUHg%3D to C:/Users\Rene\AppData\Roaming\Factorio\temp\core-win64-0.10.9-0.10.10-update.zip
16:52:38 Info Updater:  => 200
16:52:41 Info None: 2014:09:12; Factorio 0.10.9 (Build 10689, win64)
16:52:41 Info Updater: Waiting for parent process to close (pid 4576)
16:52:47 Info Updater: Starting updater
16:52:47 Info Updater: Applying update C:/Users/Rene/AppData/Roaming/Factorio/temp/core-win64-0.10.9-0.10.10-update.zip
16:52:48 Info Updater: Starting updated game
16:52:48 Info None: Goodbye
16:52:48 Info None: 2014:09:12; Factorio 0.10.10 (Build 10743, win64)
16:52:49 Info Mods: Loading mod core 0.0.0 
16:52:49 Info Mods: Loading mod base 0.10.10 
Windows event log in dutch ( error is at 16:52:44)

Code: Select all

Naam van toepassing met fout: Factorio.exe, versie: 0.0.0.0, tijdstempel: 0x54006586   (application with error)
Naam van module met fout: nvd3dumx.dll, versie: 9.18.13.3523, tijdstempel: 0x5315b3c5  (module with error)
Uitzonderingscode: 0xc0000005    (exception code)
Foutoffset: 0x000000000076ffa2
Id van proces met fout: 0x11e0
Starttijd van toepassing met fout: 0x01cfce991b6e6298
Pad naar toepassing met fout: C:\Program Files\Factorio\bin\x64\Factorio.exe
Pad naar module met fout: C:\windows\system32\nvd3dumx.dll
If you want I'm willing to test (but I can understand if you want to keep the issue in-house).

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

Re: Factorio crashes upon installing updates

Post by Rseding91 »

renea wrote:Auto updated 0.10.9 -> 0.10.10, issue still occurs.

Factorio log snippet:

Code: Select all

16:52:30 Info Updater: Downloading https://updates-factorio-com.s3.amazonaws.com/core-win64-0.10.9-0.10.10-update.zip?Expires=1410533578&AWSAccessKeyId=AKIAJDOJU3RLQYEZDRBA&Signature=K7%2FQR7f%2BOgRkI0EiOY8FUmQeUHg%3D to C:/Users\Rene\AppData\Roaming\Factorio\temp\core-win64-0.10.9-0.10.10-update.zip
16:52:38 Info Updater:  => 200
16:52:41 Info None: 2014:09:12; Factorio 0.10.9 (Build 10689, win64)
16:52:41 Info Updater: Waiting for parent process to close (pid 4576)
16:52:47 Info Updater: Starting updater
16:52:47 Info Updater: Applying update C:/Users/Rene/AppData/Roaming/Factorio/temp/core-win64-0.10.9-0.10.10-update.zip
16:52:48 Info Updater: Starting updated game
16:52:48 Info None: Goodbye
16:52:48 Info None: 2014:09:12; Factorio 0.10.10 (Build 10743, win64)
16:52:49 Info Mods: Loading mod core 0.0.0 
16:52:49 Info Mods: Loading mod base 0.10.10 
Windows event log in dutch ( error is at 16:52:44)

Code: Select all

Naam van toepassing met fout: Factorio.exe, versie: 0.0.0.0, tijdstempel: 0x54006586   (application with error)
Naam van module met fout: nvd3dumx.dll, versie: 9.18.13.3523, tijdstempel: 0x5315b3c5  (module with error)
Uitzonderingscode: 0xc0000005    (exception code)
Foutoffset: 0x000000000076ffa2
Id van proces met fout: 0x11e0
Starttijd van toepassing met fout: 0x01cfce991b6e6298
Pad naar toepassing met fout: C:\Program Files\Factorio\bin\x64\Factorio.exe
Pad naar module met fout: C:\windows\system32\nvd3dumx.dll
If you want I'm willing to test (but I can understand if you want to keep the issue in-house).
That looks like a graphics card crash (nvd3dumx.dll) - do you have any other computer you could test updating from 0.10.9 -> 0.10.10 on? Or, could you check if you have the latest graphics drivers for your computer?
If you want to get ahold of me I'm almost always on Discord.

Boogieman14
Filter Inserter
Filter Inserter
Posts: 770
Joined: Sun Sep 07, 2014 12:59 pm
Contact:

Re: Factorio crashes upon installing updates

Post by Boogieman14 »

I'm experiencing a crash when updating from 0.10.9 to 0.10.10 as well.
factorio-current.log
Then Windows asks if I want to allow factorio.exe to make changes to the system, then I get a Windows "Factorio.exe has stopped working" message with the following details:
Windows error
I'll be trying some other things and update this post if I come across any more useful information.

*edit* it actually did update correctly, it just simply crashed right after.
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.

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

Re: Factorio crashes upon installing updates

Post by DaveMcW »

Crashed for me too.

renea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Sep 07, 2014 9:36 am
Contact:

Re: Factorio crashes upon installing updates

Post by renea »

I updated my card a few weeks ago, so the drivers were already pretty new. As it is a bit older video card (Asus Geforce GT640) I'd expect the bugs to be out of the drivers. There were indeed newer drivers available so I updated to be sure.

This is where it gets interesting. For these tests I did the following as preparation:
Uninstalled factorio via control panel.
Deleted Program files\factorio and AppData\Roaming\Factorio folders.
Install Setup_Factorio_x64_0.10.9.exe
Start factorio,
Configure experimental updates to yes, set language to english.
Close Factorio.

Test 1: Auto update on apllication start:
Start Factorio, enter account info, allow update:
module in error is factorio.exe exception: 0xc0000005 error offset: 0x0000000000595bad

Test 2: Auto update on apllication start, administrator rights
Start Factorio as administrator, enter account info, allow update:
No fault.

Test 3: Update from about screen
Start Factorio, select ask me later for update:
Go to about -> Check updates.
enter account info and allow update.
module in error is nvd3dumx.dll, version: 9.18.13.4052, exception: 0xc0000005 error offset: 0x000000000079f3f2

roothorick
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Mon Aug 11, 2014 5:22 am
Contact:

Re: Factorio crashes upon installing updates

Post by roothorick »

Confirmed still present in 0.10.11.

If I were to speculate it may have something to do with not closing the D3D context properly.

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

Re: Factorio crashes upon installing updates

Post by Rseding91 »

roothorick wrote:Confirmed still present in 0.10.11.

If I were to speculate it may have something to do with not closing the D3D context properly.
Do you have User Account Control active (UAC)?
If you want to get ahold of me I'm almost always on Discord.

renea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Sep 07, 2014 9:36 am
Contact:

Re: Factorio crashes upon installing updates

Post by renea »

Update 0.10.10 -> 0.10.11 worked without error message for me.
UAC is enabled and I did get the (expected) prompt.
But no 'application has stopped working.

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

Re: Factorio crashes upon installing updates

Post by DaveMcW »

0.10.10 to 0.10.11 worked for me too. :)

BurnHard
Filter Inserter
Filter Inserter
Posts: 519
Joined: Mon Oct 21, 2013 5:08 pm
Contact:

Re: Factorio crashes upon installing updates

Post by BurnHard »

0.10.9 to 0.10.11 worked for me too withouth this "after-update-crash". Error occured on every previous updates I could remember.

EJlol
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 09, 2014 9:51 am
Contact:

Re: Factorio crashes upon installing updates

Post by EJlol »

I still did get an error while updating, though it is different now. I updated from 0.10.11 to 0.10.12 on Windows 8.1 64bit.

The error I got is:
Image

Translated it says:
boost::filesystem::remove: The process does not have access to the file cause it is already being used by another process
After restarting factorio.exe the updateprocess did work however.

Post Reply

Return to “Resolved Problems and Bugs”