Game freezes in MP

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
Senshi
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Apr 01, 2016 11:44 am
Contact:

Game freezes in MP

Post by Senshi »

When playing in SP, I can play for hours on end.

When I play with my brother over internet (IPv6), the game irregularly freezes for both of us. I have to terminate Factorio (either by Alt+F4, but sometimes only the taskmanager can help). Then the game continues for my brother and I can rejoin. After rejoin and map transfer, sometimes (not always!) there happens a desync immediately and the map is transferred again. After that, the game continues to run smoothly for x minutes (5 to 60 minutes, usually) until it happens again.

Logfile for the last session (where the freeze happened after ~5min on a new, fresh map).

Code: Select all

0.001 2016-05-03 22:33:47; Factorio 0.12.33 (Build 18092, win64, steam)
   0.001 Operating system: Windows 10 
   0.001 Program arguments: "F:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: F:/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/Senshi/AppData/Roaming/Factorio
   0.001 Binaries path: F:/Steam/steamapps/common/Factorio/bin
   0.017 Graphics options: [FullScreen: true] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 54%] [Screen: 255]
   0.018 Available display adapters: 2
   0.018  [0]: \\.\DISPLAY8 - AMD Radeon R9 200 Series {0x8080001, [2560,360], 1920x1080, 32bit, 60Hz}
   0.018  [1]: \\.\DISPLAY9 - AMD Radeon R9 200 Series {0x8080005, [0,0], 2560x1440, 32bit, 60Hz}
   0.018 Create display on adapter 1. Size 1280x720 at position [630, 342].
   0.334 Initialised OpenGL:[1] AMD Radeon R9 200 Series; driver: 4.5.13431 Compatibility Profile Context 16.150.2401.0
   0.359 Desktop composition is active.
   0.889 Loading mod core 0.0.0 (data.lua)
   0.893 Loading mod base 0.12.33 (data.lua)
   0.958 Loading mod advanced-logistics-system 0.2.12 (data.lua)
   1.001 Loading mod bobconfig 0.12.2 (data.lua)
   1.045 Loading mod boblibrary 0.12.3 (data.lua)
   1.088 Loading mod burner_manufacturing_unit 0.1.2 (data.lua)
   1.134 Loading mod Enhanced_Map_Colors 1.1.0 (data.lua)
   1.183 Loading mod EvoGUI 0.4.15 (data.lua)
   1.227 Loading mod Flow Control 1.1.0 (data.lua)
   1.282 Loading mod KS_Power 0.1.1 (data.lua)
   1.327 Loading mod Landfill 2.1.7 (data.lua)
   1.375 Loading mod more-locomotives 0.3.0 (data.lua)
   1.437 Loading mod MoreLight 1.0.0 (data.lua)
   1.482 Loading mod original-music-hd 1.0.0 (data.lua)
   1.563 Loading mod Red Alerts 1.0.3 (data.lua)
   1.654 Loading mod Side Inserters 1.0.5 (data.lua)
   1.714 Loading mod Squeak Through 1.0.1 (data.lua)
   1.789 Loading mod steel_manufacturing_unit 0.1.3 (data.lua)
   1.846 Loading mod TheFatController 0.4.13 (data.lua)
   1.898 Loading mod Treefarm-Lite 0.3.7 (data.lua)
   1.970 Loading mod YARM 0.7.15 (data.lua)
   2.022 Loading mod bobassembly 0.12.7 (data.lua)
   2.074 Loading mod bobenemies 0.12.6 (data.lua)
   2.133 Loading mod bobores 0.12.7 (data.lua)
   2.208 Loading mod Near Inserters 1.0.0 (data.lua)
   2.271 Loading mod RailTanker 1.1.3 (data.lua)
   2.356 Loading mod Treefarm-AC 0.2.3 (data.lua)
   2.418 Loading mod bobtech 0.12.4 (data.lua)
   2.482 Loading mod SmartTrains 0.3.82 (data.lua)
   2.567 Loading mod bobplates 0.12.10 (data.lua)
   2.644 Loading mod bobelectronics 0.12.6 (data.lua)
   2.781 Loading mod boblogistics 0.12.7 (data.lua)
   2.934 Loading mod bobmining 0.12.3 (data.lua)
   3.038 Loading mod bobpower 0.12.6 (data.lua)
   3.159 Loading mod bobwarfare 0.12.9 (data.lua)
   3.344 Loading mod 8L-Train-Project 1.2.0 (data.lua)
   3.462 Loading mod bobmodules 0.12.9 (data.lua)
   3.594 Loading mod bobconfig 0.12.2 (data-updates.lua)
   3.766 Loading mod Enhanced_Map_Colors 1.1.0 (data-updates.lua)
   3.896 Loading mod bobassembly 0.12.7 (data-updates.lua)
   4.019 Loading mod bobenemies 0.12.6 (data-updates.lua)
   4.175 Loading mod bobores 0.12.7 (data-updates.lua)
   4.294 Loading mod bobtech 0.12.4 (data-updates.lua)
   4.444 Loading mod rso-mod 1.5.6 (data-updates.lua)
   4.604 Loading mod SmartTrains 0.3.82 (data-updates.lua)
   4.720 Loading mod bobplates 0.12.10 (data-updates.lua)
   4.848 Loading mod bobelectronics 0.12.6 (data-updates.lua)
   5.013 Loading mod boblogistics 0.12.7 (data-updates.lua)
   5.143 Loading mod bobmining 0.12.3 (data-updates.lua)
   5.281 Loading mod bobpower 0.12.6 (data-updates.lua)
   5.432 Loading mod bobwarfare 0.12.9 (data-updates.lua)
   5.645 Loading mod bobmodules 0.12.9 (data-updates.lua)
   5.788 Loading mod advanced-logistics-system 0.2.12 (data-final-fixes.lua)
   5.969 Loading mod WaiTex 1.0.0 (data-final-fixes.lua)
   6.332 Loading mod bobelectronics 0.12.6 (data-final-fixes.lua)
   6.689 Checksum for core: 3711505753
   6.689 Checksum for mod base: 2829195351
   6.689 Checksum for mod advanced-logistics-system: 3559339357
   6.689 Checksum for mod autofill: 0
   6.689 Checksum for mod better-vehicle-control: 0
   6.689 Checksum for mod bobconfig: 3744920451
   6.689 Checksum for mod boblibrary: 346524743
   6.689 Checksum for mod BurnerLeech: 0
   6.689 Checksum for mod burner_manufacturing_unit: 1810311517
   6.689 Checksum for mod Enhanced_Map_Colors: 3866946042
   6.689 Checksum for mod EvoGUI: 1040096666
   6.689 Checksum for mod Flow Control: 3293810589
   6.689 Checksum for mod KS_Power: 930046284
   6.689 Checksum for mod Landfill: 4029589584
   6.689 Checksum for mod more-locomotives: 1309967866
   6.689 Checksum for mod MoreLight: 3037131012
   6.689 Checksum for mod original-music-hd: 2740735163
   6.689 Checksum for mod Red Alerts: 221941754
   6.689 Checksum for mod Side Inserters: 420993248
   6.689 Checksum for mod Squeak Through: 1087482655
   6.689 Checksum for mod steel_manufacturing_unit: 3124670268
   6.689 Checksum for mod TheFatController: 334569396
   6.689 Checksum for mod Treefarm-Lite: 1781503281
   6.689 Checksum for mod WaiTex: 3203424500
   6.689 Checksum for mod YARM: 1978499928
   6.689 Checksum for mod bobassembly: 2979829371
   6.689 Checksum for mod bobenemies: 1783944817
   6.689 Checksum for mod bobores: 2714637141
   6.689 Checksum for mod Near Inserters: 2034296947
   6.689 Checksum for mod RailTanker: 166006525
   6.689 Checksum for mod Rescaled-Evolution-Factor: 0
   6.689 Checksum for mod Treefarm-AC: 380127662
   6.689 Checksum for mod bobtech: 4284252453
   6.689 Checksum for mod rso-mod: 4065594479
   6.689 Checksum for mod SmartTrains: 542384756
   6.689 Checksum for mod bobplates: 3252351632
   6.689 Checksum for mod bobelectronics: 1807957778
   6.689 Checksum for mod boblogistics: 2936638245
   6.689 Checksum for mod bobmining: 285312923
   6.689 Checksum for mod bobpower: 1022327255
   6.689 Checksum for mod bobwarfare: 2195016810
   6.689 Checksum for mod 8L-Train-Project: 3267537525
   6.689 Checksum for mod bobmodules: 1983093756
   8.820 Initial atlas bitmap size is 16384
   8.838 Created atlas bitmap 16384x16380
   8.842 Created atlas bitmap 16384x13130
  27.918 Sprites loaded
  27.918 Loading sounds...
  29.596 Factorio initialised
  34.167 Info Router.cpp:509: Router peerID(65535) shutting down.
  34.170 Info Router.cpp:536: Router state -> Disconnected
  34.170 Joining game [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 at port 34197
  34.170 Info WindowsUDPSocket.cpp:73: Opening socket at port (34197)
  34.170 Info Router.cpp:536: Router state -> Connecting
  34.171 Info MultiplayerManager.cpp:913: networkTick(0) mapTick(-1) changing state from(Ready) to(Connecting)
  34.237 Info Router.cpp:536: Router state -> WaitingForAccept
  34.341 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(813) closedTick(true) tickClosures((tick(2390) inputActions() ) ) synchronizerActions((PeerConnect) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.341 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(814) closedTick(true) tickClosures((tick(2391) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(815) closedTick(true) tickClosures((tick(2392) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(816) closedTick(true) tickClosures((tick(2393) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(817) closedTick(true) tickClosures((tick(2394) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(818) closedTick(true) tickClosures((tick(2395) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(819) closedTick(true) tickClosures((tick(2396) inputActions() ) ) ) requestsForHeartbeats()  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.342 Info Router.cpp:258: Received message type(Heartbeat) heartbeat(networkTick(820) closedTick(true) tickClosures((tick(2397) inputActions() ) ) synchronizerActions((PeerInfo) (PeerStateChanged) ) ) requestsForHeartbeats((requestPeerID(1) requestNetworkTick(813) ) (requestPeerID(1) requestNetworkTick(814) ) (requestPeerID(1) requestNetworkTick(815) ) (requestPeerID(1) requestNetworkTick(816) ) (requestPeerID(1) requestNetworkTick(817) ) )  from [2a02:2028:850:ab01:4548:fb05:847e:6639]:34197 with invalid session magic (expected 0x011, was 0x4b3).
  34.343 Info Synchronizer.cpp:54: NetworkTick(820) initialized Synchronizer local peer(1) latency(7).
  34.343 Info Synchronizer.cpp:500: networkTick(820) adding peer(0) success(true).
  34.343 Info Router.cpp:536: Router state -> Connected
  34.343 Info Router.cpp:729: ConnectionAccepted ownPeerID(1) nextPeerID(2)
  34.343 Info MultiplayerManager.cpp:913: networkTick(820) mapTick(-1) changing state from(Connecting) to(VerifyingConnection)
  34.393 Info Router.cpp:741: Received onPeerConnected for already connected peer(1)
  34.509 Info MultiplayerManager.cpp:1433: Received peer info for peer(0) username(MrJack).
  34.509 Info MultiplayerManager.cpp:1060: networkTick(827) mapTick(-1) received stateChanged peerID(0) oldState(Ready) newState(InGame)
  34.509 Info MultiplayerManager.cpp:1433: Received peer info for peer(1) username(Senshi2).
  34.509 Info MultiplayerManager.cpp:1060: networkTick(827) mapTick(-1) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  34.509 Info MultiplayerManager.cpp:1433: Received peer info for peer(1) username(Senshi2).
  34.509 Info MultiplayerManager.cpp:1060: networkTick(827) mapTick(-1) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  34.509 Info MultiplayerManager.cpp:1060: networkTick(827) mapTick(-1) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  34.644 Info MultiplayerManager.cpp:913: networkTick(835) mapTick(-1) changing state from(VerifyingConnection) to(ConnectedWaitingForMap)
  34.778 Info MultiplayerManager.cpp:1060: networkTick(842) mapTick(-1) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  34.876 Info MultiplayerManager.cpp:1060: networkTick(849) mapTick(-1) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  35.127 Info MultiplayerManager.cpp:1060: networkTick(864) mapTick(-1) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  35.127 Info MultiplayerManager.cpp:1060: networkTick(864) mapTick(-1) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  35.199 Info MultiplayerManager.cpp:1060: networkTick(868) mapTick(-1) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  35.199 Downloading file C:/Users\Senshi\AppData\Roaming\Factorio\temp\mp-download.zip (672371 B, 551 blocks)
  35.200 Info MultiplayerManager.cpp:913: networkTick(868) mapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
  35.200 Info NetworkInputHandler.cpp:45: mapTick(2410) networkTick(868) initialized NetworkInputHandler local peer(1).
  35.200 Info NetworkInputHandler.cpp:520: expectedMapTick(2410) adding peer(0).
  35.200 Info Synchronizer.cpp:413: NetworkTick(868) mapTick(2410) applying 20 pending tickClosures
  35.200 Info NetworkInputHandler.cpp:599: assigning playerIndex(0) to peer(0)
  35.200 Info NetworkInputHandler.cpp:599: assigning playerIndex(65535) to peer(1)
  35.200 Info MultiplayerManager.cpp:1633: networkTick(868) mapTick(-1) adding mapAlignTask(SendPlayerJoinGameAlignTask)
  35.200 Info MultiplayerManager.cpp:1420: Received script checksums: level: 393467729, mod-BurnerLeech: 4275304037, mod-EvoGUI: 4023984608, mod-Flow Control: 840559472, mod-KS_Power: 2206032360, mod-Landfill: 3984592891, mod-RailTanker: 2799235931, mod-Red Alerts: 2947920502, mod-Rescaled-Evolution-Factor: 2829782286, mod-SmartTrains: 3363655887, mod-TheFatController: 2028964168, mod-Treefarm-AC: 1595175767, mod-Treefarm-Lite: 2359957533, mod-YARM: 604254193, mod-advanced-logistics-system: 2209902550, mod-autofill: 3022061392, mod-better-vehicle-control: 2056213402, mod-bobores: 610546070, mod-rso-mod: 2870319608
  35.322 Info MultiplayerManager.cpp:1060: networkTick(875) mapTick(-1) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  35.681 Finished download (0 s, 672 kB, 1.4 MB/s)
  35.706 Info MultiplayerManager.cpp:1135: networkTick(899) mapTick(-1) map download finished creating scenario
  35.707 Info MultiplayerManager.cpp:913: networkTick(899) mapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
  35.707 Loading map C:/Users\Senshi\AppData\Roaming\Factorio\temp\mp-download.zip
  35.745 Info Scenario.cpp:124: Map version 0.12.33-0
  35.801 Checksum for script C:/Users/Senshi/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 393467729
  35.809 Checksum for script __advanced-logistics-system__/control.lua: 2209902550
  35.812 Checksum for script __autofill__/control.lua: 3022061392
  35.813 Checksum for script __better-vehicle-control__/control.lua: 2056213402
  35.814 Checksum for script __BurnerLeech__/control.lua: 4275304037
  35.819 Checksum for script __EvoGUI__/control.lua: 4023984608
  35.820 Checksum for script __Flow Control__/control.lua: 840559472
  35.822 Checksum for script __KS_Power__/control.lua: 2206032360
  35.823 Checksum for script __Landfill__/control.lua: 3984592891
  35.825 Checksum for script __Red Alerts__/control.lua: 2947920502
  35.829 Info MultiplayerManager.cpp:1060: networkTick(906) mapTick(2410) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  35.831 Checksum for script __TheFatController__/control.lua: 2028964168
  35.834 Checksum for script __Treefarm-Lite__/control.lua: 2359957533
  35.837 Checksum for script __YARM__/control.lua: 604254193
  35.838 Checksum for script __bobores__/control.lua: 610546070
  35.840 Checksum for script __RailTanker__/control.lua: 2799235931
  35.841 Checksum for script __Rescaled-Evolution-Factor__/control.lua: 2829782286
  35.842 Checksum for script __Treefarm-AC__/control.lua: 1595175767
  35.852 Checksum for script __rso-mod__/control.lua: 2870319608
  35.858 Checksum for script __SmartTrains__/control.lua: 3363655887
  35.863 Info MultiplayerManager.cpp:913: networkTick(909) mapTick(2410) changing state from(ConnectedLoadingMap) to(InGameWaitingForOthers)
  35.947 Info MultiplayerManager.cpp:1060: networkTick(913) mapTick(2410) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  35.996 Info MultiplayerManager.cpp:1060: networkTick(916) mapTick(2410) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  35.996 Info MultiplayerManager.cpp:1259: networkTick(916) mapTick(2410) stopping mapAlign
  35.996 Info MultiplayerManager.cpp:1785: performing map align task (SendPlayerJoinGameAlignTask)
  35.996 Info MultiplayerManager.cpp:913: networkTick(916) mapTick(2410) changing state from(InGameWaitingForOthers) to(InGame)
  35.996 Info MultiplayerManager.cpp:1607: networkTick(916) mapTick(2410) peerID(1) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  36.120 Info MultiplayerManager.cpp:1060: networkTick(923) mapTick(2414) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  36.120 Info MultiplayerManager.cpp:1060: networkTick(923) mapTick(2414) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  36.205 Info NetworkInputHandler.cpp:745: mapTick(2420) networkTick(929) connecting to player(Senshi2).
  36.205 Info NetworkInputHandler.cpp:599: assigning playerIndex(1) to peer(1)
  36.205 Info GameActionHandler.cpp:1949: MapTick(2420) processed PlayerJoinGame peerID(1) playerIndex(1) mode(create)
 360.353 Info MultiplayerManager.cpp:134: NetworkTick(19319) disconnecting multiplayer connection.
 360.353 Info NetworkInputHandler.cpp:64: expectedMapTick(20779) sending PlayerLeaveGame
Anyone have any ideas?
Last edited by Senshi on Thu May 05, 2016 8:27 am, edited 1 time in total.

stummies
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed May 04, 2016 2:43 pm
Contact:

Re: Game freezes in MP

Post by stummies »

Have you tried without the mods? Can't speak for this game but other games I've played with mods sometimes had issues like this due to mods. You don't have to play with it like that, just for long enough to prove whether the mods are the culprit.

Beyond that, how are you connecting to the game (wifi, ethernet)? If not hardwired it could be this if your network is congested or your area has a lot of noise in the same frequency range. Wifi has limitations beyond just bitrate that can impact gaming.

Finally, have you validated ports are forwarded correctly through your router? Whomever is hosting would need to ensure they're forwarding the listen port properly (be sure it's set to UDP, not TCP). EDIT: Actually, this game is peer-to-peer so every client needs the port forwarded.

Senshi
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Apr 01, 2016 11:44 am
Contact:

Re: Game freezes in MP

Post by Senshi »

We tried without mods. Without (or with less mods) it seems to happen somewhat less often, but it still happens. It's hard to tell if it has a real effect because the freezes happen so irregularly.
Ports are open, we play regular online. We both should have a sufficiently powerful connection (ping of ~50ms, me with 2.5MB/s DL, him with 50MB/s). Map transfer itself usually goes at ~1.5MB/s, and very rarely does the map transfer itself "break". Connection to router for me is wifi (him: ethernet), but packet loss is extremely marginal, because the router/modem is straight behind a wall here (very good signal quality&connection). Both of us can do lots of "side stuff" (watching twitch streams on second stream, for example), which has seemingly no impact on Factorio's likelihood to freeze.
Port is forwarded, else we couldn't play in the first place ;) .

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Game freezes in MP

Post by bobingabout »

Unrelated note: There is bobplates 0.12.11 and bobenemies 0.12.7 now, updates to what you're using.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Senshi
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Apr 01, 2016 11:44 am
Contact:

Re: Game freezes in MP

Post by Senshi »

I dare bump this issue, because this still ruins MP for us :/ .

Post Reply

Return to “Technical Help”