[0.17.76] Crash on load: "PropertyTree::getType()"

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
OvermindDL1
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Oct 05, 2014 6:12 am
Contact:

[0.17.76] Crash on load: "PropertyTree::getType()"

Post by OvermindDL1 »

Same mod set had been working fine before unchanged, but loaded this time and this crash happened while the game was loading (mods used is in the log, CargoShips and BI was edited to not crash on 0.17.75+ via tiny edits as documented in their respective 0.17.75 issues).

Native code crash, here's the stacktrace part of the log for easy searchability:

Code: Select all

 113.665 Error CrashHandler.cpp:603: Received SIGSEGV
 123.936 Warning Logger.cpp:518: Symbols.size() == 74, usedSize == 21
Factorio crashed. Generating symbolized stacktrace, please wait ...
Raw stacktrace: 0xa04843, 0xbe9bdd, 0xbe9f4d, 0xbe9fa9, 0x354b0, 0x88ab47, 0x88ab70, 0x88ab70, 0x88ab70, 0x88ab70, 0x88ab70, 0x88ab70, 0xdc2dbe, 0xdc376c, 0xdc3940, 0xebf9e6, 0xfef67e, 0x101bc53, 0x539cbc, 0, 0x54baae
 133.905 Warning Logger.cpp:518: Symbols.size() == 69, usedSize == 20
#0  0x0000000000be9bdd in GlobalContext::getMap() at /tmp/factorio-build-WlK3S1/src/GlobalContext.cpp:1878
#1  0x0000000000be9f4d in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-build-WlK3S1/src/Util/CrashHandler.cpp:188
#2  0x0000000000be9fa9 in CrashHandler::commonSignalHandler(int) at /tmp/factorio-build-WlK3S1/src/Util/CrashHandler.cpp:606
#3  0x00000000000354b0 in CrashHandler::SignalHandler(int) at /tmp/factorio-build-WlK3S1/src/Util/CrashHandler.cpp:620
#4  0x000000000088ab47 in ?? at ??:0
#5  0x000000000088ab70 in PropertyTree::getType() const at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.hpp:178
#6  0x000000000088ab70 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:204
#7  0x000000000088ab70 in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#8  0x000000000088ab70 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#9  0x000000000088ab70 in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#10 0x000000000088ab70 in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#11 0x0000000000dc2dbe in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#12 0x0000000000dc376c in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#13 0x0000000000dc3940 in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#14 0x0000000000ebf9e6 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#15 0x0000000000fef67e in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#16 0x000000000101bc53 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#17 0x0000000000539cbc in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#18 (nil) in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#19 0x000000000054baae in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#20 (nil) in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#21 0x406e800000000000 in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#22 0x406e800000000000 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#23 0x0000000000000004 in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#24 0x0000000000000001 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#25 0x0000000049dfb8f2 in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#26 0x0000000037371d62 in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#27 0x0000000049dfb90a in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#28 0x0000000049dfb924 in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#29 0x0000000037371d7a in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#30 0x00000000007ba556 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#31 0x00000000076d8fc0 in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#32 0x00007fff1e8d5ae8 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#33 0x4094500000000000 in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#34 0x4094500000000000 in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#35 0x00007fff1e8d5ae8 in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#36 0x0000000000000001 in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#37 0x0000000049dfb884 in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#38 0x0000000037371cf4 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#39 0x0000000049dfb89c in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#40 0x0000000049dfb8b6 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#41 0x0000000037371d0c in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#42 0x00000000007ba556 in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#43 0x00000000076d8fa0 in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#44 0x00007fff1e8d5ae8 in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#45 0x406e800000000000 in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#46 0x406e800000000000 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#47 0x00007fff1e8d5ae8 in ImmutableStringTemplate<17ul>::~ImmutableStringTemplate() at /tmp/factorio-build-WlK3S1/src/Util/ImmutableString.hpp:157
#48 0x0000000000000001 in PropertyTree::~PropertyTree() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:197
#49 0x000000004a0698e2 in void std::_Destroy<PropertyTree>(PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:98
#50 0x00000000375dfd52 in void std::_Destroy_aux<false>::__destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:108
#51 0x000000004a0698fa in void std::_Destroy<PropertyTree*>(PropertyTree*, PropertyTree*) at /usr/include/c++/8/bits/stl_construct.h:137
#52 0x000000004a069914 in void std::_Destroy<PropertyTree*, PropertyTree>(PropertyTree*, PropertyTree*, std::allocator<PropertyTree>&) at /usr/include/c++/8/bits/stl_construct.h:206
#53 0x00000000375dfd6a in std::vector<PropertyTree, std::allocator<PropertyTree> >::~vector() at /usr/include/c++/8/bits/stl_vector.h:567
#54 0x00000000007ba556 in PropertyTree::clear() at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.cpp:216
#55 0x00007fff1e8d4df0 in PropertyTree& PropertyTree::operator=<PropertyTree>(PropertyTree&&) at /tmp/factorio-build-WlK3S1/src/Util/PropertyTree.hpp:315
#56 0x0000000000000028 in ModManager::updateHistory(LuaDataLoader&, ModManager::LuaHistoryData&, ModID) at /tmp/factorio-build-WlK3S1/src/Data/ModManager.cpp:1000
#57 0x4094500000000000 in std::string::_M_rep() const at /usr/include/c++/8/bits/basic_string.h:3303
#58 0x4094500000000000 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() at /usr/include/c++/8/bits/basic_string.h:3621
#59 0x00000000e172b211 in ModID::~ModID() at /tmp/factorio-build-WlK3S1/src/Data/ModID.hpp:6
#60 0x0000000000000001 in ModManager::loadMod(ModID, LuaDataLoader&, ModManager::LuaHistoryData&, PackagePath const&, char const*, Crc&) at /tmp/factorio-build-WlK3S1/src/Data/ModManager.cpp:611
#61 0x000000004a069874 in ModManager::loadModsPhase(LuaDataLoader&, ModManager::LuaHistoryData&, char const*) at /tmp/factorio-build-WlK3S1/src/Data/ModManager.cpp:484
#62 0x00000000375dfce4 in updateLoadingProgress(double) at /tmp/factorio-build-WlK3S1/src/Data/ModManager.cpp:266
#63 0x000000004a06988c in ModManager::loadData(bool) at /tmp/factorio-build-WlK3S1/src/Data/ModManager.cpp:397
#64 0x000000004a0698a6 in GlobalContext::init(bool, bool, bool, std::optional<WindowPositionData>) at /tmp/factorio-build-WlK3S1/src/GlobalContext.cpp:521
#65 0x00000000375dfcfc in MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode) at /tmp/factorio-build-WlK3S1/src/MainLoop.cpp:270 (discriminator 2)
#66 0x00000000007ba556 in main at /tmp/factorio-build-WlK3S1/src/Main.cpp:1383 (discriminator 3)
#67 (nil) in ?? at ??:0
#68 0x00007f358e7f653e in _start at ??:?
Stack trace logging done
 133.906 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.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
[1]    31400 segmentation fault (core dumped)  bin/x64/factorio
Loading it again directly after loaded fine and without issue and game plays normally.

<insert-comments-about-using-rustlang-here />
Attachments
factorio-current.log
(84.48 KiB) Downloaded 20 times

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.17.76] Native code Crash on load (modded)

Post by TruePikachu »

Looking at the backtrace, I'm not quite sure the issue would be mod-related, unless there's a non-kosher `settings.lua` involved (which I'd doubt is the case). My best guesses would either be a rare bug with the `ImmutableStringTemplate` implementation or, more likely, some form of memory corruption stemming from something (maybe run a memtest just to be safe?)

Rseding91
Factorio Staff
Factorio Staff
Posts: 11928
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.76] Crash on load: "PropertyTree::getType()"

Post by Rseding91 »

Based off where it crashed and you saying it randomly happened once I'm going to go with memory corruption or 0/1 magic. You can try running memtest86+ and see if it points at any issues.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “1 / 0 magic”