Page 1 of 1

[2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Wed Dec 18, 2024 10:47 am
by Ant_Shrew
Game crashing a few minutes after players join. No mods on current stable 2.0.23
Seems to rollback to the previous save even though it states that it has saved just before the crash (Info AppManagerStates.cpp:2095: Saving finished)
Please let me know if there is anything else I can share.

Code: Select all

37347.908 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({***}))
37347.908 Refusing connection for address (IP ADDR:({***})), username (Ant_Shrew). UserVerificationMissing
37348.308 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({***}))
37348.308 Info ServerRouter.cpp:465: Replying to connectionRequest for address(IP ADDR:({***})).
37348.308 Info ServerSynchronizer.cpp:594: nextHeartbeatSequenceNumber(2240576) adding peer(1)
37348.327 Info ServerMultiplayerManager.cpp:806: updateTick(44964001) changing state from(InGame) to(InGameSavingMap)
37348.341 Info ServerMultiplayerManager.cpp:974: updateTick(44964001) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
37349.909 Info ServerMultiplayerManager.cpp:1033: UpdateTick(44964001) Serving map(/factorio/temp/mp-save-0.zip) for peer(1) size(60240642) auxiliary(140) crc(2126157731)
37349.909 Info ServerMultiplayerManager.cpp:806: updateTick(44964001) changing state from(InGameSavingMap) to(InGame)
37349.975 Info ServerMultiplayerManager.cpp:974: updateTick(44964001) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
37363.341 Info ServerMultiplayerManager.cpp:974: updateTick(44964001) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
37366.141 Info ServerMultiplayerManager.cpp:974: updateTick(44964001) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
37366.141 Info ServerMultiplayerManager.cpp:974: updateTick(44964001) received stateChanged peerID(1) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
37366.159 Info GameActionHandler.cpp:4318: UpdateTick (44964001) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect) 
37366.216 Info ServerMultiplayerManager.cpp:974: updateTick(44964003) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
37966.191 Info AppManager.cpp:310: Saving to _autosave5 (blocking).
37967.625 Info AppManagerStates.cpp:2095: Saving finished
38372.449 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-K9Ni81/src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
/tmp/factorio-build-K9Ni81/src/Util/StacktraceToStream.cpp (60): Util::printStacktraceToStream(WriteStream&)
/tmp/factorio-build-K9Ni81/src/Util/Logger.cpp (334): Logger::writeStacktrace(WriteStream*, StackTraceInfo*)
/tmp/factorio-build-K9Ni81/src/Util/Logger.cpp (379): Logger::logStacktrace(StackTraceInfo*)
/tmp/factorio-build-K9Ni81/src/Util/CrashHandler.cpp (181): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-K9Ni81/src/Util/CrashHandler.cpp (644): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-K9Ni81/src/Util/CrashHandler.cpp (652): CrashHandler::SignalHandler(int)
0x7fec3bcbb04f
/tmp/factorio-build-K9Ni81/src/Item/ItemStack.hpp (172): ItemStack::getAmmoItem() const
/tmp/factorio-build-K9Ni81/src/Entity/AmmoTurret.cpp (146): AmmoTurret::canInsert(CanInsertData) const
/tmp/factorio-build-K9Ni81/src/Entity/Inserter.cpp (930): Inserter::selectBeltItem(TransportBeltConnectable*, bool&)
/tmp/factorio-build-K9Ni81/src/Entity/Inserter.cpp (991): Inserter::getPickupTarget()
/tmp/factorio-build-K9Ni81/src/Entity/Inserter.cpp (1659): Inserter::update()
/tmp/factorio-build-K9Ni81/src/Surface/ActiveEntitiesOrder.hpp (136): _ZN18EntityOrderHelpers15EntityOrderListIJ13LogisticRobot17ConstructionRobot8Inserter8Roboport6Loader17AssemblingMachine17AgriculturalTower20OldAgriculturalTower7Furnace11MiningDrill10FluidWagon14ArtilleryWagon10CargoWagon10Locomotive9Character6Boiler9Generator15BurnerGenerator7Reactor3Lab8LandMine14ArtilleryFlare19ArtilleryProjectile15ArtilleryTurret4Beam3Car13SpiderVehicle18TemporaryContainer15CharacterCorpse11CombatRobot12CaptureRobot6Corpse23ElectricEnergyInterface12EnemySpawner9Explosion21FlameThrowerExplosion11FluidStream11FluidTurret16FlyingTextEntity15FusionGenerator13FusionReactor4Gate13HeatInterface18HighlightBoxEntity17InfinityContainer12InfinityPipe16ItemRequestProxy12OffshorePump14ParticleSource11PowerSwitch10Projectile4Pump5Radar19ProgrammableSpeaker10RocketSilo16RocketSiloRocket8CargoPod16SmokeWithTrigger12SpeechBubble7Sticker6Turret17AsteroidCollector8Asteroid8Thruster10SpiderUnit4UnitEE6updateIS3_EEvRNS_19ActiveEntitiesEntryEbRN27IntrusiveListImplementationI15UpdatableEntityvLb0ELb0EE8IteratorE
/tmp/factorio-build-K9Ni81/src/Surface/ActiveEntitiesOrder.hpp (144): _ZN18EntityOrderHelpers15EntityOrderListIJ13LogisticRobot17ConstructionRobot8Inserter8Roboport6Loader17AssemblingMachine17AgriculturalTower20OldAgriculturalTower7Furnace11MiningDrill10FluidWagon14ArtilleryWagon10CargoWagon10Locomotive9Character6Boiler9Generator15BurnerGenerator7Reactor3Lab8LandMine14ArtilleryFlare19ArtilleryProjectile15ArtilleryTurret4Beam3Car13SpiderVehicle18TemporaryContainer15CharacterCorpse11CombatRobot12CaptureRobot6Corpse23ElectricEnergyInterface12EnemySpawner9Explosion21FlameThrowerExplosion11FluidStream11FluidTurret16FlyingTextEntity15FusionGenerator13FusionReactor4Gate13HeatInterface18HighlightBoxEntity17InfinityContainer12InfinityPipe16ItemRequestProxy12OffshorePump14ParticleSource11PowerSwitch10Projectile4Pump5Radar19ProgrammableSpeaker10RocketSilo16RocketSiloRocket8CargoPod16SmokeWithTrigger12SpeechBubble7Sticker6Turret17AsteroidCollector8Asteroid8Thruster10SpiderUnit4UnitEE6updateERSt5arrayINS_19ActiveEntitiesEntryELm66EEbRN27IntrusiveListImplementationI15UpdatableEntityvLb0ELb0EE8IteratorE
/tmp/factorio-build-K9Ni81/src/Surface/ActiveEntitiesList.hpp (13): ActiveEntitiesList::update(MapTick)
/tmp/factorio-build-K9Ni81/src/Surface/Surface.cpp (2436): Surface::update()
/tmp/factorio-build-K9Ni81/src/Map/Map.cpp (1275): Map::updateEntities()
/tmp/factorio-build-K9Ni81/src/Map/Map.cpp (1223): Map::update()
/tmp/factorio-build-K9Ni81/src/Game.cpp (175): Game::update()
/tmp/factorio-build-K9Ni81/src/Scenario/Scenario.cpp (1247): Scenario::update()
/tmp/factorio-build-K9Ni81/src/Scenario/Scenario.cpp (1160): Scenario::updateStep()
/tmp/factorio-build-K9Ni81/src/MainLoop.cpp (1399): MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode)
/tmp/factorio-build-K9Ni81/src/MainLoop.cpp (1208): MainLoop::gameUpdateLoop(MainLoop::HeavyMode)
/tmp/factorio-build-K9Ni81/src/MainLoop.cpp (647): MainLoop::mainLoopStepHeadless(MainLoop::HeavyMode)
/tmp/factorio-build-K9Ni81/src/MainLoop.cpp (407): MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode)
/tmp/factorio-build-K9Ni81/src/CommandLineMultiplayer.cpp (295): hostMultiplayerGameInternal(cxxopts::ParseResult const&, bool)
/tmp/factorio-build-K9Ni81/src/CommandLineMultiplayer.cpp (350): CommandLineMultiplayer::hostCommandLineMultiplayerGame(cxxopts::ParseResult const&, Filesystem::Path const&, Filesystem::Path const&, bool)
/tmp/factorio-build-K9Ni81/src/Main.cpp (707): fmain(int, char**)
/tmp/factorio-build-K9Ni81/src/Main.cpp (1379): main
0x7fec3bca6249
__libc_start_main
_start
0xffffffffffffffff
Stack trace logging done
38375.160 Error CrashHandler.cpp:190: Map tick at moment of crash: 45024290
38375.160 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.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
38375.160 Uploading log file
38375.179 Info SystemUtil.cpp:871: Started /opt/factorio/bin/x64/factorio; trampoline PID: 473

Re: [2.0.23] Error CrashHandler.cpp:641: Received SIGSEGV

Posted: Wed Dec 18, 2024 3:13 pm
by Rseding91
Can you reproduce this? If so, please provide the save file and steps to reproduce it.

Re: [2.0.23] Error CrashHandler.cpp:641: Received SIGSEGV

Posted: Wed Dec 18, 2024 3:28 pm
by Ant_Shrew
To reproduce I have been able to just idle and it crashes after a few minutes.

Re: [2.0.23] Error CrashHandler.cpp:641: Received SIGSEGV

Posted: Wed Dec 18, 2024 5:05 pm
by Ant_Shrew
Not sure if it is worth mentioning that this is a dedicated server running via docker: https://github.com/factoriotools/factorio-docker

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Thu Dec 19, 2024 6:38 pm
by Ant_Shrew
Managed to get a desync report

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Thu Dec 19, 2024 6:53 pm
by Rseding91
Can you provide more log files with the crash? When I let it run for 10~ minutes, I didn't experience any crash.

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Thu Dec 19, 2024 7:41 pm
by Ant_Shrew
Latest logs with crash.

It took significantly longer for the first crash this evening. Nothing specific that comes to mind that was similar in each case.

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Thu Dec 19, 2024 7:51 pm
by Rseding91
That 2nd log file is a different crash than the first post here. That, combined with the inability to get any kind of reliable crash (and that it didn't crash for me), makes me think you have failing hardware on your end.

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Thu Dec 19, 2024 8:06 pm
by Ant_Shrew
Interesting thought. I have multiple services and game servers running on the hardware all fine at this point.
Ill look at migrating the server and see if that helps.

Thank you

Re: [2.0.23] Crash (ItemStack::getAmmoItem())

Posted: Fri Dec 20, 2024 11:58 am
by Ant_Shrew
Think you may have been correct. Still dont think it is a hardware issue.
Cloned the VM to a new node (separate hardware) and still had the same issue.
Recreated the VM from scratch and copied the save and it seems stable so far.
Guessing that there is something broken in the OS that was causing the failures.

Thank you for the investigation!