Page 1 of 1

[2.0.47] Crash loading save with wrong mods (TargetedItems.cpp (42): registerRemove)

Posted: Sat May 24, 2025 3:11 pm
by sparr
I attempted to load a Space Age save from 5 months ago (not sure the game version then) with Pyanodon's mods enabled and Space Age disabled. One of the loading progress bars appeared but then the game crashed out.

Attached are two saves a few hours(?) apart in my history, the earlier one doesn't crash and the later one does, so the problem is probably something I built or changed between them. I was [mostly?] working on a specific space platform in the intervening time. Based on the stack trace and that situation, I expect the problem is with something related to storage and logistics on that space platform.

Excerpt from the stack trace to help with future forum searches:

Code: Select all

src/Logistics/TargetedItems.cpp (42): registerRemove
src/Logistics/LogisticPoint.cpp (429): cancelFromTargetedForDeliver
src/Logistics/LogisticDeliverInterface.cpp (88): cancelOrder
src/Space/CargoDelivery/CargoUnit.cpp (524): clearDestination
src/Space/CargoDelivery/CargoUnit.cpp (466): setDestination
src/Space/CargoDelivery/CargoUnit.cpp (556): onHatchUnavailable
src/Space/CargoDelivery/CargoStation.cpp (330): unregisterHatch
src/Entity/CargoBay.cpp (451): unregisterHatches
src/Entity/CargoBay.cpp (164): linkedEntityChanged
src/Entity/CargoBay.cpp (562): executeLinkChanges
src/Entity/CargoBay.cpp (358): linkCargoBays
src/Entity/CargoLandingPad.cpp (874): recalculateInventorySize
src/Entity/Entity.cpp (373): runSetup
src/Map/MapSetupHelper.cpp (236): operator()
src/Map/MapSetupHelper.cpp (247): setupSelectedEntities<(lambda at /tmp/factorio-build-88Svgm/src/Map/MapSetupHelper.cpp:267:31)>
src/Map/MapSetupHelper.cpp (267): setupEntitiesInternal
src/Map/MapSetupHelper.cpp (98): MapSetupHelper
src/Map/Map.cpp (858): setupEntities
src/Scenario/Scenario.cpp (292): loadFactory
src/Scenario/ParallelScenarioLoader.cpp (190): doLoad

Re: [2.0.47] Crash loading save with wrong mods (TargetedItems.cpp (42): registerRemove)

Posted: Mon Jun 09, 2025 2:55 pm
by Rseding91
Thanks for the report. This is now fixed for the next release.