[posila][16.6][Linux Headless] Crash on placing roboport

This subforum contains all the issues which we already resolved.
Post Reply
iLLogical
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Dec 19, 2017 10:41 am
Contact:

[posila][16.6][Linux Headless] Crash on placing roboport

Post by iLLogical »

Hello there,

I'm running the Factorio 16.6 headless server on a (KVM-)virtualized Debian Jessie server. During gameplay the server crashed with the following log messages. After restarting the game-server (Factorio; not the virtual server itself) everything was fine again. When crashing I was just walking around; I did not build anything nor performed another action than pressing W on my keyboard. Furthermore I was the only player at the server when the crash occurred.

Code: Select all

48525.731 Info AppManager.cpp:259: Saving to _autosave2 (blocking).
48526.403 Info AppManagerStates.cpp:1527: Saving finished
49126.389 Info AppManager.cpp:259: Saving to _autosave3 (blocking).
49127.077 Info AppManagerStates.cpp:1527: Saving finished
Factorio crashed. Generating symbolized stacktrace, please wait ...
49474.436 Warning Logger.cpp:442: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have addr2line installed to produce better stacktraces

#0  0x0000000000b08e9d
#1  0x0000000000683ad1
#2  0x0000000000683c7a
#3  0x0000000000033030
#4  (nil)
#5  0x000000000000000b
#6  0x0000000000070bd0
#7  0x0000000000076f96
#8  0x00000000000777de
#9  0x00000000006203cd
#10 0x0000000000789e4b
#11 0x00000000009911e0
#12 0x00000000009912f4
#13 0x0000000000ac5333
#14 0x0000000000ac0a7d
#15 0x0000000000ac135c
#16 0x0000000000864fd0
#17 0x000000000095a034
#18 0x00000000005cfb7c
#19 0x00000000009e7c40
#20 0x00000000009e6bae
#21 0x000000000089ae00
#22 0x0000000000c248d1
#23 0x0000000000c2544f
#24 0x0000000000c29aa3
#25 0x0000000000c2a4a3
#26 0x000000000041f6bf
#27 (nil)
#28 0x000000000042596f
49474.442 Warning Logger.cpp:442: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have addr2line installed to produce better stacktraces

49474.442 Error CrashHandler.cpp:128: Map tick at moment of crash: 4808843
49474.442 Error Util.cpp:67: 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.

Code: Select all

factorio@vs05:~$ ./bin/x64/factorio --version
Version: 0.16.6 (build 34439, linux64, headless)
Binary version: 64
Map input version: 0.13.0-0
Map output version: 0.16.6-0
There were nothing suspicious at the system's log files. I also made sure that the system had sufficient resources (RAM, CPU and I/O) when the crash occurred.
If you need the save game just let me know and I'll upload it for you. I have installed addr2line on my system to make sure I can provide better stack traces if the error will come up again.

Keep up the good work!
Last edited by iLLogical on Tue Dec 19, 2017 11:09 am, edited 1 time in total.

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

Re: [16.6][Linux Headless] Random crash during gameplay

Post by posila »

Thanks for the report.
Save might be helpful. It crashed when somebody built roboport.

Symbolized stacktrace:

Code: Select all

0x0000000000b08e9d: Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-KDn5yL/src/Util/Logger.cpp:471
0x0000000000683ad1: CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-KDn5yL/src/Util/CrashHandler.cpp:127
0x0000000000683c7a: CrashHandler::SignalHandler(int) at /tmp/factorio-KDn5yL/src/Util/CrashHandler.cpp:421
0x0000000000033030: ?? ??:0
0x0000000000000000: ?? ??:0
0x000000000000000b: ?? ??:0
0x0000000000070bd0: ?? ??:0
0x0000000000076f96: ?? ??:0
0x00000000000777de: ?? ??:0
0x00000000006203cd: std::_Vector_base<_jcv_point, std::allocator<_jcv_point> >::_M_deallocate(_jcv_point*, unsigned long) at /usr/include/c++/7/bits/stl_vector.h:179
0x0000000000789e4b: Triangulation::updateTriangulation(std::vector<LogisticCell*, std::allocator<LogisticCell*> > const&, int) at /tmp/factorio-KDn5yL/src/Logistics/Triangulation.cpp:60
0x00000000009911e0: std::vector<LogisticCell*, std::allocator<LogisticCell*> >::~vector() at /usr/include/c++/7/bits/stl_vector.h:434
0x00000000009912f4: LogisticCell::activateTransmission(LogisticManager&) at /tmp/factorio-KDn5yL/src/Logistics/LogisticCell.cpp:146
0x0000000000ac5333: Roboport::setup(SetupData const&) at /tmp/factorio-KDn5yL/src/Entity/Roboport.cpp:113
0x0000000000ac0a7d: __gnu_cxx::__normal_iterator<ItemStack*, std::vector<ItemStack, std::allocator<ItemStack> > >::__normal_iterator(ItemStack* const&) at /usr/include/c++/7/bits/stl_iterator.h:780
0x0000000000ac135c: ManualBuilder::BuildResult::~BuildResult() at /tmp/factorio-KDn5yL/src/ManualBuilder.cpp:64
0x0000000000864fd0: GameActionHandler::buildItem(InputAction const&, Controller*) at /tmp/factorio-KDn5yL/src/GameActionHandler.cpp:556
0x000000000095a034: GameActionHandler::actionPerformed(InputAction const&) at /tmp/factorio-KDn5yL/src/GameActionHandler.cpp:262 (discriminator 4)
0x00000000005cfb7c: InputHandler::flushToListeners(InputAction const&, bool) at /tmp/factorio-KDn5yL/src/Input/InputHandler.cpp:62
0x00000000009e7c40: NetworkInputHandler::tryToApplyNextTickClosure() at /tmp/factorio-KDn5yL/src/Net/NetworkInputHandler.cpp:110
0x00000000009e6bae: ServerMultiplayerManager::updateMultiplayerInputInternal() at /tmp/factorio-KDn5yL/src/Net/ServerMultiplayerManager.cpp:644
0x000000000089ae00: MultiplayerManagerBase::updateMultiplayerInput() at /tmp/factorio-KDn5yL/src/Net/MultiplayerManagerBase.cpp:180
0x0000000000c248d1: MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) at /tmp/factorio-KDn5yL/src/MainLoop.cpp:967
0x0000000000c2544f: MainLoop::gameUpdateLoop(MainLoop::HeavyMode) at /tmp/factorio-KDn5yL/src/MainLoop.cpp:852
0x0000000000c29aa3: MainLoop::mainLoopStepHeadless(MainLoop::HeavyMode) at /tmp/factorio-KDn5yL/src/MainLoop.cpp:467
0x0000000000c2a4a3: MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) at /tmp/factorio-KDn5yL/src/MainLoop.cpp:326
0x000000000041f6bf: main at /tmp/factorio-KDn5yL/src/Main.cpp:672 (discriminator 4)
0x0000000000000000: ?? ??:0
0x000000000042596f: _start at ??:?

iLLogical
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Dec 19, 2017 10:41 am
Contact:

Re: [16.6][Linux Headless] Random crash during gameplay

Post by iLLogical »

Managed it to reproduce the crash!

I have to correct myself: The crash is not occurring during walking but when I place a Robotport that is connecting two different logistic networks to a single one.
The roboport that is crashing the server
The roboport that is crashing the server
IMG_2033.jpg (1.35 MiB) Viewed 2631 times
The red-circled roboport is the one I placed when the server seems to crash. As you can see it connects with a roboport in the north (logistic network A) and with two other roboports (logistic network B) in the south.

Also thanks to addr2line here is a more-specific stack trace:

Code: Select all

657.593 Info ServerMultiplayerManager.cpp:789: mapTick(4788050) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
Factorio crashed. Generating symbolized stacktrace, please wait ...
 968.662 Warning Logger.cpp:446: Symbols.size() == 41, usedSize == 29
#0  0x0000000000b08e9d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-KDn5yL/src/Util/Logger.cpp:471
#1  0x0000000000683ad1 in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-KDn5yL/src/Util/CrashHandler.cpp:127
#2  0x0000000000683c7a in CrashHandler::SignalHandler(int) at /tmp/factorio-KDn5yL/src/Util/CrashHandler.cpp:421
#3  0x0000000000033030 in ?? at ??:0
#4  (nil) in ?? at ??:0
#5  0x000000000000000b in ?? at ??:0
#6  0x0000000000070bd0 in ?? at ??:0
#7  0x0000000000076f96 in ?? at ??:0
#8  0x00000000000777de in ?? at ??:0
#9  0x00000000006203cd in std::_Vector_base<_jcv_point, std::allocator<_jcv_point> >::_M_deallocate(_jcv_point*, unsigned long) at /usr/include/c++/7/bits/stl_vector.h:179
#10 0x0000000000789e4b in std::_Vector_base<_jcv_point, std::allocator<_jcv_point> >::~_Vector_base() at /usr/include/c++/7/bits/stl_vector.h:162
#11 0x00000000009911e0 in std::vector<_jcv_point, std::allocator<_jcv_point> >::~vector() at /usr/include/c++/7/bits/stl_vector.h:435
#12 0x00000000009912f4 in Triangulation::voronoiTriangulation(std::vector<LogisticCell*, std::allocator<LogisticCell*> > const&, unsigned long) at /tmp/factorio-KDn5yL/src/Logistics/Triangulation.cpp:70
#13 0x0000000000ac5333 in Triangulation::updateTriangulation(std::vector<LogisticCell*, std::allocator<LogisticCell*> > const&, int) at /tmp/factorio-KDn5yL/src/Logistics/Triangulation.cpp:60
#14 0x0000000000ac0a7d in std::vector<LogisticCell*, std::allocator<LogisticCell*> >::~vector() at /usr/include/c++/7/bits/stl_vector.h:434
#15 0x0000000000ac135c in LogisticManager::addLogisticCell(LogisticCell*) at /tmp/factorio-KDn5yL/src/Logistics/LogisticManager.cpp:194
#16 0x0000000000864fd0 in LogisticCell::activateTransmission(LogisticManager&) at /tmp/factorio-KDn5yL/src/Logistics/LogisticCell.cpp:146
#17 0x000000000095a034 in Roboport::setup(SetupData const&) at /tmp/factorio-KDn5yL/src/Entity/Roboport.cpp:113
#18 0x00000000005cfb7c in __gnu_cxx::__normal_iterator<ItemStack*, std::vector<ItemStack, std::allocator<ItemStack> > >::__normal_iterator(ItemStack* const&) at /usr/include/c++/7/bits/stl_iterator.h:780
#19 0x00000000009e7c40 in std::vector<ItemStack, std::allocator<ItemStack> >::begin() at /usr/include/c++/7/bits/stl_vector.h:564
#20 0x00000000009e6bae in Inventory::begin() at /tmp/factorio-KDn5yL/src/Item/Inventory.hpp:182
#21 0x000000000089ae00 in ManualBuilder::buildItem(ActionData::BuildItemParameters const&, ForceID, ID<EntityPrototype, unsigned short>, bool, bool) at /tmp/factorio-KDn5yL/src/ManualBuilder.cpp:769
#22 0x0000000000c248d1 in ManualBuilder::BuildResult::~BuildResult() at /tmp/factorio-KDn5yL/src/ManualBuilder.cpp:64
#23 0x0000000000c2544f in CharacterController::buildItem(ActionData::BuildItemParameters const&) at /tmp/factorio-KDn5yL/src/Controller/CharacterController.cpp:449
#24 0x0000000000c29aa3 in GameActionHandler::buildItem(InputAction const&, Controller*) at /tmp/factorio-KDn5yL/src/GameActionHandler.cpp:556
#25 0x0000000000c2a4a3 in GameActionHandler::actionPerformed(InputAction const&) at /tmp/factorio-KDn5yL/src/GameActionHandler.cpp:262 (discriminator 4)
#26 0x000000000041f6bf in InputHandler::flushToListeners(InputAction const&, bool) at /tmp/factorio-KDn5yL/src/Input/InputHandler.cpp:62
#27 (nil) in InputHandler::flushActions(bool) at /tmp/factorio-KDn5yL/src/Input/InputHandler.cpp:55
#28 0x000000000042596f in NetworkInputHandler::flushActions(bool) at /tmp/factorio-KDn5yL/src/Net/NetworkInputHandler.cpp:157
 971.608 Warning Logger.cpp:446: Symbols.size() == 40, usedSize == 28
 971.608 Error CrashHandler.cpp:128: Map tick at moment of crash: 4806539
 971.608 Error Util.cpp:67: 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.
Latest savegame:
crashsave.zip
Savegame
(13.45 MiB) Downloaded 130 times

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

Re: [posila][16.6][Linux Headless] Crash on placing roboport

Post by posila »

Thanks for the report.
Fixed for 0.16.7

Post Reply

Return to “Resolved Problems and Bugs”