[2.0.66] Crash if target linked container disappears during mod migration (LinkedInventory:addLinkedContainer)

Bugs which we just recently fixed in our development version and will reach you in the next release.
front
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Dec 03, 2024 4:54 pm
Contact:

[2.0.66] Crash if target linked container disappears during mod migration (LinkedInventory:addLinkedContainer)

Post by front »

Log included as an attachment, it mentions a linked container related nullpointer. Unfortunately right now I can only reproduct it in dev, so the in-dev code for the affected mod will also be included.

This is most likely the interaction between a proxy container that is targeting a linked container that is being removed. I expected it to be cleaned up properly so my script can fix the rest when the player resets the connections. The proxy container's job is to control access to the linked container.


You need the version at this commit from orbital cannon for the reproduction.
https://github.com/Frontrider/factorio- ... tal-cannon

To make the crash dissapear, you need to go into this line:
https://github.com/Frontrider/factorio- ... es.lua#L67
and change it to:
name = "orbital-cannon-transporter-" .. planet_name,
That is how you get a 100% reproduction rate on it.

I wanted to rename this between the current and the new iteration to get the game to clean things up for me.

The rest of the mods can come from the portal, save to reproduce it:
https://drive.google.com/file/d/1EGtMQw ... sp=sharing
Attachments
log.log
(2.99 KiB) Downloaded 10 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16103
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.66] Crash if target linked container disappears during mod migration (LinkedInventory:addLinkedContainer)

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.
front
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Dec 03, 2024 4:54 pm
Contact:

Re: [2.0.66] Crash if target linked container disappears during mod migration (LinkedInventory:addLinkedContainer)

Post by front »

Thank you very much! I also just found that the mod can't be removed from any saves because it will crash with the same error.
Post Reply

Return to “Resolved for the next release”