Page 1 of 1

[16.5] Crash in Inserter::getInventory(unsigned char)

Posted: Mon Dec 18, 2017 6:09 am
by oracleguy
Running on a Linux headless server, it crashed with this stack trace:

Code: Select all

24021.523 Error CrashHandler.cpp:419: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
24025.067 Warning Logger.cpp:446: Symbols.size() == 24, usedSize == 17
#0  0x0000000000b08b1d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-vr1aM6/src/Util/Logger.cpp:471
#1  0x0000000000684751 in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-vr1aM6/src/Util/CrashHandler.cpp:127
#2  0x00000000006848fa in CrashHandler::SignalHandler(int) at /tmp/factorio-vr1aM6/src/Util/CrashHandler.cpp:421
#3  0x0000000000035010 in ?? at ??:0
#4  0x0000000000746709 in Inserter::getInventory(unsigned char) at /tmp/factorio-vr1aM6/src/Entity/Inserter.cpp:1037
#5  0x000000000097cc93 in Entity::getInventory(unsigned char) const at /tmp/factorio-vr1aM6/src/Entity/Entity.hpp:274
#6  0x0000000000a74663 in Entity::sumCounts(std::map<ID<ItemPrototype, unsigned short>, unsigned int, std::less<ID<ItemPrototype, unsigned short> >, std::allocator<std::pair<ID<ItemPrototype, unsigned short> const, unsigned int> > >&) const at /tmp/factorio-vr1aM6/src/Entity/Entity.cpp:1184
#7  0x0000000000c14360 in Inserter::sumCounts(std::map<ID<ItemPrototype, unsigned short>, unsigned int, std::less<ID<ItemPrototype, unsigned short> >, std::allocator<std::pair<ID<ItemPrototype, unsigned short> const, unsigned int> > >&) const at /tmp/factorio-vr1aM6/src/Entity/Inserter.cpp:1515
#8  0x0000000000c148fd in ConstructionManager::sendRobotsToDeconstruct() at /tmp/factorio-vr1aM6/src/Logistics/ConstructionManager.cpp:413
#9  0x0000000000c14d8c in ConstructionManager::sendRobotsToRebuild() at /tmp/factorio-vr1aM6/src/Logistics/ConstructionManager.cpp:356
#10 0x0000000000c24769 in ConstructionManager::update() at /tmp/factorio-vr1aM6/src/Logistics/ConstructionManager.cpp:154
#11 0x0000000000c2527f in ForceData::update(unsigned int) at /tmp/factorio-vr1aM6/src/Force/ForceData.cpp:698
#12 0x0000000000c298d3 in ForceManager::update(unsigned int) at /tmp/factorio-vr1aM6/src/Force/ForceManager.cpp:91
#13 0x0000000000c2a2d3 in Map::update() at /tmp/factorio-vr1aM6/src/Map/Map.cpp:1232
#14 0x000000000041f6bf in Game::update() at /tmp/factorio-vr1aM6/src/Game.cpp:153
#15 (nil) in Scenario::update() at /tmp/factorio-vr1aM6/src/Scenario/Scenario.cpp:822
#16 0x000000000042596f in Scenario::updateStep() at /tmp/factorio-vr1aM6/src/Scenario/Scenario.cpp:728
24028.399 Warning Logger.cpp:446: Symbols.size() == 23, usedSize == 16
24028.399 Error CrashHandler.cpp:128: Map tick at moment of crash: 11600179
24028.399 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.
I can post the most recent auto save before the crash if that would help. This is just vanilla, no mods.

Edit: The same crash occurred again. Both times it was while using robots to remove a bunch of smelters, inserters, and belts.

Re: [16.5] Crash in Inserter::getInventory(unsigned char)

Posted: Mon Dec 18, 2017 6:28 am
by Linnun
This bug is fixed for 16.6: viewtopic.php?t=55176