[2.0.19] TransportLine::getItemsRange crash

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
sushi_eater
Inserter
Inserter
Posts: 38
Joined: Thu Feb 13, 2020 2:22 pm
Contact:

[2.0.19] TransportLine::getItemsRange crash

Post by sushi_eater »

Space Age v2.0.19 on Linux (using a dozen mods).

542.321 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-OBgTxk/src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
/tmp/factorio-build-OBgTxk/src/Util/StacktraceToStream.cpp (60): Util::printStacktraceToStream(WriteStream&)
/tmp/factorio-build-OBgTxk/src/Util/Logger.cpp (334): Logger::writeStacktrace(WriteStream*, StackTraceInfo*)
/tmp/factorio-build-OBgTxk/src/Util/Logger.cpp (379): Logger::logStacktrace(StackTraceInfo*)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (181): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (644): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (652): CrashHandler::SignalHandler(int)
0x76a9dec441cf
/tmp/factorio-build-OBgTxk/src/Util/FixedPointNumber.hpp (93): FixedPointNumberTemplate<int, 8u, false>::operator==(FixedPointNumberTemplate<int, 8u, false> const&) const
/tmp/factorio-build-OBgTxk/src/Belt/TransportLine.cpp (920): TransportLine::getItemsRange(TransportLine::PositionRange, unsigned int, FixedPointNumberTemplate<int, 8u, false>&) const
/tmp/factorio-build-OBgTxk/src/Belt/TransportLine.cpp (671): TransportLine::draw(DrawQueue&, TransportLineConnector const&, TilePosition, MapPosition (*)(TransportLineSide, FixedPointNumberTemplate<int, 8u, false>, FixedPointNumberTemplate<int, 8u, false>), unsigned int&, FixedPointNumberTemplate<int, 8u, false>&) const
0xffffffffffffffff
Stack trace logging done
543.056 Error CrashHandler.cpp:190: Map tick at moment of crash: 551689
543.056 Error Util.cpp:95: 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.

Mods:

0.167 Loading mod settings squeak-through-2 0.1.2 (settings.lua)
0.168 Loading mod settings Adjustable-Inventory-Size 2.2.0 (settings.lua)
0.168 Loading mod settings even-pickier-dollies 2.2.0 (settings.lua)
0.169 Loading mod settings FasterStart 2.0.1 (settings.lua)
0.170 Loading mod core 0.0.0 (data.lua)
0.176 Loading mod base 2.0.19 (data.lua)
0.225 Loading mod Adjustable-Inventory-Size 2.2.0 (data.lua)
0.227 Loading mod AfraidOfTheDark 1.0.31 (data.lua)
0.231 Loading mod configurable-valves 0.1.2 (data.lua)
0.235 Loading mod elevated-rails 2.0.19 (data.lua)
0.243 Loading mod even-pickier-dollies 2.2.0 (data.lua)
0.246 Loading mod FasterStart 2.0.1 (data.lua)
0.249 Loading mod flib 0.15.0 (data.lua)
0.252 Loading mod FNEI 0.4.5 (data.lua)
0.255 Loading mod quality 2.0.19 (data.lua)
0.258 Loading mod factoryplanner 2.0.4 (data.lua)
0.260 Loading mod space-age 2.0.19 (data.lua)
0.326 Loading mod lane-balancers 1.1.0 (data.lua)
0.330 Loading mod base 2.0.19 (data-updates.lua)
0.334 Loading mod AfraidOfTheDark 1.0.31 (data-updates.lua)
0.338 Loading mod FasterStart 2.0.1 (data-updates.lua)
0.341 Loading mod quality 2.0.19 (data-updates.lua)
0.348 Loading mod space-age 2.0.19 (data-updates.lua)
0.352 Loading mod lane-balancers 1.1.0 (data-updates.lua)
0.356 Loading mod squeak-through-2 0.1.2 (data-final-fixes.lua)
0.363 Loading mod Adjustable-Inventory-Size 2.2.0 (data-final-fixes.lua)
0.367 Loading mod AfraidOfTheDark 1.0.31 (data-final-fixes.lua)
0.371 Loading mod FasterStart 2.0.1 (data-final-fixes.lua)
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3296
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.19] TransportLine::getItemsRange crash

Post by boskid »

Thanks for the report. Was that the only occurence of this crash or do you have details that would allow to reproduce this issue?
sushi_eater
Inserter
Inserter
Posts: 38
Joined: Thu Feb 13, 2020 2:22 pm
Contact:

Re: [2.0.19] TransportLine::getItemsRange crash

Post by sushi_eater »

I was able to reproduce the crash on a test map with all mods disabled. It occurs every few minutes.

A crash report from my test installation should have been uploaded.

A save file is attached. If I load it, a crash often happens within a couple of minutes.
Attachments
dbg2.zip
(2.98 MiB) Downloaded 12 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3296
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.19] TransportLine::getItemsRange crash

Post by boskid »

I am not able to reproduce any crashes from this save file which makes me suspect it may be an unreliable hardware on your end. Do you have log files from the other crashes to verify if they are crashing in the same exact place or if they are different places every time?
sushi_eater
Inserter
Inserter
Posts: 38
Joined: Thu Feb 13, 2020 2:22 pm
Contact:

Re: [2.0.19] TransportLine::getItemsRange crash

Post by sushi_eater »

I have a 13900KS, so hardware issues are theoretically possible. However, it's otherwise 100% stable, including massive compile jobs. The system has always been running with Intels recommended power and current limits set (and not the mainboard default settings) and the RAM is clocked at standard JEDEC 4800 speed and not XMP.

The crashes occur in the same place, e.g. this is one from the test map that I attached:

1011.692 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-OBgTxk/src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
/tmp/factorio-build-OBgTxk/src/Util/StacktraceToStream.cpp (60): Util::printStacktraceToStream(WriteStream&)
/tmp/factorio-build-OBgTxk/src/Util/Logger.cpp (334): Logger::writeStacktrace(WriteStream*, StackTraceInfo*)
/tmp/factorio-build-OBgTxk/src/Util/Logger.cpp (379): Logger::logStacktrace(StackTraceInfo*)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (181): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (644): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-OBgTxk/src/Util/CrashHandler.cpp (652): CrashHandler::SignalHandler(int)
0x7cba59bfa1cf
/tmp/factorio-build-OBgTxk/src/Util/FixedPointNumber.hpp (93): FixedPointNumberTemplate<int, 8u, false>::operator==(FixedPointNumberTemplate<int, 8u, false> const&) const
/tmp/factorio-build-OBgTxk/src/Belt/TransportLine.cpp (920): TransportLine::getItemsRange(TransportLine::PositionRange, unsigned int, FixedPointNumberTemplate<int, 8u, false>&) const
/tmp/factorio-build-OBgTxk/src/Belt/TransportLine.cpp (671): TransportLine::draw(DrawQueue&, TransportLineConnector const&, TilePosition, MapPosition (*)(TransportLineSide, FixedPointNumberTemplate<int, 8u, false>, FixedPointNumberTemplate<int, 8u, false>), unsigned int&, FixedPointNumberTemplate<int, 8u, false>&) const
0xffffffffffffffff
Stack trace logging done
1012.515 Error CrashHandler.cpp:190: Map tick at moment of crash: 67449
sushi_eater
Inserter
Inserter
Posts: 38
Joined: Thu Feb 13, 2020 2:22 pm
Contact:

Re: [2.0.19] TransportLine::getItemsRange crash

Post by sushi_eater »

I made some changes to the belt layout and there hasn't been any crash for 25 hours.

I strongly suspect that there is some corner case bug with very specific thread timing that was triggered by my base; perhaps memory corruption because of an object lifetime issue.
Post Reply

Return to “Pending”