Page 1 of 1

[15.3] Desync into server crash when heating reactor

Posted: Sat Apr 29, 2017 3:50 pm
by elmassao
When I turn on a small nuclear reactor in my server one or more players keep crashing until the temperature has gone back to 500°.
I am absolutely sure of this, I have tried a lot.
My map is big about 6-7MB to download the first time but, when the game tries to reconnect, it becomes more than 20MB.
I can give the log and a desync report if necessary.

Re: [0.15.3] Desync caused by heating reactor (Linux & Windows)

Posted: Sat Apr 29, 2017 4:12 pm
by Loewchen
Post the desync-report, see my signature. Can you provide detailed steps to recreate the desync?

Code: Select all

   0.000 2017-04-29 17:34:58; Factorio 0.15.3 (build 29201, linux64, steam)
   0.101 Operating system: Linux (Ubuntu 16.04)
   0.101 Program arguments: "/home/andrea/.steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.101 Read data path: /home/andrea/.steam/steamapps/common/Factorio/data
   0.101 Write data path: /home/andrea/.factorio
   0.101 Binaries path: /home/andrea/.steam/steamapps/common/Factorio/bin
   0.117 System info: [CPU: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz, 8 cores, RAM: 5957MB]
   0.117 Display options: [FullScreen: 0] [VSync: 1] [UIScale: 80.9783%] [MultiSampling: OFF] [Screen: 255]
   0.127 Available display adapters: 1
   0.127  [0]: resolution 1680x1050px at [0,0]
   0.127 Create display on adapter 0. Size 1280x720 at position [190, 147].
   0.794 Initialised OpenGL:[0] GeForce GTX 750 Ti/PCIe/SSE2; driver: 4.5.0 NVIDIA 378.13
   0.813     Video memory size (dedicated/total available/current available): 2048/2048/1624 MB
   0.827 Graphics settings preset: high
   0.827 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: false]
   0.923 Loading mod core 0.0.0 (data.lua)
   0.934 Loading mod base 0.15.3 (data.lua)
   1.055 Loading mod base 0.15.3 (data-updates.lua)
   1.157 Checksum for core: 2926038370
   1.157 Checksum of base: 2896593033
   1.296 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493479559
   1.296 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1493432618
   1.369 Loaded shader file /home/andrea/.steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   1.370 Loaded shader file /home/andrea/.steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   1.387 Initial atlas bitmap size is 8192
   1.407 Created atlas bitmap 8192x8183
   1.422 Created atlas bitmap 8192x8190
   1.426 Created atlas bitmap 8192x8001
  38.327 Sprites loaded
  38.327 Convert atlas 8192x8183 to: 
  38.328 Loading sounds...
  41.332 Custom inputs active: 0
  41.375 Factorio initialised
 194.295 Joining game 91.121.209.16:34197
 194.295 Info UDPSocket.cpp:33: Opening socket
 194.295 Verbose RouterBase.cpp:38: Started router thread.
 194.295 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Ready) to(Connecting)
 194.452 Connection refused
 194.452 Info ClientMultiplayerManager.cpp:177: Quitting multiplayer connection.
 194.452 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Connecting) to(Disconnected)
 194.540 Verbose RouterBase.cpp:48: Finishing router thread.
 194.540 Info UDPSocket.cpp:234: Socket closed
 198.848 Joining game 91.121.209.16:34197
 198.848 Info UDPSocket.cpp:33: Opening socket
 198.848 Verbose RouterBase.cpp:38: Started router thread.
 198.848 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Ready) to(Connecting)
 199.002 Info ClientSynchronizer.cpp:34: Initialized Synchronizer local peer(1) latency(32).
 199.003 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Connecting) to(ConnectedWaitingForMap)
 199.003 Info ClientRouter.cpp:217: ConnectionAccepted
 199.552 Info ClientMultiplayerManager.cpp:669: Received mapReadyForDownload
 199.552 Downloading file /home/andrea/.factorio/temp/mp-download.zip (7697260 B, 15303 blocks)
 199.555 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
 229.536 Finished download (29 s, 7.6 MB, 256 kB/s)
 229.573 Info ClientMultiplayerManager.cpp:650: mapTick(-1) map download finished creating scenario
 229.573 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
 229.573 Loading map /home/andrea/.factorio/temp/mp-download.zip: 7697260 bytes.
 229.575 Error FileUtil.cpp:291: Can't remove /home/andrea/.factorio/temp/currently-playing: No such file or directory
 229.611 Loading Level.dat: 18534650 bytes.
 229.614 Info Scenario.cpp:133: Map version 0.15.3-0
 230.124 Verbose BlueprintLibrary.cpp:158: Loaded library shelves:
 230.124 Verbose BlueprintLibrary.cpp:623: Game shelf: playerIndex = 65535, nextRecordID = 4; timestamp = 1493159049; records:
 230.124 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 0, nextRecordID = 5; timestamp = 1493432619; records: (id: 0, 1; label: "", preview: false, empty: false; single) (id: 0, 0; label: "Fornaci", preview: false, empty: false; single) (id: 0, 3; label: "Mura angolo Gatling+Lanciafiamme", preview: false, empty: false; single) (id: 0, 4; label: "Mura dritte Gatling+Lanciafiamme", preview: false, empty: false; single) (id: 0, 2; label: "Mura dritto gatling lanciafiamme", preview: false, empty: false; single)
 230.124 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 1, nextRecordID = 3; timestamp = 1493424852; records: (id: 1, 0; label: "accumulator rack", preview: false, empty: false; single) (id: 1, 2; label: "miniera bellissima", preview: false, empty: false; single)
 230.124 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 2, nextRecordID = 3; timestamp = 1493339637; records: (id: 2, 2; label: "Mura con torrette", preview: false, empty: false; single)
 230.124 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 3, nextRecordID = 0; timestamp = 1493323804; records:
 230.124 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 4, nextRecordID = 0; timestamp = 1493325866; records:
 230.125 Verbose BlueprintLibrary.cpp:625: Player shelf: playerIndex = 5, nextRecordID = 0; timestamp = 1493328002; records:
 230.128 Verbose Scenario.cpp:147: Loading level.dat finished.
 230.194 Verbose BlueprintLibrary.cpp:46: Loaded external blueprint storage: playerIndex = 0, nextRecordID = 5; timestamp = 1493432619; records: (id: 0, 1; label: "", preview: false, empty: false; single) (id: 0, 0; label: "Fornaci", preview: false, empty: false; single) (id: 0, 3; label: "Mura angolo Gatling+Lanciafiamme", preview: false, empty: false; single) (id: 0, 4; label: "Mura dritte Gatling+Lanciafiamme", preview: false, empty: false; single) (id: 0, 2; label: "Mura dritto gatling lanciafiamme", preview: false, empty: false; single)
 230.194 Loading script.dat: 190 bytes.
 230.196 Checksum for script /home/andrea/.factorio/temp/currently-playing/control.lua: 2433440189
 230.197 Verbose Scenario.cpp:244: Map setup finished.
 230.222 Info ClientMultiplayerManager.cpp:539: MapTick(9323710) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
 230.351 Info ClientMultiplayerManager.cpp:539: MapTick(9323751) changing state from(TryingToCatchUp) to(WaitingForCommandToStartSendingTickClosures)
 230.485 Info ClientMultiplayerManager.cpp:539: MapTick(9323751) changing state from(WaitingForCommandToStartSendingTickClosures) to(InGame)
 230.535 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323753) serverCRC(391068773) localCRC(592890033)
 230.535 Info ClientMultiplayerManager.cpp:539: MapTick(9323754) changing state from(InGame) to(DesyncedWaitingForMap)
 230.552 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323754) serverCRC(-189193547) localCRC(-1285804610)
 230.569 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323755) serverCRC(1285195620) localCRC(-455661970)
 230.586 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323756) serverCRC(-198301019) localCRC(-941246178)
 230.586 Info GameActionHandler.cpp:3231: MapTick (9323757) processed PlayerJoinGame peerID(24) playerIndex(0) mode(connect ) 
 230.606 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323757) serverCRC(-1434031071) localCRC(1409061225)
 230.691 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323758) serverCRC(-1400364018) localCRC(1336296124)
 230.697 Info ClientMultiplayerManager.cpp:663: mapTick(9323760) received player (24) desynced
 230.697 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323759) serverCRC(-886310359) localCRC(1035932673)
 230.700 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323760) serverCRC(-2097423510) localCRC(124791233)
 230.703 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323761) serverCRC(-785035945) localCRC(1326488755)
 230.705 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323762) serverCRC(938093416) localCRC(82032759)
 230.733 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323763) serverCRC(706443496) localCRC(1972243753)
 230.736 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323764) serverCRC(1013556265) localCRC(-1436969685)
 230.771 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323765) serverCRC(-1855063640) localCRC(1024814868)
 230.774 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323766) serverCRC(-1318564335) localCRC(-1867336009)
 230.777 Error GameActionHandler.cpp:2482: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(9323767) serverCRC(1030125595) localCRC(-5852332)
 237.816 Info ClientMultiplayerManager.cpp:669: Received mapReadyForDownload
 237.816 Info ClientMultiplayerManager.cpp:539: MapTick(9323769) changing state from(DesyncedWaitingForMap) to(DesyncedCatchingUpWithMapReadyForDownload)
 237.816 Warning ClientMultiplayerManager.cpp:682: receivedScriptChecksums isn't empty when download starting.
 237.816 Error FileUtil.cpp:291: Can't remove /home/andrea/.factorio/temp/desync-report: No such file or directory
 237.817 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(DesyncedCatchingUpWithMapReadyForDownload) to(DesyncedSavingLocalVariantOfMap)
 237.817 Verbose Scenario.cpp:485: Saving game as /home/andrea/.factorio/temp/desync-report/desynced-level
 237.842 Error CrashHandler.cpp:232: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
 238.840 Warning Logger.cpp:386: Symbols.size() == 15, usedSize == 9
#0  0x0000000000abcc8d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-uWbTLL/src/Util/Logger.cpp:408
#1  0x0000000000686bf0 in CrashHandler::writeStackTrace() at /tmp/factorio-uWbTLL/src/Util/CrashHandler.cpp:105
#2  0x0000000000686e74 in CrashHandler::SignalHandler(int) at /tmp/factorio-uWbTLL/src/Util/CrashHandler.cpp:237
#3  0x00007f40d95c14b0 in ?? at ??:0
#4  0x000000000087d0c6 in composeDiffuseAndLight at /tmp/factorio-uWbTLL/src/Graphics/DrawEngine.cpp:169
#5  0x0000000000e28911 in render at /tmp/factorio-uWbTLL/src/Graphics/DrawEngine.cpp:131
#6  0x0000000000e96b77 in render at /tmp/factorio-uWbTLL/src/Graphics/GameRenderer.cpp:190
#7  0x00007f40d95ac830 in render at /tmp/factorio-uWbTLL/src/GameView.cpp:908
#8  0x000000000040aee9 in render at /tmp/factorio-uWbTLL/src/Game.cpp:325
 239.794 Warning Logger.cpp:386: Symbols.size() == 14, usedSize == 8
 239.794 Error Util.cpp:76: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.

Re: [15.3] Desync into server crash when heating reactor

Posted: Sat Apr 29, 2017 7:48 pm
by elmassao
(I did not mentioned that my server is a Debian Stable machine running Headless.)

To reproduce the desync: throw some fuel rod inside the reactor (1 is enough) by hand or by the automatic system (disabled to avoid "unwanted" desyncs). The majority of clients will desync after half second.
Some times clients will be able to reconnect before the reactor is at 500° again, sometimes no.

I have uploaded the desync-report and the map. I will update other files here if necessary.
https://drive.google.com/drive/folders/ ... WhsdFRnNnc

Re: [15.3] Desync into server crash when heating reactor

Posted: Sun Apr 30, 2017 4:54 pm
by RamsesIV.
I had same issues with the reactor. It desynced me when I was alone connected to the server. We had blackout during night and I notticed that nuclear reactor is out of power. So I inserted some in it and after a litle while desync happened. And it kept kicking me untill we restarted the server. Here is my report:

https://drive.google.com/open?id=0B5lnU ... XZ4MEVpZFk

Re: [15.3] Desync into server crash when heating reactor

Posted: Sun Apr 30, 2017 8:54 pm
by posila
Thanks for the reports.
Connecting entities with heat buffers (reactor, heat pipes, heat exchanger) is not save/load stable and causes desyncs.
It will be fixed in 0.15.6