[13.11] [Pending] Game hangs after clicking the save game button

Things that has been reported already before.
Post Reply
Everspace
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jul 28, 2016 5:28 am
Contact:

[13.11] [Pending] Game hangs after clicking the save game button

Post by Everspace »

Reproduction steps:
  • Load game
  • Go to game menu.
  • Press the save button
After I press the save button, the window becomes unresponsive. When trying to right click and close in the taskbar, the taskbar icon starts flashing, but doesn't close and the window turns white mostly, with small grey lines that look like the edges of a window. I must task-manager and kill the process.

Notes:
  • I do not see the save menu after I click. It is only the Game menu, and the button is in it's pressed or hovered appearance.
  • Autosave works fine.
  • I can load games. I play mostly through autosaves. (I'm only playing peaceful at the moment...)
  • I experienced similar behaviour in stable, although I could see the save menu.
  • Typically I can save right after generating a world. Saves with any sort of stuff going on cause the problem. Going any much further than a couple of burner drills kills it.
  • This continues to happen after I delete local content, and save games/config, and start from scratch.
  • While hung, CPU is fluctuating at around ~12%. Memory is stable.
  • My User directory is not on my C:/ drive but is linked to a different place and drive.
Here is my log, I've also attached my Appdata folder.

Code: Select all

   0.001 2016-07-27 22:55:02; Factorio 0.13.11 (build 23577, win64, steam)
   0.001 Operating system: Windows 10 
   0.001 Program arguments: "Z:\SteamLibrary\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: Z:/SteamLibrary/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/aabon/AppData/Roaming/Factorio
   0.001 Binaries path: Z:/SteamLibrary/steamapps/common/Factorio/bin
   0.020 Graphics options: [FullScreen: true] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [Screen: 0] [DXT: false]
   0.021 Available display adapters: 2
   0.022  [0]: \\.\DISPLAY8 - AMD Radeon R9 200 Series {0x8080005, [0,0], 1920x1080, 32bit, 60Hz}
   0.022  [1]: \\.\DISPLAY9 - AMD Radeon R9 200 Series {0x80001, [-1366,303], 1366x768, 32bit, 60Hz}
   0.022 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.533 Initialised OpenGL:[0] AMD Radeon R9 200 Series; driver: 4.5.13441 Compatibility Profile Context 16.200.1035.1001
   0.575 Desktop composition is active.
   0.775 Loading mod core 0.0.0 (data.lua)
   0.783 Loading mod base 0.13.11 (data.lua)
   0.922 Checksum for core: 3471280900
   0.922 Checksum for mod base: 2556737699
   1.592 Initial atlas bitmap size is 16384
   1.598 Created atlas bitmap 16384x9326
   1.599 Created atlas bitmap 4096x968
  10.381 Sprites loaded
  10.381 Convert atlas 4096x968 to: trilinear-filtering 
  10.449 Loading sounds...
  12.553 Custom inputs active: 0
  12.610 Factorio initialised
  26.317 Loading map C:/Users\aabon\AppData\Roaming\Factorio\saves\_autosave3.zip
  26.411 Info Scenario.cpp:127: Map version 0.13.11-0
  27.522 Checksum for script C:/Users/aabon/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
Attachments
Appdata_Roaming_Factorio.zip
Appdata folder.
(42.19 MiB) Downloaded 97 times

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [13.11] Game hangs after clicking the save game button

Post by Klonan »

Thanks for the report,

I think this is related to NTFS junctions or something,
Can you confirm that it doesn't happen if you save to a local directory?

Can you download the .zip version from here:
https://www.factorio.com/download/experimental

Which saves in the same directory as the installation

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [13.11] Game hangs after clicking the save game button

Post by posila »

Thank you for very nice bug report.
Everspace wrote:My User directory is not on my C:/ drive but is linked to a different place and drive.
I think this is causing the issue. I don't remember hangs being reported, but there are reports of crashes when saving to path with linked directories in it.

We don't have fix yet, but there is workaround.
Open config.ini in %APPDATA%\Factorio\config\ and the first three lines are

Code: Select all

[path]
read-data=__PATH__system-read-data__
write-data=__PATH__system-write-data__
Change write-data to actual path to Factorio directory in AppData.
For example, lets say my %APPDATA% directory is C:\Users\posila\AppData\Roaming and I have linked C:\Users to D:\data. Then I would change config.ini like this:

Code: Select all

write-data=D:\data\posila\AppData\Roaming\Factorio
Note: You can use write-data to redirect Factorio save and mod folder wherever you want. But, you have to set Factorio launch options in Steam to

Code: Select all

--config <full-path-to-config.ini>
so that the game finds the config. Also moving saves out of AppData will prevent Steam Cloud to synchronize them.

Everspace
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jul 28, 2016 5:28 am
Contact:

Re: [13.11] Game hangs after clicking the save game button

Post by Everspace »

Klonan wrote:Can you confirm that it doesn't happen if you save to a local directory?

Can you download the .zip version from here:
https://www.factorio.com/download/experimental

Which saves in the same directory as the installation
I opened up on my desktop, and then generated a new world and saved. The game is hanging with the save progress bar 100%. The save has been generated and is in the saves directory. I have attached it.
Making a save
Making a save
Hang on Desktop.jpg (274.12 KiB) Viewed 2318 times

Code: Select all

   0.001 2016-07-28 08:50:56; Factorio 0.13.11 (build 23577, win64, alpha)
   0.001 Operating system: Windows 10 
   0.001 Not rotating logs.
   0.001 Program arguments: "C:\Users\aabon\Desktop\Factorio_0.13.11\bin\x64\factorio.exe" 
   0.001 Read data path: C:/Users/aabon/Desktop/Factorio_0.13.11/data
   0.001 Write data path: C:/Users/aabon/Desktop/Factorio_0.13.11
   0.001 Binaries path: C:/Users/aabon/Desktop/Factorio_0.13.11/bin
   0.020 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [Screen: 255] [DXT: false]
   0.023 Available display adapters: 2
   0.023  [0]: \\.\DISPLAY8 - AMD Radeon R9 200 Series {0x8080005, [0,0], 1920x1080, 32bit, 60Hz}
   0.023  [1]: \\.\DISPLAY9 - AMD Radeon R9 200 Series {0x80001, [-1366,303], 1366x768, 32bit, 60Hz}
   0.023 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.488 Initialised OpenGL:[0] AMD Radeon R9 200 Series; driver: 4.5.13441 Compatibility Profile Context 16.200.1035.1001
   0.543 Desktop composition is active.
   0.735 Loading mod core 0.0.0 (data.lua)
   0.754 Loading mod base 0.13.11 (data.lua)
   0.948 Checksum for core: 3471280900
   0.948 Checksum for mod base: 2556737699
  21.418 Initial atlas bitmap size is 16384
  21.422 Created atlas bitmap 16384x6373
  21.423 Created atlas bitmap 4096x968
  41.673 Sprites loaded
  41.673 Convert atlas 4096x968 to: trilinear-filtering 
  41.748 Loading sounds...
  44.083 Custom inputs active: 0
  44.222 Factorio initialised
 157.334 Info Scenario.cpp:127: Map version 0.13.11-0
 157.459 Checksum for script C:/Users/aabon/Desktop/Factorio_0.13.11/temp/currently-playing/control.lua: 900459546
Doing the same thing on the root of the drive allowed it to save correctly.

posila wrote:Thank you for very nice bug report.
You're welcome
posila wrote:We don't have fix yet, but there is workaround.
The workaround worked, hooray!

It would be great if the graphics, and path configs were separate from the keybinds, and my keybinds were sync'ed across computers through steam cloud...
Attachments
Farts.zip
Save from desktop
(1.87 MiB) Downloaded 95 times

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [13.11] [Pending] Game hangs after clicking the save game button

Post by posila »

This should be fixed by change of filesystem library in 0.13.14.

Related bug report: 28858

Everspace
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jul 28, 2016 5:28 am
Contact:

Re: [13.11] [Pending] Game hangs after clicking the save game button

Post by Everspace »

Oh goodness! Yes it is. Sorry about the late reply.

Post Reply

Return to “Duplicates”