Page 1 of 1

[0.17.64] Crash when exploring map

Posted: Sat Aug 10, 2019 7:19 pm
by ad4847
Every time I explore new terrain the game crashes after a while.

Log: https://pastebin.com/sU6ZaNEP

Note that I am playing with the ZAdventure, ZAdv_ruins mods...

Re: [0.17.64] Crash when exploring map

Posted: Sun Aug 11, 2019 6:36 am
by PyroFire
From the error, my best guess is that something about one of your mods trying to write symbols, or something else invalid to the log file.

What with the error: Symbols.size()==37, usedSize==25

But that's just a guess.


1. Helmod appears to be erroring on load:
637.641 Script @__helmod__/controller/Controller.lua:307: __helmod__/controller/Controller.lua:681: attempt to index local 'lua_player' (a nil value)

2. There's a lot of these:
1060.249 Script @__ZAdventure__/control.lua:27: [[ZADV]] Not enough technologies for "ZADV_Base - unbuilded atom", skip this time..
1061.529 Script @__ZAdventure__/control.lua:27: [[ZADV]] Not enough technologies for "ZADV_Base - unbuilded atom", skip this time..

3. here's the actual crash:
1145.612 Script @__ZAdventure__/control.lua:27: [[ZADV]] Not enough technologies for "ZADV_Base - unbuilded atom", skip this time..
1145.613 Script @__ZAdventure__/control.lua:27: [[ZADV]] New area: Ruins-medium treeIsland [neutral]
1145.613 Script @__ZAdventure__/control.lua:27: [[ZADV]] a:11 s:9
1157.260 Error CrashHandler.cpp:603: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
Raw stacktrace: 0xb2fa58, 0xcfb8dd, 0xbbe65d, 0xbbe9c8, 0xbbea29, 0x3a7e0, 0x82b810, 0xa6bf31, 0x7bd223, 0xb03928, 0xf7a0cb, 0xf7a1ab, 0xb09698, 0xc83f20, 0x6ec95d, 0x9f107d, 0xf41c97, 0xf78045, 0xf7856d, 0xf788c7, 0xfa8134, 0xfa8672, 0xb494e1, 0x195340f, 0x957f, 0
1167.714 Warning Logger.cpp:518: Symbols.size() == 37, usedSize == 25
#0 0x0000000000cfb8dd in std::__uniq_ptr_impl<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::_M_ptr() const at /usr/include/c++/8/bits/unique_ptr.h:150
#1 0x0000000000bbe65d in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::get() const at /usr/include/c++/8/bits/unique_ptr.h:343
#2 0x0000000000bbe9c8 in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::operator->() const at /usr/include/c++/8/bits/unique_ptr.h:337
#3 0x0000000000bbea29 in Logger::flush() at /tmp/factorio-build-Tyr6dO/src/Util/Logger.cpp:558
#4 0x000000000003a7e0 in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-build-Tyr6dO/src/Util/Logger.cpp:544
#5 0x000000000082b810 in GlobalContext::getMap() at /tmp/factorio-build-Tyr6dO/src/GlobalContext.cpp:1839
#6 0x0000000000a6bf31 in CrashHandler::writeStackTrace(CrashHandler::CrashReason) at /tmp/factorio-build-Tyr6dO/src/Util/CrashHandler.cpp:188
#7 0x00000000007bd223 in CrashHandler::commonSignalHandler(int) at /tmp/factorio-build-Tyr6dO/src/Util/CrashHandler.cpp:606
#8 0x0000000000b03928 in CrashHandler::SignalHandler(int) at /tmp/factorio-build-Tyr6dO/src/Util/CrashHandler.cpp:620
#9 0x0000000000f7a0cb in ?? at ??:0
#10 0x0000000000f7a1ab in SmallBitset<19ul>::test(unsigned long) const at /tmp/factorio-build-Tyr6dO/src/Util/Container/SmallBitset.hpp:40
#11 0x0000000000b09698 in RenderParameters::Flags::contains(RenderParameters::Flags::Enum) const at /tmp/factorio-build-Tyr6dO/src/Graphics/RenderParameters.hpp:219
#12 0x0000000000c83f20 in RenderParameters::isRenderingBlueprint() const at /tmp/factorio-build-Tyr6dO/src/Graphics/RenderParameters.hpp:142
#13 0x00000000006ec95d in Turret::drawSelectionInfo(DrawQueue&) const at /tmp/factorio-build-Tyr6dO/src/Entity/Turret.cpp:115
#14 0x00000000009f107d in FluidTurret::drawSelectionInfo(DrawQueue&) const at /tmp/factorio-build-Tyr6dO/src/Entity/FluidTurret.cpp:251
#15 0x0000000000f41c97 in BuildBaseBehavior::selectEntityToBuild() at /tmp/factorio-build-Tyr6dO/src/AI/BuildBaseBehavior.cpp:258
#16 0x0000000000f78045 in BuildBaseBehavior::prepareBuilding(BoundingBox const&, CollisionMask) at /tmp/factorio-build-Tyr6dO/src/AI/BuildBaseBehavior.cpp:133
#17 0x0000000000f7856d in BuildBaseBehavior::finishBuilding() at /tmp/factorio-build-Tyr6dO/src/AI/BuildBaseBehavior.cpp:242
#18 0x0000000000f788c7 in BuildBaseBehavior::execute() at /tmp/factorio-build-Tyr6dO/src/AI/BuildBaseBehavior.cpp:116
#19 0x0000000000fa8134 in Commandable::runBehavior() at /tmp/factorio-build-Tyr6dO/src/AI/Commandable.cpp:195
#20 0x0000000000fa8672 in Unit::update() at /tmp/factorio-build-Tyr6dO/src/Entity/Unit.cpp:304
#21 0x0000000000b494e1 in Chunk::updateActiveEntities(IntrusiveList<UpdatableEntity, void, false>&) at /tmp/factorio-build-Tyr6dO/src/Surface/Chunk.cpp:577
#22 0x000000000195340f in Chunk::isConditionallyActive(unsigned int) const at /tmp/factorio-build-Tyr6dO/src/Surface/Chunk.cpp:966
#23 0x000000000000957f in Chunk::updateEntities(unsigned int) at /tmp/factorio-build-Tyr6dO/src/Surface/Chunk.cpp:634
#24 (nil) in Surface::update() at /tmp/factorio-build-Tyr6dO/src/Surface/Surface.cpp:1465
#25 (nil) in Map::updateEntities() at /tmp/factorio-build-Tyr6dO/src/Map/Map.cpp:1501 (discriminator 2)
#26 0x3fd52cecc0000000 in Map::update() at /tmp/factorio-build-Tyr6dO/src/Map/Map.cpp:1460
#27 0x3febf5196adb0390 in Game::update() at /tmp/factorio-build-Tyr6dO/src/Game.cpp:201
#28 0xbfdf232577dbde38 in Scenario::update() at /tmp/factorio-build-Tyr6dO/src/Scenario/Scenario.cpp:1215
#29 0x3fe313565a400000 in Scenario::updateStep() at /tmp/factorio-build-Tyr6dO/src/Scenario/Scenario.cpp:1112
#30 0x0000000000739a86 in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) at /tmp/factorio-build-Tyr6dO/src/MainLoop.cpp:1167
#31 0x3f14b3b33f14b3b3 in MainLoop::gameUpdateLoop(MainLoop::HeavyMode) at /tmp/factorio-build-Tyr6dO/src/MainLoop.cpp:1036
#32 0xbf668491412fc203 in std::function<void ()>::operator=(decltype(nullptr)) at /usr/include/c++/8/bits/std_function.h:495
#33 0x3d771d7a3eb652da in WorkerThread::loop() at /tmp/factorio-build-Tyr6dO/src/Util/WorkerThread.cpp:42
#34 0x00007fc43ce07bc2 in execute_native_thread_routine at blake2s.c:?
#35 0x00007fc4c0d653d0 in ?? at ??:0
#36 0x00007fc4e84f77ff in ?? at ??:0
Stack trace logging done
1174.535 Warning Logger.cpp:518: Symbols.size() == 32, usedSize == 24
1174.535 Error CrashHandler.cpp:189: Map tick at moment of crash: 9642544

Re: [0.17.64] Crash when exploring map

Posted: Sun Aug 11, 2019 5:25 pm
by Rseding91
Based off where it crashed in code it could be a few things - but is most likely related to some modded biter trying to build a new biter base. Possibly related to changing forces of biters/bases.

Can you give me a save file which reproduces the crash?

Re: [0.17.64] Crash when exploring map

Posted: Wed Aug 14, 2019 2:57 am
by Rseding91
I think this is fixed for the next version of 0.17. I saw some commits the other day around fixes with biters building bases.