realmsandruins This also happens if you just open a container, close it, and remove it via ingame console.
not via close script, but just any time after opening it.
I suspect this may very well be tied to how containers work in regards to the widgets.
If a container no longer exists but a widget is "in memory" that holds the items of that container, when you save, it goes into a crash loop.
(if you were to type "show_widget(container_widget_name)" in console, you'd see the items are still there despite removing the container).
Of course, that's just my guess, I don't know what the engineis doing behind the scenes lol but I do know that widgets used for containers remember the last items accessed...(how widgets tied to containers get assigned/populated when you interact with one) and if that container has just been removed...that could be where the crash comes from.
A good way to test/prove this is to place two containers in a map with the same widget, access one, access two, delete one and save.....does it crash?
This is why personally advise if you want to do anything more advanced with containers besides just open and close them, but script them/remove them, best to not do those to the actual container, but an object that references the container instead.