Stonehearth Memory Bloat

Hey all, I have encountered what seems to be a bug. One of my hearth stone saves, as soon as you load it, jumps memory utilization up to 7.5-8 gigabytes. I would like to post the save game either here (can’t because this is a new account) or to another file share site.

Upon loading the save it immediately has an error:

[details=Error Dump]
release-559 (x64)
…h/components/entity_forms/entity_forms_component.lua:359: assertion failed!
stack traceback:
[C]: ?
[C]: in function ‘assert’
…h/components/entity_forms/entity_forms_component.lua:359: in function ‘place_item_on_structure’
…/fixture_fabricator/fixture_fabricator_component.lua:266: in function ‘_place_item_on_structure’
…/fixture_fabricator/fixture_fabricator_component.lua:243: in function ‘_place_fixture’
…/fixture_fabricator/fixture_fabricator_component.lua:203: in function ‘_start_project’
…/fixture_fabricator/fixture_fabricator_component.lua:41: in function <…/fixture_fabricator/fixture_fabricator_component.lua:39>[/details]

Followed by,

[details=This Error]release-559 (x64)
c++ exception: lua runtime error
stack traceback:[/details]

Lovin’ the game so far!

I’ve updated your level so you should be able to upload the file here. There’s a 10MB limit so if it doesn’t fit, please upload it to somewhere like Google Drive and send me the link. I would very much like to see the save.
Thank you

1467320945004.7z (4.4 MB)

This should be the correct save since it has the right thumbnail.

This game runs smoother on Alpha 17 build, so the lag/hitching should be gone the next time we update steam stable build. Or if you would like, you can try opting into the steam latest branch to try out A17 immediately.

As for the memory usage, on a freshly launched game, your save is hovering at 900MB for me. I do know we have some memory leaks with loading saves and also with long running games, so it’s possible the 7GB you’re running into is from that. We’re working on tracking them down, but it’s quite a battle with the leaked lua to c++ object tracking. I know growing to 7GB is quite unacceptable. We’re working on it >_<

Thank you for uploading your save! New data points are always very helpful!


Could this also be why crafter classes stop tending to their maintain orders and go idle after a while?

Possibly XD
Theoretically, the memory bloat and performance getting worse over time don’t have to be part of the same issue. My guess with crafters is eventually they get into a bad state. With the memory bloat, as long as you have a lot of memory, it doesn’t necessarily mean game correctness is affected. In reality, there’s definitely something going on with running the game for long periods of time and probably indicates a lot of issues. Another possible reason for memory bloat is that our caches aren’t being cleared, which results in stale data, etc etc.


Mmm… yeah. I see what you mean now.

Happy hunting!! :stuck_out_tongue_closed_eyes: