# Engine Error - release-859 (x64)\[M\]

**URL:** <https://discourse.stonehearth.net/t/engine-error-release-859-x64-m/35862>\
**Category:** uncategorized\
**Created:** [June 8, 2018, 8:17pm UTC](https://discourse.stonehearth.net/t/engine-error-release-859-x64-m/35862 "2018-06-08T20:17:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matias\_Rizzoli](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/matias_rizzoli/32/68407_2.png) [@Matias\_Rizzoli](https://discourse.stonehearth.net/u/Matias_Rizzoli)\
**Post date:** [June 8, 2018, 8:17pm UTC](https://discourse.stonehearth.net/t/engine-error-release-859-x64-m/35862/1 "2018-06-08T20:17:02Z")

</div>

release-859 (x64)[M]  
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution\_frame.cpp:1007  
invalid initial state “thinking” in run  
Culprit:  
frame: stonehearth:top  
unit: combat dispatcher  
compound: combat dispatcher  
frame: stonehearth:combat  
stack traceback:  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.lua:534: in function \<stonehearth/components/ai/ai\_component.lua:518\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:518: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:277: in function \<stonehearth/services/server/threads/thread.lua:274\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:274: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

release-859 (x64)[M]  
stack traceback:  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.lua:534: in function \<stonehearth/components/ai/ai\_component.lua:518\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:518: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:277: in function \<stonehearth/services/server/threads/thread.lua:274\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:274: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![Matias\_Rizzoli](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/matias_rizzoli/32/68407_2.png) [@Matias\_Rizzoli](https://discourse.stonehearth.net/u/Matias_Rizzoli)\
**Post date:** [June 11, 2018, 7:59pm UTC](https://discourse.stonehearth.net/t/engine-error-release-859-x64-m/35862/2 "2018-06-11T19:59:10Z")

</div>

release-859 (x64)[M]  
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution\_frame.cpp:1007  
invalid initial state “thinking” in run  
Culprit:  
frame: stonehearth:top  
unit: combat dispatcher  
compound: combat dispatcher  
frame: stonehearth:combat  
stack traceback:  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.lua:534: in function \<stonehearth/components/ai/ai\_component.lua:518\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:518: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:277: in function \<stonehearth/services/server/threads/thread.lua:274\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:274: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

release-859 (x64)[M]  
stack traceback:  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.lua:534: in function \<stonehearth/components/ai/ai\_component.lua:518\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:518: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:277: in function \<stonehearth/services/server/threads/thread.lua:274\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:274: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![Matias\_Rizzoli](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/matias_rizzoli/32/68407_2.png) [@Matias\_Rizzoli](https://discourse.stonehearth.net/u/Matias_Rizzoli)\
**Post date:** [June 12, 2018, 1:00am UTC](https://discourse.stonehearth.net/t/engine-error-release-859-x64-m/35862/3 "2018-06-12T01:00:39Z")

</div>

release-859 (x64)[M]  
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution\_frame.cpp:743  
state changed in RestartThinking starting\_thinking -\> stopped  
Culprit:  
frame: stonehearth:top  
unit: human work dispatcher  
compound: human work dispatcher  
frame: stonehearth:work  
unit: build  
task\_group: build  
frame: task\_group:1000  
unit: TASKstonehearth:fabricate\_chunk  
task: TASKstonehearth:fabricate\_chunk  
frame: stonehearth:fabricate\_chunk  
unit: fabricate chunk  
compound: fabricate chunk  
frame: stonehearth:pickup\_item\_made\_of  
unit: pickup item made of  
compound: pickup item made of  
frame: stonehearth:pickup\_item\_type  
unit: pickup item type from any storage  
compound: pickup item type from any storage  
frame: stonehearth:pickup\_item\_type\_from\_storage  
stack traceback:  
[C]: ?  
[C]: in function ‘set\_think\_output’  
…th/ai/actions/find\_best\_reachable\_entity\_by\_type.lua:159: in function ‘\_set\_result’  
…th/ai/actions/find\_best\_reachable\_entity\_by\_type.lua:95: in function ‘found\_cb’  
stonehearth/components/item\_finder/item\_search.lua:196: in function ‘\_call\_found\_cb’  
stonehearth/components/item\_finder/item\_search.lua:214: in function ‘\_call\_found\_cbs’  
stonehearth/components/item\_finder/item\_search.lua:144: in function \<stonehearth/components/item\_finder/item\_search.lua:120\>

release-859 (x64)[M]  
c++ exception: lua runtime error  
stack traceback:
