# Engine error on loading saved game

**URL:** <https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197>\
**Category:** Other Reports\
**Tags:** no\_longer\_applicable\
**Created:** [October 16, 2015, 8:41pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197 "2015-10-16T20:41:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![feri](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/feri/32/23022_2.png) [@feri](https://discourse.stonehearth.net/u/feri)\
**Post date:** [October 16, 2015, 8:41pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/1 "2015-10-16T20:41:10Z")

</div>

I was playing and had some bugs like not rendering some blocks, so I saved the game and quite to menu.  
After that I just reloaded the saved game and got this error message.  
_Build 2650_  
usrID: aba7b4f8-7381-11e5-ab3f-d4bed9fdc342

P.S. I trying to provide as much information as I can. If you need more information, please ask 😄  
I hope this can be of any help to the developers. 😄

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/e/8/e81be0cc945a8969a07176407fcf77bcc90e7ef1.png)

**The entire stack trace:**  
**Page 1:**  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 00000070ABC49A78” in “[u:417995 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
…  
[C]: in function ‘run’  
stonehearth/services/server/ai/compound\_action.luac:133: in function \<stonehearth/services/server/ai/compound\_action.luac:129\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 2:**  
develop-2650 (x64)stonehearthstack traceback:  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
[C]: in function ‘suspend’  
stonehearth/ai/actions/follow\_path\_action.luac:29: in function \<stonehearth/ai/actions/follow\_path\_action.luac:7\>  
[C]: ?  
[C]: ?  
…  
[C]: in function ‘run’  
stonehearth/services/server/ai/compound\_action.luac:133: in function \<stonehearth/services/server/ai/compound\_action.luac:129\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 3:**  
develop-2650 (x64)bad frame trasition from “add\_action” from "starting\_thinking"stack traceback:  
stonehearth/services/server/threads/thread.luac:87: in function \<stonehearth/services/server/threads/thread.luac:87\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function ‘suspend’  
stonehearth/services/server/threads/thread.luac:146: in function ‘sleep\_realtime’  
stonehearth/components/ai/ai\_component.luac:191: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

* * *

After the error, my hearthlings where frozen. So I closed the game entirely and reloaded de save data.  
After doing so, I got this message.

**Page 1:**  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to should\_start\_thinking: missing argument “ghost” of type “userdata: 0000005294113B48” in “[u:7960 place plantable item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 2**  
develop-2650 (x64)stonehearthstack traceback:  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 3:**  
develop-2650 (x64)bad frame trasition from “stop” from "starting\_thinking"stack traceback:  
[C]: ?  
[C]: in function ‘stop’  
stonehearth/components/ai/ai\_component.luac:194: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 4:**  
develop-2650 (x64)invalid initial state “starting\_thinking” in runstack traceback:  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

**Page 5:**  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 0000005294113B48” in “[u:13291 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)\
**Post date:** [October 16, 2015, 10:04pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/2 "2015-10-16T22:04:07Z")

</div>

Hey @feri, thanks for posting all these bugs today, and a belated welcome to the discourse! By chance, would you be able to upload the save folder for this game? You can do so by copying the folder to a cloud service like Dropbox or Google Drive and adding the link to your post. That way, @Albert, @yshan, and @sdee can take a look.

---

<div class="post-metadata">

**Author:** ![feri](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/feri/32/23022_2.png) [@feri](https://discourse.stonehearth.net/u/feri)\
**Post date:** [October 16, 2015, 10:24pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/3 "2015-10-16T22:24:33Z")

</div>

> [@jomaxro](#):
>
> Hey @feri, thanks for posting all these bugs today, and a belated welcome to the discourse! By chance, would you be able to upload the save folder for this game? You can do so by copying the folder to a cloud service like Dropbox or Google Drive and adding the link to your post. That way, @Albert, @yshan, and @sdee can take a look

Here is the link: [Dropbox - Error - Simplify your life](https://www.dropbox.com/s/5k4ibh39svbza7m/1445029768538.zip?dl=0)  
Hope you can figure this out @jomaxro , @Albert , @yshan , @sdee  
If there is anything else, please do ask! Here to help 😄

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)\
**Post date:** [October 16, 2015, 10:27pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/4 "2015-10-16T22:27:03Z")

</div>

> [@feri](#):
>
> Hope you can figure this out @jomaxro

I am glad you put so much faith in me, but I do not work for TR, I just try to help out where I can here in the discourse. It is Friday, but I am sure TR will take a look at this soon.

Note: They are moving offices next week, so I am not sure if development work is going to take a brief hiatus while this happens…

---

<div class="post-metadata">

**Author:** ![feri](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/feri/32/23022_2.png) [@feri](https://discourse.stonehearth.net/u/feri)\
**Post date:** [October 16, 2015, 10:29pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/5 "2015-10-16T22:29:26Z")

</div>

> [@jomaxro](#):
>
> They are moving offices next week,

Yeah, I have heard. While I think they will be doing there best 😄

---

<div class="post-metadata">

**Author:** ![feri](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/feri/32/23022_2.png) [@feri](https://discourse.stonehearth.net/u/feri)\
**Post date:** [October 19, 2015, 7:07pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/6 "2015-10-19T19:07:00Z")

</div>

Hello @Albert, @sdee, @yshan and @jomaxro

Found an engine error what is making the game unplayable. The hearthlings are frozen and doing nothing anymore.  
And it doesn’t look like there is a pattern, because in every savegame I had, it was all the sudden.  
I have no experience in Lua, but it seem to look like an AI error, when the hearthlings are about to pick a task.

_ **Additional information:** _  
Developer build 2650  
User id: aba7b4f8-7381-11e5-ab3f-d4bed9fdc342  
Savegame: [Dropbox - Error](https://www.dropbox.com/s/yooqexhdehncubb/1445086213866.zip?dl=0)

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/5/b/5b82bd6e904c50d4d076f2bd7d823eb26c517d58.png)

_Complete stack trace_  
_ **Page 1:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to should\_start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:16798 place plantable item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
…  
[C]: in function ‘run’  
stonehearth/services/server/ai/compound\_action.luac:133: in function \<stonehearth/services/server/ai/compound\_action.luac:129\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

Page 2:  
develop-2650 (x64)stonehearthstack traceback:  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
[C]: in function ‘suspend’  
stonehearth/ai/actions/follow\_path\_action.luac:29: in function \<stonehearth/ai/actions/follow\_path\_action.luac:7\>  
[C]: ?  
[C]: ?  
…  
[C]: in function ‘run’  
stonehearth/services/server/ai/compound\_action.luac:133: in function \<stonehearth/services/server/ai/compound\_action.luac:129\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 3:** _  
develop-2650 (x64)bad frame trasition from “stop” from "starting\_thinking"stack traceback:  
[C]: ?  
[C]: in function ‘stop’  
stonehearth/components/ai/ai\_component.luac:194: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 4:** _  
develop-2650 (x64)invalid initial state “starting\_thinking” in runstack traceback:  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 5:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:17462 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 6:** _  
develop-2650 (x64)bad frame trasition from “add\_action” from "starting\_thinking"stack traceback:  
stonehearth/services/server/threads/thread.luac:87: in function \<stonehearth/services/server/threads/thread.luac:87\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function ‘suspend’  
stonehearth/services/server/threads/thread.luac:146: in function ‘sleep\_realtime’  
stonehearth/components/ai/ai\_component.luac:191: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 7:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:18518 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.luac:109: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
…  
[C]: in function ‘run’  
stonehearth/services/server/ai/compound\_action.luac:133: in function \<stonehearth/services/server/ai/compound\_action.luac:129\>  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 8:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:19520 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 9:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:20198 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 10:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:20243 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 11:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:21005 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

_ **Page 12:** _  
develop-2650 (x64)stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000E1098E9748” in “[u:22231 place an item]”.stack traceback:  
[C]: ?  
[C]: in function ‘error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function ‘report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: in function ‘start\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:86: in function ‘\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function \<stonehearth/services/server/ai/compound\_action.luac:61\>  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.luac:190: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function ‘xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function ‘f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

---

<div class="post-metadata">

**Author:** ![TorchDragon](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/torchdragon/32/22272_2.png) [@TorchDragon](https://discourse.stonehearth.net/u/TorchDragon)\
**Post date:** [October 18, 2015, 5:25pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/7 "2015-10-18T17:25:10Z")

</div>

Another save file showing this behavior.

[http://www.torchdragon.com/stuff/stonehearth/rotation\_error.zip](http://www.torchdragon.com/stuff/stonehearth/rotation_error.zip)

---

<div class="post-metadata">

**Author:** ![Maltavius](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/maltavius/32/43577_2.png) [@Maltavius](https://discourse.stonehearth.net/u/Maltavius)\
**Post date:** [October 29, 2015, 5:11pm UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/8 "2015-10-29T17:11:07Z")

</div>

The same error in Alpha 12 465  
User ID: 65587a68-1432-11e5-a0eb-bcee7be140d83

release-465 (x64)  
stonehearth/services/server/ai/ai\_service.luac:116: error in args passed to start\_thinking: missing argument “ghost” of type “userdata: 000000784E2BE158” in “[u:13221 place an item]”.  
stack traceback:  
[C]: ?  
[C]: in function 'error’  
stonehearth/services/server/ai/ai\_service.luac:116: in function 'report\_error’  
stonehearth/services/server/ai/ai\_service.luac:148: in function \<stonehearth/services/server/ai/ai\_service.luac:103\>  
[C]: in function ‘start\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:26: in function ‘\_start\_stop\_thinking’  
…onehearth/services/server/tasks/run\_task\_action.luac:50: in function \<…onehearth/services/server/tasks/run\_task\_action.luac:48\>  
[C]: in function 'fn’  
stonehearth/services/server/threads/thread.luac:109: in function 'private\_msg’  
stonehearth/services/server/threads/thread.luac:168: in function '\_dispatch\_messages’  
stonehearth/services/server/threads/thread.luac:128: in function \<stonehearth/services/server/threads/thread.luac:123\>  
…  
[C]: in function 'execute’  
stonehearth/ai/actions/idle\_top\_action.luac:5: in function \<stonehearth/ai/actions/idle\_top\_action.luac:3\>  
[C]: ?  
[C]: ?  
[C]: in function 'run’  
stonehearth/components/ai/ai\_component.luac:186: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.luac:90: in function \<stonehearth/services/server/threads/thread.luac:89\>  
[C]: in function 'xpcall’  
stonehearth/services/server/threads/thread.luac:89: in function 'f’  
radiant/lib/env.luac:8: in function \<radiant/lib/env.luac:8\>

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)\
**Post date:** [November 16, 2015, 4:21am UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/9 "2015-11-16T04:21:14Z")

</div>

Paging @albert…have these ai errors been resolved?

---

<div class="post-metadata">

**Author:** ![Albert](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/albert/32/45599_2.png) [@Albert](https://discourse.stonehearth.net/u/Albert)\
**Post date:** [November 16, 2015, 5:52am UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/10 "2015-11-16T05:52:13Z")

</div>

Unclear. It may also only be a problem when continuing an early Alpha 12 save game.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)\
**Post date:** [November 16, 2015, 5:53am UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/11 "2015-11-16T05:53:03Z")

</div>

So is this “no\_longer\_applicable”? I haven’t seen any reports of this type for the latest build…

---

<div class="post-metadata">

**Author:** ![Albert](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/albert/32/45599_2.png) [@Albert](https://discourse.stonehearth.net/u/Albert)\
**Post date:** [November 16, 2015, 5:54am UTC](https://discourse.stonehearth.net/t/engine-error-on-loading-saved-game/17197/12 "2015-11-16T05:54:17Z")

</div>

We completely changed how ghost items are handled, so let’s close and see if any new reports come in.
