[??] Crash of server when importing blueprint book string from Autotorio to add landfill underneath

This subforum contains all the issues which we already resolved.
Post Reply
jlucktay
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Nov 06, 2018 12:57 am
Contact:

[??] Crash of server when importing blueprint book string from Autotorio to add landfill underneath

Post by jlucktay »

I have posted what I hope is all of the gory/relevant details in this GitHub issue as I am not sure if this is a Factorio problem or an Autotorio problem.

We don't run any mods on this server.

Steps to reproduce:
  1. Run up a vanilla un-modded Factorio 1.0.0 game
  2. Import this blueprint book string
  3. 💥
Here is the stack trace from the server log, also in the GH issue linked above:

Code: Select all

2020-11-12T12:31:12.028605721Z 5507.891 Error CrashHandler.cpp:621: Received SIGSEGV
2020-11-12T12:31:29.446611815Z 5525.309 Warning Logger.cpp:522: Symbols.size() == 45, usedSize == 27
2020-11-12T12:31:29.446692170Z Factorio crashed. Generating symbolized stacktrace, please wait ...
2020-11-12T12:31:44.938865979Z Raw stacktrace: 0xae6195, 0xd077a5, 0xd07bbd, 0xd07c19, 0x3d7d0, 0x74af71, 0xc20ebe, 0xf81035, 0xf81425, 0xf80c64, 0xffd52e, 0xffd5ec, 0xe5bbe3, 0x94d1cc, 0x94d2e1, 0xd7a562, 0xd89c51, 0xeb17c0, 0x12524f0, 0x1252965, 0x1276429, 0x1276f93, 0x1278df0, 0x1279d0f, 0x5bcf1d, 0, 0x5ce20e
2020-11-12T12:31:44.938907534Z 5540.801 Warning Logger.cpp:522: Symbols.size() == 40, usedSize == 26
2020-11-12T12:31:44.938911942Z #0  0x0000000000d077a5 in GlobalContext::getMap() at /tmp/factorio-build-e5O6Xt/src/GlobalContext.cpp:1985
2020-11-12T12:31:44.938915345Z #1  0x0000000000d07bbd in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-build-e5O6Xt/src/Util/CrashHandler.cpp:188
2020-11-12T12:31:44.938918850Z #2  0x0000000000d07c19 in CrashHandler::commonSignalHandler(int) at /tmp/factorio-build-e5O6Xt/src/Util/CrashHandler.cpp:624
2020-11-12T12:31:44.938922176Z #3  0x000000000003d7d0 in CrashHandler::SignalHandler(int) at /tmp/factorio-build-e5O6Xt/src/Util/CrashHandler.cpp:638
2020-11-12T12:31:44.938936206Z #4  0x000000000074af71 in ?? at ??:0
2020-11-12T12:31:44.938940447Z #5  0x0000000000c20ebe in ItemStack::transferToPrioritySlots(ItemStack&, unsigned int) at /tmp/factorio-build-e5O6Xt/src/Item/ItemStack.cpp:1043
2020-11-12T12:31:44.938944758Z #6  0x0000000000f81035 in ItemStack::transfer(ItemStack&, unsigned int, unsigned int, IncludeSubInventories) at /tmp/factorio-build-e5O6Xt/src/Item/ItemStack.cpp:1028
2020-11-12T12:31:44.938948525Z #7  0x0000000000f81425 in ItemStack::~ItemStack() at /tmp/factorio-build-e5O6Xt/src/Item/ItemStack.cpp:677
2020-11-12T12:31:44.938951863Z #8  0x0000000000f80c64 in BlueprintImportExportEngine::loadBlueprintBookBlueprints(BlueprintBook&, unsigned int, Map&, PropertyTree const&, bool) at /tmp/factorio-build-e5O6Xt/src/Util/BlueprintImportExportEngine.cpp:1041
2020-11-12T12:31:44.938956254Z #9  0x0000000000ffd52e in PropertyTree::findp(char const*, bool) const at /tmp/factorio-build-e5O6Xt/src/Util/PropertyTree.cpp:722
2020-11-12T12:31:44.938959642Z #10 0x0000000000ffd5ec in BlueprintImportExportEngine::loadBlueprintBookFromPropertyTree(Map&, unsigned int, PropertyTree const&, bool) at /tmp/factorio-build-e5O6Xt/src/Util/BlueprintImportExportEngine.cpp:599
2020-11-12T12:31:44.938963639Z #11 0x0000000000e5bbe3 in std::__uniq_ptr_impl<Item, std::default_delete<Item> >::_M_ptr() const at /home/build/gcc-9.2/include/c++/9.2.0/bits/unique_ptr.h:154
2020-11-12T12:31:44.938969408Z #12 0x000000000094d1cc in std::unique_ptr<Item, std::default_delete<Item> >::get() const at /home/build/gcc-9.2/include/c++/9.2.0/bits/unique_ptr.h:353
2020-11-12T12:31:44.938974311Z #13 0x000000000094d2e1 in std::unique_ptr<Item, std::default_delete<Item> >::release() at /home/build/gcc-9.2/include/c++/9.2.0/bits/unique_ptr.h:375
2020-11-12T12:31:44.938978059Z #14 0x0000000000d7a562 in std::unique_ptr<Item, std::default_delete<Item> >::operator=(std::unique_ptr<Item, std::default_delete<Item> >&&) at /home/build/gcc-9.2/include/c++/9.2.0/bits/unique_ptr.h:299
2020-11-12T12:31:44.938982239Z #15 0x0000000000d89c51 in BlueprintImportExportEngine::loadItemFromPropertyTree(Map&, unsigned int, PropertyTree const&, bool) at /tmp/factorio-build-e5O6Xt/src/Util/BlueprintImportExportEngine.cpp:504
2020-11-12T12:31:44.938986059Z #16 0x0000000000eb17c0 in PropertyTree::~PropertyTree() at /tmp/factorio-build-e5O6Xt/src/Util/PropertyTree.cpp:233
2020-11-12T12:31:44.938994490Z #17 0x00000000012524f0 in BlueprintImportExportEngine::loadItemFromString(Map&, std::basic_string_view<char, std::char_traits<char> >, bool) at /tmp/factorio-build-e5O6Xt/src/Util/BlueprintImportExportEngine.cpp:484
2020-11-12T12:31:44.939006099Z #18 0x0000000001252965 in ItemStack::operator=(ItemStack&&) at /tmp/factorio-build-e5O6Xt/src/Item/ItemStack.hpp:241
2020-11-12T12:31:44.939010120Z #19 0x0000000001276429 in BlueprintImportExportEngine::ImportResult::operator=(BlueprintImportExportEngine::ImportResult&&) at /tmp/factorio-build-e5O6Xt/src/Util/BlueprintImportExportEngine.hpp:32
2020-11-12T12:31:44.939014424Z #20 0x0000000001276f93 in GameActionHandler::importBlueprintString(InputAction const&, Controller*) at /tmp/factorio-build-e5O6Xt/src/GameActionHandler.cpp:3262
2020-11-12T12:31:44.939018306Z #21 0x0000000001278df0 in GameActionHandler::actionPerformed(InputAction const&) at /tmp/factorio-build-e5O6Xt/src/GameActionHandler.cpp:357 (discriminator 1)
2020-11-12T12:31:44.939022164Z #22 0x0000000001279d0f in InputHandler::flushToListeners(InputAction const&, bool) at /tmp/factorio-build-e5O6Xt/src/Input/InputHandler.cpp:72
2020-11-12T12:31:44.939025852Z #23 0x00000000005bcf1d in InputHandler::flushActions(bool, unsigned int) at /tmp/factorio-build-e5O6Xt/src/Input/InputHandler.cpp:64
2020-11-12T12:31:44.939029889Z #24 (nil) in NetworkInputHandler::flushActions(bool, unsigned int) at /tmp/factorio-build-e5O6Xt/src/Net/NetworkInputHandler.cpp:180
2020-11-12T12:31:44.939033691Z #25 0x00000000005ce20e in InputHandler::nextTick(unsigned int) at /tmp/factorio-build-e5O6Xt/src/Input/InputHandler.cpp:52
2020-11-12T12:31:44.939037789Z #26 (nil) in NetworkInputHandler::nextTick(unsigned int) at /tmp/factorio-build-e5O6Xt/src/Net/NetworkInputHandler.cpp:127
2020-11-12T12:31:44.939041807Z #27 0x00007ffcef716650 in NetworkInputHandler::tryToApplyNextTickClosure() at /tmp/factorio-build-e5O6Xt/src/Net/NetworkInputHandler.cpp:120
2020-11-12T12:31:44.939045767Z #28 0x00007ff1c5970201 in ServerMultiplayerManager::updateMultiplayerInputInternal() at /tmp/factorio-build-e5O6Xt/src/Net/ServerMultiplayerManager.cpp:723
2020-11-12T12:31:44.939049753Z #29 0x0000000000000005 in ServerMultiplayerManager::updateMultiplayerInputInternal() at /tmp/factorio-build-e5O6Xt/src/Net/ServerMultiplayerManager.cpp:710
2020-11-12T12:31:44.939053756Z #30 0x00007ff1c5962b08 in MultiplayerManagerBase::updateMultiplayerInput() at /tmp/factorio-build-e5O6Xt/src/Net/MultiplayerManagerBase.cpp:174
2020-11-12T12:31:44.939057769Z #31 0x0000000000000005 in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) at /tmp/factorio-build-e5O6Xt/src/MainLoop.cpp:1157
2020-11-12T12:31:44.939061821Z #32 (nil) in MainLoop::gameUpdateLoop(MainLoop::HeavyMode) at /tmp/factorio-build-e5O6Xt/src/MainLoop.cpp:1042
2020-11-12T12:31:44.939065546Z #33 0x0000000000000001 in MainLoop::mainLoopStepHeadless(MainLoop::HeavyMode) at /tmp/factorio-build-e5O6Xt/src/MainLoop.cpp:568
2020-11-12T12:31:44.939069427Z #34 0x00007ff1c59921f0 in MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode) at /tmp/factorio-build-e5O6Xt/src/MainLoop.cpp:374
2020-11-12T12:31:44.939077233Z #35 (nil) in hostMultiplayerGameInternal(cxxopts::ParseResult const&, bool) at /tmp/factorio-build-e5O6Xt/src/CommandLineMultiplayer.cpp:289 (discriminator 2)
2020-11-12T12:31:44.939081309Z #36 0x00007ff1c5962b08 in CommandLineMultiplayer::hostCommandLineMultiplayerGame(cxxopts::ParseResult const&, Filesystem::Path const&, Filesystem::Path const&, bool) at /tmp/factorio-build-e5O6Xt/src/CommandLineMultiplayer.cpp:340 (discriminator 2)
2020-11-12T12:31:44.939086188Z #37 0x00007ff1c59921f0 in main at /tmp/factorio-build-e5O6Xt/src/Main.cpp:639
2020-11-12T12:31:44.939089770Z #38 0x00007ff1c5992558 in ?? at ??:0
2020-11-12T12:31:44.939093766Z #39 (nil) in _start at ??:?
2020-11-12T12:31:44.939097587Z Stack trace logging done
2020-11-12T12:31:44.939101132Z 5540.801 Error CrashHandler.cpp:189: Map tick at moment of crash: 664303
2020-11-12T12:31:44.939105379Z 5540.801 Error Util.cpp:97: 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.
2020-11-12T12:31:44.939109528Z Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
2020-11-12T12:31:44.939113351Z 5540.801 Uploading log file

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [??] Crash of server when importing blueprint book string from Autotorio to add landfill underneath

Post by Klonan »

I tried it, it crashes in 1.0, but not in 1.1, so I would say its already fixed

jlucktay
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Nov 06, 2018 12:57 am
Contact:

Re: [??] Crash of server when importing blueprint book string from Autotorio to add landfill underneath

Post by jlucktay »

Great news, thanks for checking!

Post Reply

Return to “Resolved Problems and Bugs”