Unhandled Exceptions at Multicellular stage

Hi,

I had an unhandled exception error on my second evolution after reaching multicellular, initially I check to continue and was able to access the editor. I continued with the modification but noticed after placing flagella in symmetry mode and switching to place cillia the unhandled exception in the top red corner counted up whenever I hovered over the cell. When it reached ~300 I restarted the game, the cilia bug did not repeat however after reloading and entering the editor the confirm button had stopped working. The log from the launcher is below.

3 Likes

I think you ran into this long-standing multicellular bug:

Which is seemingly caused by making a very specific cell layout in the editor (which is why the bug is still not fixed as there has never been a simple way to trigger the problem)

This is the relevant part of the logs (the first error):

ERROR: System.ArgumentException: CellTemplate can't be placed at this location (Cell (Leaf) at -7, 0 at -7, 0)
ERROR:    at HexLayout`1.AddFast(T hex, List`1 temporaryStorage, List`1 temporaryStorage2) in /home/hhyyrylainen/Projects/Thrive/src/general/HexLayout.cs:line 68
ERROR:    at MulticellularSpecies.Clone() in /home/hhyyrylainen/Projects/Thrive/src/multicellular_stage/MulticellularSpecies.cs:line 339
ERROR:    at AutoEvo.GenerationRecord.UpdateSpeciesData(Species species) in /home/hhyyrylainen/Projects/Thrive/src/auto-evo/records/GenerationRecord.cs:line 115
ERROR:    at CreatureStageBase`2.OnReturnFromEditor() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/CreatureStageBase.cs:line 213
ERROR:    at MicrobeStage.OnReturnFromEditor() in /home/hhyyrylainen/Projects/Thrive/src/microbe_stage/MicrobeStage.cs:line 844
ERROR:    at EditorBase`2.OnEditorExitTransitionFinished() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 1085
ERROR:    at MulticellularEditor.OnEditorExitTransitionFinished() in /home/hhyyrylainen/Projects/Thrive/src/multicellular_stage/editor/MulticellularEditor.cs:line 493
ERROR:    at TransitionManager.Sequence.StartNext() in /home/hhyyrylainen/Projects/Thrive/src/gui_common/TransitionManager.cs:line 305
ERROR:    at TransitionManager.Sequence.Process() in /home/hhyyrylainen/Projects/Thrive/src/gui_common/TransitionManager.cs:line 271
ERROR:    at TransitionManager._Process(Double delta) in /home/hhyyrylainen/Projects/Thrive/src/gui_common/TransitionManager.cs:line 51

If you have an image or a save or something that can easily show the same problem, I think that info would be helpful in solving the issue.

3 Likes

Multicell structure

If you let me know where to find the files and where to send them I’m happy to send the save file. Or if you need to see the cell components as I can only embed one image per reply.

3 Likes

Since you seem to be playing on windows, you need to access the appdata folder via the windows+r key combination, type in “%appdata%”, find the “Thrive” folder, within which will be a “saves” folder with the save of interest in there.

2 Likes

Ok thank you, I’ve put a copy in the drop box below

This should put you in the editor after the initial error, I checked quickly and it does reoccur when hitting next. It drops into the game but with the ammonia and phosphate full and lets you open the editor a second time but after resolving the ATP issue does not allow you to hit next.

4 Likes

You know, there’s perfectly good buttons in the game to directly open the saves folder (and even the logs folder)…

Thanks for the save, I’ll investigate it on Monday once I’m back to work.

Edit:

I think I’m getting somewhere, I found these results in our cell type repositioning logic (the repositioning is not stable for very specific cell type layouts):

Raw center of mass: (-0.6617647, 0, -0.15282802)
Center of mass before: -1, 0
Raw center of mass: (-0.6617647, 0, -0.15282802)
Raw center of mass: (0.4632353, 0, 0.49669102)
Center of mass after: 1, 0

Fix probably tomorrow.

Edit: I’ve now made a fix:

Which required changing the core cell center of mass algorithm a tiny bit (to consider small values to be equal to 0). That impacts earlier stages as well, but hopefully not in any bad way.

4 Likes