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

This subforum contains all the issues which we already resolved.
sparr
Smart Inserter
Smart Inserter
Posts: 1520
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

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

Post 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
Attachments
Community Map 2024-10-21 to infinity crusher logic.zip
this previous save does not crash
(44.8 MiB) Downloaded 37 times
Community Map 2024-10-21 to infinity fuel control and ammo production.zip
this save crashes
(44.83 MiB) Downloaded 46 times
crash.log
(15.1 KiB) Downloaded 42 times
mod-list.json
(2.97 KiB) Downloaded 39 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15814
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”