Page 1 of 1

[0.14.21] Single Train causing server/client to crash

Posted: Mon Jan 09, 2017 3:35 am
by outpost
Hi,

Save can be found at here, the offending train is named "Diesel locomotive Elijah Menifee" and the save should start right in front of it.

This save started off as a multiplayer session but the logs have been generated by loading the game as a single player game. It appears as though there is two different ways in which it crashes.
One is when the train attempts to move and the other is when the train is picked up. Both errors do cause the headless multiplayer server to crash but when the train is picked up it caused all connected users clients to crash as well.

This log file is from when the train attempts to move.

Code: Select all

   0.000 2017-01-08 22:06:02; Factorio 0.14.21 (build 25327, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/run/media/garrett/Steam/linux/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /run/media/garrett/Steam/linux/steamapps/common/Factorio/data
   0.000 Write data path: /home/garrett/.factorio
   0.000 Binaries path: /run/media/garrett/Steam/linux/steamapps/common/Factorio/bin
   0.017 System info: [CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 12 cores, RAM: 16026MB]
   0.018 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 1]
   0.048 Available display adapters: 2
   0.048  [0]: resolution 1920x1080px at [0,0]
   0.048  [1]: resolution 3440x1440px at [1920,0]
   0.048 Create display on adapter 1. Size 1280x720 at position [1070, 342].
   0.342 Initialised OpenGL:[1] GeForce GTX 1070/PCIe/SSE2; driver: 4.5.0 NVIDIA 375.26
   0.343     Video memory size (dedicated/total available/current available): 8192/8192/7324 MB
   0.385 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [DXT: false]
   0.483 Loading mod core 0.0.0 (data.lua)
   0.490 Loading mod base 0.14.21 (data.lua)
   0.620 Checksum for core: 1291735968
   0.620 Checksum for mod base: 786624017
   0.963 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1483929853
   0.963 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1482912291
   1.115 Initial atlas bitmap size is 32768
   1.122 Created atlas bitmap 32768x4452
   1.122 Created atlas bitmap 4096x968
   1.123 Created atlas bitmap 4096x3644
   6.517 Sprites loaded
   6.517 Convert atlas 4096x968 to: trilinear-filtering 
   6.542 Convert atlas 4096x3644 to: mipmap 
   6.629 Loading sounds...
   7.942 Custom inputs active: 0
   7.968 Factorio initialised
  15.570 Loading map /home/garrett/.factorio/saves/_autosave1.zip
  15.570 Error FileUtil.cpp:284: Can't remove /home/garrett/.factorio/temp/currently-playing: No such file or directory
  15.580 Info Scenario.cpp:152: Map version 0.14.21-0
Factorio crashed. Generating symbolized stacktrace, please wait ...
 238.193 Warning Logger.cpp:369: Symbols.size() == 25, usedSize == 16
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x0000000000c06050 in Train::resolveRailTransition(Rail*, Rail*, bool) [clone .constprop.74094] at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1505
#2  0x00000000004fa7c7 in RailJoint::startOnNewRail(Rail*, RailDirection, RailDirection, bool) [clone .part.68592] [clone .constprop.76655] at /tmp/factorio-onaJy5/src/Rail/RailJoint.cpp:92
#3  0x00000000004fa976 in RollingStock::Carriage::moveFrontJointBackward(double) at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:321
#4  0x00000000006a657b in RollingStock::move(double, RidingState::Direction const&, bool) at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:336
#5  0x0000000000c0ad73 in moveStock at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1785
#6  0x0000000000c0b1f6 in tryToMove at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1817
#7  0x0000000000c0cb4a in move at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1668
#8  0x0000000000c51942 in Train::updateSpeedAndMove() [clone .constprop.73225] at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1188
#9  0x0000000000c55c5a in update at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1065
#10 0x0000000000c6542a in update at /tmp/factorio-onaJy5/src/Rail/TrainManager.cpp:172
#11 0x0000000000c661a1 in Map::update() at /tmp/factorio-onaJy5/src/Map/Map.cpp:1133
#12 0x000000000060764b in update at /tmp/factorio-onaJy5/src/Game.cpp:144
#13 0x00000000011919d0 in update at /tmp/factorio-onaJy5/src/Scenario/Scenario.cpp:842
#14 0x00007f39df673454 in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) [clone .constprop.71967] at /tmp/factorio-onaJy5/src/MainLoop.cpp:761
#15 0x00007f39dd77c7df in getBaseMultiplayerManager at /tmp/factorio-onaJy5/src/GlobalContext.cpp:972
 238.913 Warning Logger.cpp:369: Symbols.size() == 24, usedSize == 15
 238.913 Error Train.cpp:1505: Internal error: Carriage::moveFrontJointForward frontRail rollingStockCount (0) != 1
Factorio crashed. Generating symbolized stacktrace, please wait ...
 239.652 Warning Logger.cpp:369: Symbols.size() == 30, usedSize == 21
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x00000000005c716b in CrashHandler::writeStackTrace() at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:105
#2  0x00000000005c7404 in CrashHandler::SignalHandler(int) at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:235
#3  0x00007f39dd6c70b0 in ?? at ??:0
#4  0x00007f39dd6c704f in ?? at ??:0
#5  0x00007f39dd6c847a in ?? at ??:0
#6  0x0000000000c05fab in Train::resolveRailTransition(Rail*, Rail*, bool) [clone .constprop.74094] at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1474
#7  0x00000000004fa7c7 in RailJoint::startOnNewRail(Rail*, RailDirection, RailDirection, bool) [clone .part.68592] [clone .constprop.76655] at /tmp/factorio-onaJy5/src/Rail/RailJoint.cpp:92
#8  0x00000000004fa976 in RollingStock::Carriage::moveFrontJointBackward(double) at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:321
#9  0x00000000006a657b in RollingStock::move(double, RidingState::Direction const&, bool) at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:336
#10 0x0000000000c0ad73 in moveStock at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1785
#11 0x0000000000c0b1f6 in tryToMove at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1817
#12 0x0000000000c0cb4a in move at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1668
#13 0x0000000000c51942 in Train::updateSpeedAndMove() [clone .constprop.73225] at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1188
#14 0x0000000000c55c5a in update at /tmp/factorio-onaJy5/src/Rail/Train.cpp:1065
#15 0x0000000000c6542a in update at /tmp/factorio-onaJy5/src/Rail/TrainManager.cpp:172
#16 0x0000000000c661a1 in Map::update() at /tmp/factorio-onaJy5/src/Map/Map.cpp:1133
#17 0x000000000060764b in update at /tmp/factorio-onaJy5/src/Game.cpp:144
#18 0x00000000011919d0 in update at /tmp/factorio-onaJy5/src/Scenario/Scenario.cpp:842
#19 0x00007f39df673454 in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) [clone .constprop.71967] at /tmp/factorio-onaJy5/src/MainLoop.cpp:761
#20 0x00007f39dd77c7df in getBaseMultiplayerManager at /tmp/factorio-onaJy5/src/GlobalContext.cpp:972
 240.495 Warning Logger.cpp:369: Symbols.size() == 29, usedSize == 20
 240.495 Error CrashHandler.cpp:106: Map tick at moment of crash: 3614030
 240.495 Error Util.cpp:77: 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.
 240.516 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x00000000005c716b in CrashHandler::writeStackTrace() at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:105
#2  0x00000000005c7404 in CrashHandler::SignalHandler(int) at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:235
#3  0x00007f39dd6c70b0 in ?? at ??:0
#4  0x00007f39de5b1cc9 in ?? at ??:0
 241.637 Error CrashHandler.cpp:106: Map tick at moment of crash: 3614030
 241.637 Error Util.cpp:77: 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.
This second one was when it was picked up.

Code: Select all

   0.000 2017-01-08 22:13:22; Factorio 0.14.21 (build 25327, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/run/media/garrett/Steam/linux/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /run/media/garrett/Steam/linux/steamapps/common/Factorio/data
   0.000 Write data path: /home/garrett/.factorio
   0.000 Binaries path: /run/media/garrett/Steam/linux/steamapps/common/Factorio/bin
   0.016 System info: [CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 12 cores, RAM: 16026MB]
   0.017 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 1]
   0.048 Available display adapters: 2
   0.048  [0]: resolution 1920x1080px at [0,0]
   0.048  [1]: resolution 3440x1440px at [1920,0]
   0.048 Create display on adapter 1. Size 1280x720 at position [1070, 342].
   0.272 Initialised OpenGL:[1] GeForce GTX 1070/PCIe/SSE2; driver: 4.5.0 NVIDIA 375.26
   0.273     Video memory size (dedicated/total available/current available): 8192/8192/7332 MB
   0.305 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [DXT: false]
   0.369 Loading mod core 0.0.0 (data.lua)
   0.373 Loading mod base 0.14.21 (data.lua)
   0.519 Checksum for core: 1291735968
   0.519 Checksum for mod base: 786624017
   0.824 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1483929853
   0.824 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1482912291
   0.980 Initial atlas bitmap size is 32768
   0.986 Created atlas bitmap 32768x4452
   0.987 Created atlas bitmap 4096x968
   0.988 Created atlas bitmap 4096x3644
   6.342 Sprites loaded
   6.342 Convert atlas 4096x968 to: trilinear-filtering 
   6.367 Convert atlas 4096x3644 to: mipmap 
   6.452 Loading sounds...
   7.972 Custom inputs active: 0
   7.998 Factorio initialised
  35.503 Loading map /home/garrett/.factorio/saves/_autosave1.zip
  35.503 Error FileUtil.cpp:284: Can't remove /home/garrett/.factorio/temp/currently-playing: No such file or directory
  35.512 Info Scenario.cpp:152: Map version 0.14.21-0
 300.670 Loading map /home/garrett/.factorio/saves/_autosave1.zip
 300.671 Error FileUtil.cpp:284: Can't remove /home/garrett/.factorio/temp/currently-playing: No such file or directory
 300.676 Info Scenario.cpp:152: Map version 0.14.21-0
Factorio crashed. Generating symbolized stacktrace, please wait ...
 311.086 Warning Logger.cpp:369: Symbols.size() == 28, usedSize == 17
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x00000000008430e4 in Rail::RailConnection::getRail(RailConnectionDirection) at /tmp/factorio-onaJy5/src/Entity/Rail.cpp:96 (discriminator 14)
#2  0x00000000008790b1 in RollingStock::disconnectBothNeighbors() at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:660
#3  0x0000000000a4a69d in onRollingStockDestroyed at /tmp/factorio-onaJy5/src/Rail/TrainManager.cpp:564
#4  0x0000000000a4a8b9 in onDestroy at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:241
#5  0x0000000000432f7f in Locomotive::onDestroy() at /tmp/factorio-onaJy5/src/Entity/Locomotive.cpp:89
#6  0x00000000008209ae in Entity::forceDestroy() at /tmp/factorio-onaJy5/src/Entity/Entity.cpp:248
#7  0x0000000000a7c957 in ManualStorage::handleMinedEntity(Entity*, bool) [clone .constprop.74585] at /tmp/factorio-onaJy5/src/ManualStorage.cpp:160
#8  0x0000000000b75fae in ManualMiner::performMining(unsigned int) at /tmp/factorio-onaJy5/src/ManualMiner.cpp:141
#9  0x0000000000c52a10 in Character::update() at /tmp/factorio-onaJy5/src/Entity/Character.cpp:505
#10 0x0000000000c55c5a in get_next at /home/build/build_environment/boost_1_61_0/output_linux64/include/boost/intrusive/detail/list_node.hpp:63
#11 0x0000000000c6542a in operator++ at /home/build/build_environment/boost_1_61_0/output_linux64/include/boost/intrusive/detail/list_iterator.hpp:81
#12 0x0000000000c661a1 in update at /tmp/factorio-onaJy5/src/Surface/Chunk.cpp:502
#13 0x000000000060764b in update at /tmp/factorio-onaJy5/src/Surface/Surface.cpp:867
#14 0x00000000011919d0 in update at /tmp/factorio-onaJy5/src/Map/Map.cpp:1132
#15 0x00007f6cbe077454 in update at /tmp/factorio-onaJy5/src/Game.cpp:144
#16 0x00007f6cbc1807df in update at /tmp/factorio-onaJy5/src/Scenario/Scenario.cpp:842
 311.782 Warning Logger.cpp:369: Symbols.size() == 27, usedSize == 16
 311.782 Error Rail.cpp:96: Unknown connection direction
Factorio crashed. Generating symbolized stacktrace, please wait ...
 312.555 Warning Logger.cpp:369: Symbols.size() == 33, usedSize == 22
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x00000000005c716b in CrashHandler::writeStackTrace() at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:105
#2  0x00000000005c7404 in CrashHandler::SignalHandler(int) at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:235
#3  0x00007f6cbc0cb0b0 in ?? at ??:0
#4  0x00007f6cbc0cb04f in ?? at ??:0
#5  0x00007f6cbc0cc47a in ?? at ??:0
#6  0x0000000000843145 in Rail::RailConnection::getRail(RailConnectionDirection) at /tmp/factorio-onaJy5/src/Entity/Rail.cpp:96 (discriminator 25)
#7  0x00000000008790b1 in RollingStock::disconnectBothNeighbors() at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:660
#8  0x0000000000a4a69d in onRollingStockDestroyed at /tmp/factorio-onaJy5/src/Rail/TrainManager.cpp:564
#9  0x0000000000a4a8b9 in onDestroy at /tmp/factorio-onaJy5/src/Entity/RollingStock.cpp:241
#10 0x0000000000432f7f in Locomotive::onDestroy() at /tmp/factorio-onaJy5/src/Entity/Locomotive.cpp:89
#11 0x00000000008209ae in Entity::forceDestroy() at /tmp/factorio-onaJy5/src/Entity/Entity.cpp:248
#12 0x0000000000a7c957 in ManualStorage::handleMinedEntity(Entity*, bool) [clone .constprop.74585] at /tmp/factorio-onaJy5/src/ManualStorage.cpp:160
#13 0x0000000000b75fae in ManualMiner::performMining(unsigned int) at /tmp/factorio-onaJy5/src/ManualMiner.cpp:141
#14 0x0000000000c52a10 in Character::update() at /tmp/factorio-onaJy5/src/Entity/Character.cpp:505
#15 0x0000000000c55c5a in get_next at /home/build/build_environment/boost_1_61_0/output_linux64/include/boost/intrusive/detail/list_node.hpp:63
#16 0x0000000000c6542a in operator++ at /home/build/build_environment/boost_1_61_0/output_linux64/include/boost/intrusive/detail/list_iterator.hpp:81
#17 0x0000000000c661a1 in update at /tmp/factorio-onaJy5/src/Surface/Chunk.cpp:502
#18 0x000000000060764b in update at /tmp/factorio-onaJy5/src/Surface/Surface.cpp:867
#19 0x00000000011919d0 in update at /tmp/factorio-onaJy5/src/Map/Map.cpp:1132
#20 0x00007f6cbe077454 in update at /tmp/factorio-onaJy5/src/Game.cpp:144
#21 0x00007f6cbc1807df in update at /tmp/factorio-onaJy5/src/Scenario/Scenario.cpp:842
 313.384 Warning Logger.cpp:369: Symbols.size() == 32, usedSize == 21
 313.384 Error CrashHandler.cpp:106: Map tick at moment of crash: 3607623
 313.384 Error Util.cpp:77: 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.
 313.401 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x000000000088fa0d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-onaJy5/src/Util/Logger.cpp:391
#1  0x00000000005c716b in CrashHandler::writeStackTrace() at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:105
#2  0x00000000005c7404 in CrashHandler::SignalHandler(int) at /tmp/factorio-onaJy5/src/Util/CrashHandler.cpp:235
#3  0x00007f6cbc0cb0b0 in ?? at ??:0
#4  0x00007f6cbb013989 in ?? at ??:0
 314.459 Error CrashHandler.cpp:106: Map tick at moment of crash: 3607623
 314.459 Error Util.cpp:77: 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: [0.14.21] Single Train causing server/client to crash

Posted: Mon Jan 09, 2017 4:35 pm
by Rseding91
Do you have any idea how the save got into that state? Possibly some way to reproduce it from a good state?

Re: [0.14.21] Single Train causing server/client to crash

Posted: Mon Jan 09, 2017 6:46 pm
by outpost
Unfortunately I don't. It had been running along fine on its own and I only happened upon it because I noticed that I had the conditions set in such a way that it was stuck at that stop. As soon as I modified the conditions and it started moving again is when I first discovered the crash.

Edit: Now that I think about it I can try loading from the earliest save and see if its occurring in that one. If it isn't I'll see if it ends back up in this state over time.

Re: [0.14.21] Single Train causing server/client to crash

Posted: Wed Apr 05, 2017 10:42 am
by Loewchen

Re: [0.14.21] Single Train causing server/client to crash

Posted: Wed Apr 05, 2017 10:47 am
by Rseding91
Most likely this is either the: train crashed into itself while moving or the "tried to move after building attached cargo wagon/locomotive" bug talked about in a previous FF.

Both of which leave the game is a broken state but don't crash until you try to move/mine the rolling stocks and both of whic are fixed for 0.15.