# Engine Error while fighting

**URL:** <https://discourse.stonehearth.net/t/engine-error-while-fighting/21957>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [May 6, 2016, 6:28pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957 "2016-05-06T18:28:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demon](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/demon/32/14730_2.png) [@Demon](https://discourse.stonehearth.net/u/Demon)\
**Post date:** [May 6, 2016, 6:28pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/1 "2016-05-06T18:28:31Z")

</div>

My game thru this error while I was getting attacked by wolves and a golem. not sure if you guys would want it or not, but it’s the first one since this new build and a couple hours of playing so thats cool!! XD I was just watching my people fight. I had whole town on watch and a footman and a cleric.

develop-2960 (x64)stonehearth/ai/observers/find\_target\_observer.lua:163: assertion failed: target (1636494 Kami Ember)'s score is -2147483648, which is less than min score of -1000000000stack traceback:  
radiant/modules/common.lua:237: in function 'report\_traceback’  
radiant/modules/common.lua:248: in function \<radiant/modules/common.lua:242\>  
[C]: in function 'error’  
radiant/modules/common.lua:445: in function 'assert’  
stonehearth/ai/observers/find\_target\_observer.lua:163: in function '\_update\_target\_score’  
stonehearth/ai/observers/find\_target\_observer.lua:215: in function 'fn’  
radiant/modules/events.lua:203: in function \<radiant/modules/events.lua:200\>  
[C]: in function 'xpcall’  
radiant/modules/common.lua:257: in function 'xpcall’  
radiant/modules/events.lua:200: in function 'trigger’  
radiant/modules/events.lua:241: in function '\_fire\_async\_triggers’  
radiant/modules/events.lua:319: in function '\_update’  
radiant/server.lua:62: in function \<radiant/server.lua:58\>

---

<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:** [May 6, 2016, 7:54pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/2 "2016-05-06T19:54:05Z")

</div>

Thanks! This should be fixed for the next release.

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 9, 2016, 6:18pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/3 "2016-05-09T18:18:07Z")

</div>

**Summary:**  
it was after about the 9th stoneling that the error occurred

develop-2960 (x64)  
stonehearth/ai/observers/find\_target\_observer.lua:163: assertion failed: target (653467 Little Stone Golem stonehearth:monster\_tuning:forest:little\_stone\_golem)'s score is -2147483648, which is less than min score of -1000000000  
stack traceback:  
radiant/modules/common.lua:237: in function ‘report\_traceback’  
radiant/modules/common.lua:248: in function \<radiant/modules/common.lua:242\>  
[C]: in function ‘error’  
radiant/modules/common.lua:445: in function ‘assert’  
stonehearth/ai/observers/find\_target\_observer.lua:163: in function ‘\_update\_target\_score’  
stonehearth/ai/observers/find\_target\_observer.lua:215: in function ‘fn’  
radiant/modules/events.lua:203: in function \<radiant/modules/events.lua:200\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
radiant/modules/events.lua:200: in function ‘trigger’  
radiant/modules/events.lua:241: in function ‘\_fire\_async\_triggers’  
radiant/modules/events.lua:319: in function ‘\_update’  
radiant/server.lua:62: in function \<radiant/server.lua:58\>  
**Steps to reproduce:**

1. play rayyas on hard mode and kill lots of stonelings
2. 
3. 

**Expected Results:**  
this not to happen  
**Actual Results:**

**Notes:**

**Attachments:**

**Version Number and Mods in use:**  
2960, no mods  
**System Information:**  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/b/3/b37e7a1b60a535e9e01f80432fcdf7a1a563a69e.png)

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 8, 2016, 11:20am UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/4 "2016-05-08T11:20:31Z")

</div>

And here is another engine error from the same game,  
This one also happened after a combat.

develop-2960 (x64)  
@stonehearth/components/ai/ai\_component.lua:567: (38782 Uuen Maeh) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: follow\_path mover aborted  
stack traceback:  
radiant/modules/common.lua:237: in function 'report\_traceback’  
radiant/modules/common.lua:456: in function 'verify’  
stonehearth/components/ai/ai\_component.lua:567: in function \<stonehearth/components/ai/ai\_component.lua:525\>  
[C]: in function 'xpcall’  
radiant/modules/common.lua:257: in function 'xpcall’  
stonehearth/components/ai/ai\_component.lua:525: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.lua:249: in function \<stonehearth/services/server/threads/thread.lua:246\>  
[C]: in function 'xpcall’  
radiant/modules/common.lua:257: in function 'xpcall’  
stonehearth/services/server/threads/thread.lua:246: in function 'f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 8, 2016, 12:29pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/5 "2016-05-08T12:29:19Z")

</div>

And here is the first error again later on

develop-2960 (x64)  
stonehearth/ai/observers/find\_target\_observer.lua:163: assertion failed: target (40051 Talli Sharak)'s score is -2147483648, which is less than min score of -1000000000  
stack traceback:  
radiant/modules/common.lua:237: in function ‘report\_traceback’  
radiant/modules/common.lua:248: in function \<radiant/modules/common.lua:242\>  
[C]: in function ‘error’  
radiant/modules/common.lua:445: in function ‘assert’  
stonehearth/ai/observers/find\_target\_observer.lua:163: in function ‘\_update\_target\_score’  
stonehearth/ai/observers/find\_target\_observer.lua:215: in function ‘fn’  
radiant/modules/events.lua:203: in function \<radiant/modules/events.lua:200\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
radiant/modules/events.lua:200: in function ‘trigger’  
radiant/modules/events.lua:241: in function ‘\_fire\_async\_triggers’  
radiant/modules/events.lua:319: in function ‘\_update’  
radiant/server.lua:62: in function \<radiant/server.lua:58\>

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/2/4/24d38ed44071128583bcf072143de19a9d6ae0ab.jpg)

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 12, 2016, 11:01am UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/6 "2016-05-12T11:01:50Z")

</div>

I’m going use this topic because it’s another engine error whilst in combat,  
this time it was fighting a large band of orks, it seems to have something to do with archers orders and them not following them.

develop-2969 (x64)  
…t\_server\_commands/combat\_server\_commands\_service.lua:290: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function ‘assert’  
…t\_server\_commands/combat\_server\_commands\_service.lua:290: in function ‘\_issue\_individual\_event’  
…t\_server\_commands/combat\_server\_commands\_service.lua:266: in function \<…t\_server\_commands/combat\_server\_commands\_service.lua:265\>

---

<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:** [May 13, 2016, 5:47pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/7 "2016-05-13T17:47:22Z")

</div>

Thanks for the reports!

The find\_target\_observer error was fixed in develop-2969.  
I believe I have a fix for the combat\_server\_commands\_service error.

The follow\_path mover aborted is hard to reproduce so if anyone has a save that shows this, please upload it!

---

<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:** [May 17, 2016, 6:19pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/8 "2016-05-17T18:19:52Z")

</div>

A post was merged into an existing topic: [Error message, just reporting](https://discourse.stonehearth.net/t/error-message-just-reporting/22023)

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 15, 2016, 11:17pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/9 "2016-05-15T23:17:52Z")

</div>

Got another one

develop-2972 (x64)  
…ices/client/renderer/construction\_render\_tracker.lua:267: attempt to index a nil value  
stack traceback:  
radiant/modules/common.lua:237: in function ‘report\_traceback’  
radiant/modules/common.lua:248: in function \<radiant/modules/common.lua:242\>  
…ices/client/renderer/construction\_render\_tracker.lua:267: in function ‘\_update\_camera’  
…ices/client/renderer/construction\_render\_tracker.lua:208: in function ‘fn’  
radiant/modules/events.lua:203: in function \<radiant/modules/events.lua:200\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
radiant/modules/events.lua:200: in function ‘trigger’  
radiant/modules/events.lua:241: in function ‘\_fire\_async\_triggers’  
radiant/modules/events.lua:319: in function ‘\_update’  
radiant/client.lua:43: in function \<radiant/client.lua:38\>

Here is the save [1463354049502.zip](https://discourse.stonehearth.net/uploads/short-url/kslXfIhLZnycbzGDE5AKAuFJhNG.zip) (7.6 MB)

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 17, 2016, 11:26am UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/10 "2016-05-17T11:26:45Z")

</div>

develop-2972 (x64)  
@stonehearth/components/ai/ai\_component.lua:567: (574889 Rabbit) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: follow\_path mover aborted  
stack traceback:  
radiant/modules/common.lua:237: in function ‘report\_traceback’  
radiant/modules/common.lua:456: in function ‘verify’  
stonehearth/components/ai/ai\_component.lua:567: in function \<stonehearth/components/ai/ai\_component.lua:525\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:525: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:249: in function \<stonehearth/services/server/threads/thread.lua:246\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:246: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

[1463484251316.zip](https://discourse.stonehearth.net/uploads/short-url/k2a5MDk4JOs2g0tQbBcOdh1HKnI.zip) (5.2 MB)

---

<div class="post-metadata">

**Author:** ![Freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Freedom](https://discourse.stonehearth.net/u/Freedom)\
**Post date:** [May 18, 2016, 10:33am UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/11 "2016-05-18T10:33:53Z")

</div>

release-552 (x64)  
(39640 Jebediah Killian) (stonehearth:farm) bad frame transition to “unit\_not\_ready” from “running”  
stack traceback:  
[C]: in function ‘fn’  
stonehearth/services/server/threads/thread.lua:322: in function ‘private\_msg’  
stonehearth/services/server/threads/thread.lua:515: in function ‘\_dispatch\_messages’  
stonehearth/services/server/threads/thread.lua:379: in function \<stonehearth/services/server/threads/thread.lua:360\>  
[C]: in function ‘suspend’  
stonehearth/ai/actions/run\_effect\_action.lua:66: in function \<stonehearth/ai/actions/run\_effect\_action.lua:38\>  
[C]: ?  
[C]: ?  
[C]: in function ‘execute’  
…onehearth/ai/actions/plant\_field\_adjacent\_action.lua:45: in function ‘\_run\_till\_animation’  
…onehearth/ai/actions/plant\_field\_adjacent\_action.lua:52: in function \<…onehearth/ai/actions/plant\_field\_adjacent\_action.lua:49\>  
…  
[C]: in function ‘run’  
stonehearth/components/ai/ai\_component.lua:541: in function \<stonehearth/components/ai/ai\_component.lua:525\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
stonehearth/components/ai/ai\_component.lua:525: in function ‘\_thread\_main’  
stonehearth/services/server/threads/thread.lua:249: in function \<stonehearth/services/server/threads/thread.lua:246\>  
[C]: in function ‘xpcall’  
radiant/modules/common.lua:257: in function ‘xpcall’  
stonehearth/services/server/threads/thread.lua:246: in function ‘f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

The save file:  
[1463567495928.zip](https://discourse.stonehearth.net/uploads/short-url/riDcoWYmCeTxp1jVu7bw4fjnJ9h.zip) (8.4 MB)

---

<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:** [June 6, 2016, 2:28pm UTC](https://discourse.stonehearth.net/t/engine-error-while-fighting/21957/12 "2016-06-06T14:28:22Z")

</div>

A post was split to a new topic: [UI error from the building templates](https://discourse.stonehearth.net/t/ui-error-from-the-building-templates/22658)
