Jump to content

Adding more than 10 elements causes Sim crash


CynicalBusiness
  • Branch: Live Branch Version: Windows Fixed

Myself and @Peter Han have been attempting to troubleshoot an issue with loading elements in mods and managed to get it down to a reproducible after some time.

If you attempt to load more than 10 elements (that is, the 11th is the tipping point), the game crashes when unpausing existing saves or during world gen at the "Establishing personal boundaries..." step. This happens both with custom loaders and the stock element loader in the game.

Unfortunately, there is absolutely no error in the log, no crash dump, and it's a crash-to-desktop without the outhouse crash screen, so there's nothing to post regarding the crash. The game simply closes and the log ends without even the usual "app quit" message at the end.

 

More techincally, Peter came to this conclusion:

Quote

We think we are overflowing a simdll native buffer since the size is suspiciously close to 16384

We're under the impression the serialization of the elements being passed to Sim has a limit on the SimDLL side of things as the number of bytes the additional elements take up are enough to push over 16384, or something about 160 elements is an issue but 159 (the vanilla 149 + 10 custom) is okay.

Because the error so heavily involves Sim, we cannot dig much deeper ourselves.


Steps to Reproduce
Attempt to load more than 10 elements (there must also be appropriate substances registered already or a different crash appears) and the game will crash at the half-way mark in worldgen or when unpausing an existing world.
  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...