# Anyway to save a game with continuing "assertion failed" error?

**URL:** <https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707>\
**Category:** Bug Reports\
**Tags:** ai, a23r784\
**Created:** [February 9, 2018, 3:11pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707 "2018-02-09T15:11:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 3:11pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/1 "2018-02-09T15:11:25Z")

</div>

Not sure what happened but every few seconds now an “assertion failed” error pops up. I’ve closed and restarted the game. Is this saved game doomed ?

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [February 9, 2018, 3:20pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/2 "2018-02-09T15:20:47Z")

</div>

It shouldn’t. That assertion failure popup must be from the AI, which gets reset after reload.  
But if the popup appears again, and you feel like you can’t continue playing that game because it always reappears sooner or later after loading, please upload that savefile so that we can take a look at it.

I’ve just filed that issue in our internal tracker so hopefully someone can take a look at it today.  
Did you have any defense zone set up for your combat units, by chance? And, were you playing at normal speed or at high speed? How many hearthlings did you have?

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 4:14pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/3 "2018-02-09T16:14:51Z")

</div>

The save file that had the reoccurring problem was an Auto Save. I went back to my latest manual save before that and it’s OK now. If it comes up again I’ll get a screenshot of the error. I often switch between all game speeds; including the highest speed. I may have had the red squad on defense out side my front gate at the time.

Thank you!

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 4:55pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/4 "2018-02-09T16:55:12Z")

</div>

Happened again; here’s the screenshot

![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/7/4/74efcb33ce80336d956167f4cf1a7440f5c35c86.png)

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 4:55pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/5 "2018-02-09T16:55:52Z")

</div>

1/3

release-784 (x64)  
Unknown C++ exception  
stack traceback:  
[C]: ?  
[C]: in function 'execute’  
stonehearth/ai/actions/idle\_action.lua:59: in function \<stonehearth/ai/actions/idle\_action.lua:18\>  
[C]: ?  
[C]: ?  
[C]: in function ‘execute’  
…ctions/unit\_control/unit\_wait\_at\_location\_action.lua:18: in function \<…ctions/unit\_control/unit\_wait\_at\_location\_action.lua:16\>  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: ?  
…  
[C]: in function 'run’  
stonehearth/components/ai/ai\_component.lua:515: in function \<stonehearth/components/ai/ai\_component.lua:499\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/components/ai/ai\_component.lua:499: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.lua:273: in function \<stonehearth/services/server/threads/thread.lua:270\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/services/server/threads/thread.lua:270: in function 'f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 4:56pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/6 "2018-02-09T16:56:08Z")

</div>

2/3

release-784 (x64)  
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution\_frame.cpp:1007 Exiting run() in an unexpected frame.  
stack traceback:  
[C]: in function ‘execute’  
…ctions/unit\_control/unit\_wait\_at\_location\_action.lua:18: in function \<…ctions/unit\_control/unit\_wait\_at\_location\_action.lua:16\>  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: in function 'run’  
stonehearth/services/server/tasks/task\_action.lua:196: in function \<stonehearth/services/server/tasks/task\_action.lua:193\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
…  
[C]: in function 'run’  
stonehearth/components/ai/ai\_component.lua:515: in function \<stonehearth/components/ai/ai\_component.lua:499\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/components/ai/ai\_component.lua:499: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.lua:273: in function \<stonehearth/services/server/threads/thread.lua:270\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/services/server/threads/thread.lua:270: in function 'f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 4:56pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/7 "2018-02-09T16:56:36Z")

</div>

3/3

release-784 (x64)  
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution\_frame.cpp:982 invalid initial state “finished” in run  
stack traceback:  
[C]: ?  
[C]: in function 'run’  
stonehearth/components/ai/ai\_component.lua:515: in function \<stonehearth/components/ai/ai\_component.lua:499\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/components/ai/ai\_component.lua:499: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.lua:273: in function \<stonehearth/services/server/threads/thread.lua:270\>  
[C]: in function 'xpcall’  
radiant/modules/commons.lua:66: in function 'xpcall’  
stonehearth/services/server/threads/thread.lua:270: in function 'f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [February 9, 2018, 4:56pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/8 "2018-02-09T16:56:43Z")

</div>

Could you upload that savefile?  
Instructions:

1. Find the save folder for the saves you wish to upload. By default, they are located in `C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games` (assuming a default Steam install).
2. Zip the folder.
3. Right click the folder (should be a long set of numbers).
4. Left click on `Send to` in the menu that appears.
5. Left click on `Compressed (Zipped) folder).
6. _(Optional)_ Rename the folder to something different than the default set of numbers.
7. Upload the save.
8. If the zip is less than 10 MB, you can upload it directly. Either use the upload button or drag and drop it into the compose window,
9. If larger than 10 MB, upload it to a cloud storage site like Dropbox, Google Drive, File Dropper, etc. and post the sharing link here.

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 5:01pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/9 "2018-02-09T17:01:48Z")

</div>

Sure thing; uploading through Discourse here ![auto_save.7z|attachment](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/6/2/62813d1274b5c9a29f97314892496be08166f8aa.7z) (5.6 MB)

---

<div class="post-metadata">

**Author:** ![RallyPoint](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/rallypoint/32/60209_2.png) [@RallyPoint](https://discourse.stonehearth.net/u/RallyPoint)\
**Post date:** [February 9, 2018, 5:17pm UTC](https://discourse.stonehearth.net/t/anyway-to-save-a-game-with-continuing-assertion-failed-error/33707/10 "2018-02-09T17:17:06Z")

</div>

Is it possible these errors have anything to do with why my duders won’t go loot things? I have auto-loot off, I manually selected the items I wanted looted, the loot icon appears above them… they just don’t want to go get it. Also lots of other resources laying around they should be putting away but they don’t. I have 24 hearthlings with 7 dedicated laborers… all 24 have Haul checked. I get there’s a lot for them to do but it wasn’t always this bad… seems like there was a clear point where it feels like they started ignoring old objects on the ground. They were able to keep up just fine like an hour ago.
