# Engine error message

**URL:** <https://discourse.stonehearth.net/t/engine-error-message/16437>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [September 20, 2015, 4:32pm UTC](https://discourse.stonehearth.net/t/engine-error-message/16437 "2015-09-20T16:32:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mokkun](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/mokkun/32/65516_2.png) [@Mokkun](https://discourse.stonehearth.net/u/Mokkun)\
**Post date:** [September 20, 2015, 4:32pm UTC](https://discourse.stonehearth.net/t/engine-error-message/16437/1 "2015-09-20T16:32:03Z")

</div>

Did not spot a thread for these messages, atleast not for this build.

Suddenly got the following messages:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:72: bad unit transition “set\_think\_output” from “starting” in action put restockable item into backpack  
stack traceback:  
[C]: ?  
[C]: in function 'error’  
stonehearth/components/ai/execution\_unit\_v2.luac:72: in function '\_unknown\_transition’  
stonehearth/components/ai/execution\_unit\_v2.luac:105: in function '\_set\_think\_output’  
stonehearth/components/ai/execution\_unit\_v2.luac:321: in function '?'  
stonehearth/components/ai/execution\_unit\_v2.luac:18: in function 'set\_think\_output’  
stonehearth/services/server/ai/compound\_action.luac:89: in function '\_set\_think\_output’  
stonehearth/services/server/ai/compound\_action.luac:71: in function '\_start\_thinking\_on\_frame’  
stonehearth/services/server/ai/compound\_action.luac:74: in function 'think\_progress\_cb’  
stonehearth/components/ai/execution\_frame.luac:373: in function '\_think\_progress\_cb’  
stonehearth/components/ai/execution\_frame.luac:687: in function ‘\_set\_state’  
…  
stonehearth/components/ai/execution\_frame.luac:687: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:440: in function '\_unit\_ready\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:154: in function '\_unit\_ready’  
stonehearth/components/ai/execution\_unit\_v2.luac:187: in function '\_set\_think\_output\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:102: in function '\_set\_think\_output’  
stonehearth/components/ai/execution\_unit\_v2.luac:321: in function '?'  
stonehearth/components/ai/execution\_unit\_v2.luac:18: in function 'set\_think\_output’  
stonehearth/ai/actions/find\_path\_to\_entity\_type.luac:17: in function ‘solved\_cb’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:47: in function ‘\_call\_solved\_cbs’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:39: in function \<…th/components/pathfinder/shared\_bfs\_path\_finder.luac:36\>

2:  
develop-2598 (x64)  
c++ exception: lua runtime error  
stack traceback:

3:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:535: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:535: in function '\_unwind\_call\_stack’  
stonehearth/components/ai/execution\_frame.luac:709: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:377: in function 'start’  
stonehearth/services/server/ai/compound\_action.luac:119: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_start’  
stonehearth/components/ai/execution\_unit\_v2.luac:226: in function '\_do\_start’  
stonehearth/components/ai/execution\_unit\_v2.luac:196: in function '\_start\_from\_ready’  
stonehearth/components/ai/execution\_unit\_v2.luac:132: in function '\_start’  
stonehearth/components/ai/execution\_frame.luac:486: in function ‘\_start\_from\_ready’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

4:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:409: in function '\_stop\_thinking\_from\_ready’  
stonehearth/components/ai/execution\_frame.luac:128: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:376: in function \<stonehearth/components/ai/execution\_frame.luac:376\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

5:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:721: stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'error’  
stonehearth/components/ai/execution\_frame.luac:721: in function '\_exit\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:716: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function '\_do\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:201: in function '\_stop\_from\_starting’  
stonehearth/components/ai/execution\_unit\_v2.luac:149: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function ‘\_stop\_from\_started’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

6:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:409: in function '\_stop\_thinking\_from\_ready’  
stonehearth/components/ai/execution\_frame.luac:128: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:376: in function \<stonehearth/components/ai/execution\_frame.luac:376\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

7:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:721: stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'error’  
stonehearth/components/ai/execution\_frame.luac:721: in function '\_exit\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:716: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function '\_do\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:192: in function '\_stop\_thinking\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:121: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:408: in function ‘\_stop\_thinking\_from\_ready’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

8:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:199: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:199: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:147: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function '\_stop\_from\_started’  
stonehearth/components/ai/execution\_frame.luac:176: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'stop\_thinking’  
stonehearth/ai/actions/loop\_action.luac:53: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

9:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:409: in function '\_stop\_thinking\_from\_ready’  
stonehearth/components/ai/execution\_frame.luac:128: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:376: in function \<stonehearth/components/ai/execution\_frame.luac:376\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

10:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:721: stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'error’  
stonehearth/components/ai/execution\_frame.luac:721: in function '\_exit\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:716: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function '\_do\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:192: in function '\_stop\_thinking\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:121: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:408: in function ‘\_stop\_thinking\_from\_ready’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

11:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:199: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:199: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:147: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function '\_stop\_from\_started’  
stonehearth/components/ai/execution\_frame.luac:176: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'stop\_thinking’  
stonehearth/ai/actions/loop\_action.luac:53: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

12:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:199: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:199: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:147: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function '\_stop\_from\_started’  
stonehearth/components/ai/execution\_frame.luac:176: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function ‘\_do\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

13:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:406: in function '\_stop\_thinking\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:126: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:376: in function \<stonehearth/components/ai/execution\_frame.luac:376\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function ‘\_call\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

14:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:721: stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'error’  
stonehearth/components/ai/execution\_frame.luac:721: in function '\_exit\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:716: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function '\_do\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:192: in function '\_stop\_thinking\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:121: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:405: in function ‘\_stop\_thinking\_from\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

15:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:192: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:192: in function '\_stop\_thinking\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:121: in function '\_stop\_thinking’  
stonehearth/components/ai/execution\_frame.luac:504: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:178: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:376: in function 'stop\_thinking’  
stonehearth/services/server/ai/compound\_action.luac:97: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:252: in function ‘\_do\_stop\_thinking’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

16:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:199: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:199: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:147: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function '\_stop\_from\_started’  
stonehearth/components/ai/execution\_frame.luac:176: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:394: in function \<stonehearth/components/ai/execution\_frame.luac:394\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:394: in function 'stop’  
stonehearth/services/server/ai/compound\_action.luac:134: in function ‘call\_fn’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

17:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_unit\_v2.luac:199: assertion failed!  
stack traceback:  
stonehearth/components/ai/execution\_frame.luac:705: in function \<stonehearth/components/ai/execution\_frame.luac:698\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_unit\_v2.luac:199: in function '\_stop\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:147: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:501: in function '\_stop\_from\_started’  
stonehearth/components/ai/execution\_frame.luac:176: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:394: in function 'stop’  
stonehearth/services/server/ai/compound\_action.luac:134: in function 'call\_fn’  
stonehearth/components/ai/execution\_unit\_v2.luac:22: in function '\_call\_stop’  
stonehearth/components/ai/execution\_unit\_v2.luac:228: in function ‘\_do\_stop’  
…  
stonehearth/components/ai/execution\_frame.luac:146: in function '\_run’  
stonehearth/components/ai/execution\_frame.luac:390: in function \<stonehearth/components/ai/execution\_frame.luac:381\>  
[C]: in function 'xpcall’  
stonehearth/components/ai/execution\_frame.luac:707: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

18:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
stonehearth/services/server/threads/thread.luac:87: in function \<stonehearth/services/server/threads/thread.luac:87\>  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:506: in function '\_stop\_from\_running’  
stonehearth/components/ai/execution\_frame.luac:182: in function '\_stop’  
stonehearth/components/ai/execution\_frame.luac:712: in function '\_protected\_call’  
stonehearth/components/ai/execution\_frame.luac:392: in function 'run’  
stonehearth/components/ai/ai\_component.luac:148: 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\>

19:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:440: in function '\_unit\_ready\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:154: in function '\_unit\_ready’  
stonehearth/components/ai/execution\_unit\_v2.luac:187: in function '\_set\_think\_output\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:102: in function '\_set\_think\_output’  
stonehearth/components/ai/execution\_unit\_v2.luac:321: in function '?'  
stonehearth/components/ai/execution\_unit\_v2.luac:18: in function 'set\_think\_output’  
stonehearth/ai/actions/find\_path\_to\_entity\_type.luac:17: in function ‘solved\_cb’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:47: in function ‘\_call\_solved\_cbs’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:39: in function \<…th/components/pathfinder/shared\_bfs\_path\_finder.luac:36\>

20:  
develop-2598 (x64)  
c++ exception: lua runtime error  
stack traceback:

21:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:440: in function '\_unit\_ready\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:154: in function '\_unit\_ready’  
stonehearth/components/ai/execution\_unit\_v2.luac:187: in function '\_set\_think\_output\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:102: in function '\_set\_think\_output’  
stonehearth/components/ai/execution\_unit\_v2.luac:321: in function '?'  
stonehearth/components/ai/execution\_unit\_v2.luac:18: in function ‘set\_think\_output’  
…d\_path\_to\_storage\_containing\_entity\_type\_action.luac:6: in function ‘solved\_cb’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:47: in function ‘\_call\_solved\_cbs’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:39: in function \<…th/components/pathfinder/shared\_bfs\_path\_finder.luac:36\>

---

<div class="post-metadata">

**Author:** ![Mokkun](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/mokkun/32/65516_2.png) [@Mokkun](https://discourse.stonehearth.net/u/Mokkun)\
**Post date:** [September 20, 2015, 4:32pm UTC](https://discourse.stonehearth.net/t/engine-error-message/16437/2 "2015-09-20T16:32:12Z")

</div>

22:  
develop-2598 (x64)  
c++ exception: lua runtime error  
stack traceback:

23:  
develop-2598 (x64)  
stonehearth/components/ai/execution\_frame.luac:684: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function 'assert’  
stonehearth/components/ai/execution\_frame.luac:684: in function '\_set\_state’  
stonehearth/components/ai/execution\_frame.luac:440: in function '\_unit\_ready\_from\_thinking’  
stonehearth/components/ai/execution\_frame.luac:154: in function '\_unit\_ready’  
stonehearth/components/ai/execution\_unit\_v2.luac:187: in function '\_set\_think\_output\_from\_thinking’  
stonehearth/components/ai/execution\_unit\_v2.luac:102: in function '\_set\_think\_output’  
stonehearth/components/ai/execution\_unit\_v2.luac:321: in function '?'  
stonehearth/components/ai/execution\_unit\_v2.luac:18: in function ‘set\_think\_output’  
…d\_path\_to\_storage\_containing\_entity\_type\_action.luac:6: in function ‘solved\_cb’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:47: in function ‘\_call\_solved\_cbs’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:39: in function \<…th/components/pathfinder/shared\_bfs\_path\_finder.luac:36\>

24:  
develop-2598 (x64)  
c++ exception: lua runtime error  
stack traceback:

Seems like at least 1 Heartling is over thinking things. 😉 Think I got them all that appeared at same time copied right.

---

<div class="post-metadata">

**Author:** ![Andmanpro](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@Andmanpro](https://discourse.stonehearth.net/u/Andmanpro)\
**Post date:** [October 12, 2015, 8:04pm UTC](https://discourse.stonehearth.net/t/engine-error-message/16437/3 "2015-10-12T20:04:19Z")

</div>

Sometimes get this from time to time. not really any adverse affects and unable to see cause…

develop-2630 (x64)bad unit transition “set\_think\_output” from "stopped in action find path to entity typestack traceback:  
[C]: ?  
[C]: in function ‘set\_think\_output’  
…d\_path\_to\_storage\_containing\_entity\_type\_action.luac:6: in function ‘solved\_cb’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:50: in function ‘\_call\_solved\_cbs’  
…th/components/pathfinder/shared\_bfs\_path\_finder.luac:42: in function \<…th/components/pathfinder/shared\_bfs\_path\_finder.luac:39\>

---

<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 12, 2015, 8:01pm UTC](https://discourse.stonehearth.net/t/engine-error-message/16437/4 "2015-10-12T20:01:08Z")

</div>

I think I’ve seen this error before…

> [@Engine error message](http://discourse.stonehearth.net/t/develop-2598-engine-error-message/16437):
>
> Did not spot a thread for these messages, atleast not for this build. Suddenly got the following messages: develop-2598 (x64) stonehearth/components/ai/execution\_unit\_v2.luac:72: bad unit transition “set\_think\_output” from “starting” in action put restockable item into backpack stack traceback: [C]: ? [C]: in function 'error’ stonehearth/components/ai/execution\_unit\_v2.luac:72: in function '\_unknown\_transition’ stonehearth/components/ai/execution\_unit\_v2.luac:105: in function '\_set\_think…

PS. Paging @8BitCrab
