[2.1.7] Crash when mining drills without fluidboxes mine fluid resources
Posted: Wed Jun 24, 2026 3:13 pm
download/file.php?mode=view&id=113023
While developing a mod, my game crashed as soon as a mining drill without fluidboxes mined my resource that has both item and fluid outputs. This does not happen when a fluidbox is present, and reading the stacktrace also points at it not finding a fluidbox and freaking out.
Crash can be reproduced consistently by placing an electric drill on the ore patch in the provided save.
Stacktrace:
While developing a mod, my game crashed as soon as a mining drill without fluidboxes mined my resource that has both item and fluid outputs. This does not happen when a fluidbox is present, and reading the stacktrace also points at it not finding a fluidbox and freaking out.
Crash can be reproduced consistently by placing an electric drill on the ore patch in the provided save.
Stacktrace:
Code: Select all
Factorio 2.1.7 (build 86685, linux64, steam, space-age)
236.064 Error CrashHandler.cpp:614: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (340): writeStacktrace
src/Util/Logger.cpp (385): logStacktrace
src/Util/CrashHandler.cpp (154): writeStackTrace
src/Util/CrashHandler.cpp (617): commonSignalHandler
src/Util/CrashHandler.cpp (625): SignalHandler
0x7f18b9c6228f
src/Fluid/FluidBox.cpp (1427): getFluidBuffer
src/Fluid/FluidBox.hpp (117): getFreeVolume
src/Fluid/FluidBox.cpp (485): takeFluid
src/Fluid/FluidCollector.cpp (27): transfer
src/Mining/MiningCollector.cpp (35): collect
src/Mining/MiningCollector.cpp (66): collect
src/Material/ProductPrototype.cpp (680): collect
src/Mining/MinableProperties.cpp (178): collect
src/Entity/ResourceEntity.cpp (269): mineMe
src/Entity/Entity.cpp (1141): mine
src/Entity/MiningDrill.cpp (639): performMining
src/Entity/MiningDrill.cpp (823): update
src/Surface/ActiveEntitiesOrder.hpp (138): update<MiningDrill>
src/Surface/ActiveEntitiesOrder.hpp (146): update
src/Surface/ActiveEntitiesList.hpp (13): update
src/Surface/Surface.cpp (2460): update
src/Map/Map.cpp (1330): updateEntities
src/Map/Map.cpp (1272): update
src/Game.cpp (226): update
src/Scenario/Scenario.cpp (1217): update
src/Scenario/Scenario.cpp (1129): updateStep
src/MainLoop.cpp (1442): gameUpdateStep
src/MainLoop.cpp (1236): gameUpdateLoop
/opt/gcc-16.1.0/lib/gcc/x86_64-pc-linux-gnu/16.1.0/../../../../include/c++/16.1.0/bits/std_function.h (581): operator()
src/Util/WorkerThread.cpp (70): loop
/tmp/gcc.jm3N0kuu/objdir/../gcc-16.1.0/libstdc++-v3/src/c++11/thread.cc (105): execute_native_thread_routine
start_thread
__GI___clone3
0xffffffffffffffff
Stack trace logging done