# Ongoing assertion failed - armed goblin encounter

**URL:** <https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [September 25, 2015, 12:41am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556 "2015-09-25T00:41:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_P](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@David\_P](https://discourse.stonehearth.net/u/David_P)\
**Post date:** [September 25, 2015, 12:41am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/1 "2015-09-25T00:41:58Z")

</div>

1. an armed goblin encounter occurs
2. i pressed town defense
3. assertion failure fills debug.
4. save game
5. game is mostly locked up
6. close game (had to use task manager to close part or all.)
7. post error 😄

error looks like a lot of these:

```
2015-Sep-25 10:27:42.174248 | client | 1 | renderer.mob | failed to set transform on node 148117.
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | stack traceback:
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | [C]: ?
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | [C]: in function 'assert'
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | radiant/modules/events.luac:77: in function '_prune_dead_listeners'
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | radiant/modules/events.luac:82: in function '_update'
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | radiant/server.luac:19: in function <radiant/server.luac:17>
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | -- Lua Error End ------------------------------- 
2015-Sep-25 10:27:42.174248 | server | 1 | lua.code | generating traceback...
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | -- Script Error (native) Begin ------------------------------- 
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | c++ exception: lua runtime error
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | stack traceback:
2015-Sep-25 10:27:42.174248 | server | 0 | lua.code | -- Lua Error End ------------------------------- 
2015-Sep-25 10:27:42.214491 | client | 1 | renderer.mob | failed to set transform on node 148117.

```

after game reloads it had a few assertion failures to do with panicking civilians but otherwise seams ok.

if i can replicate ill post more details

---

<div class="post-metadata">

**Author:** ![David\_P](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@David\_P](https://discourse.stonehearth.net/u/David_P)\
**Post date:** [September 25, 2015, 1:48am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/2 "2015-09-25T01:48:22Z")

</div>

potentially related from later in the same game:

this happened right after killing a goblin

```
develop-2609 (x64)
radiant/modules/events.luac:40: assertion failed!
stack traceback:
	[C]: ?
	[C]: in function 'assert'
	radiant/modules/events.luac:40: in function 'trigger_async'
	.../components/combat_state/combat_state_component.luac:85: in function 'remove_attack_leash'
	stonehearth/services/server/unit_control/party.luac:95: in function '_update_leashes'
	stonehearth/services/server/unit_control/party.luac:76: in function '_update_party'
	stonehearth/services/server/unit_control/party.luac:16: in function <stonehearth/services/server/unit_control/party.luac:13>
```

---

<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:** [September 25, 2015, 10:40pm UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/3 "2015-09-25T22:40:53Z")

</div>

@Albert, received the same error as above.

```
develop-2609 (x64)
radiant/modules/events.luac:40: assertion failed!
stack traceback:
	[C]: ?
	[C]: in function 'assert'
	radiant/modules/events.luac:40: in function 'trigger_async'
	.../components/combat_state/combat_state_component.luac:85: in function 'remove_attack_leash'
	stonehearth/services/server/unit_control/party.luac:95: in function '_update_leashes'
	stonehearth/services/server/unit_control/party.luac:76: in function '_update_party'
	stonehearth/services/server/unit_control/party.luac:16: in function <stonehearth/services/server/unit_control/party.luac:13> 

```

Happened while attacking 3 Goblins that “snuck into camp.” Log link below:  
[Dropbox Link](https://www.dropbox.com/s/f1ij5ww9x52q8if/stonehearth.log?dl=0 "Dropbox Link")

---

<div class="post-metadata">

**Author:** ![hurtzog](https://avatars.discourse-cdn.com/v4/letter/h/ed655f/32.png) [@hurtzog](https://discourse.stonehearth.net/u/hurtzog)\
**Post date:** [September 26, 2015, 12:27am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/4 "2015-09-26T00:27:58Z")

</div>

Also had an error message occur after armed goblins attacked. It occurred in an infinite loop

develop-2609 (x64)  
radiant/modules/events.luac:77: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function 'assert’  
radiant/modules/events.luac:77: in function '\_prune\_dead\_listeners’  
radiant/modules/events.luac:82: in function '\_update’  
radiant/server.luac:19: in function \<radiant/server.luac:17\>

---

<div class="post-metadata">

**Author:** ![Boulderboy](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/boulderboy/32/20640_2.png) [@Boulderboy](https://discourse.stonehearth.net/u/Boulderboy)\
**Post date:** [September 26, 2015, 1:14am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/5 "2015-09-26T01:14:14Z")

</div>

I’ve been waiting patiently for the goblin encounters to start and made a point of watching the battle very closely in case the error popped up. It did 😃

The error seemed to occur as the first goblin died in the battle.

---

<div class="post-metadata">

**Author:** ![Yosmo78](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yosmo78/32/23157_2.png) [@Yosmo78](https://discourse.stonehearth.net/u/Yosmo78)\
**Post date:** [September 26, 2015, 3:58am UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/6 "2015-09-26T03:58:30Z")

</div>

This happens with any goblin attack whatsoever and it totally stopped my hearthlings from working, maybe this is the bug that prevents hearthlings from working even though they have things queued up. Here is my world before the bug

> **[1443238261550.zip](https://www.dropbox.com/s/8vlis6y5culcel4/1443238261550.zip?dl=0)**
>
> Shared with Dropbox

  
after the bug  

> **[1443238469246.zip](https://www.dropbox.com/s/gdnidduknpv1yln/1443238469246.zip?dl=0)**
>
> Shared with Dropbox

  
and here is a log report after the bug took place  

> **[stonehearth.log](https://www.dropbox.com/s/m0yctv5e5k8mtky/stonehearth.log?dl=0)**
>
> Shared with Dropbox

  
hope this helped a little.  
also I am in the newest build  
here is a pic of them idling around ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/2/9/29e1b894f11435ca9ed65b5cc05eeecb24cf535d.jpg)

---

<div class="post-metadata">

**Author:** ![David\_P](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@David\_P](https://discourse.stonehearth.net/u/David_P)\
**Post date:** [September 26, 2015, 9:37pm UTC](https://discourse.stonehearth.net/t/ongoing-assertion-failed-armed-goblin-encounter/16556/7 "2015-09-26T21:37:29Z")

</div>

@Ponder has responded in a duplicate thread:

> [[Res] [Dev 2620] error in prune\_dead\_listeners - #10 by Ponder](http://discourse.stonehearth.net/t/bug-dev-2611-looping-error/16564/10)
