# \[Res\] \[Dev 2620\] error in prune\_dead\_listeners

**URL:** <https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [September 25, 2015, 9:13am UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564 "2015-09-25T09:13:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ConvinientSanta](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/convinientsanta/32/47550_2.png) [@ConvinientSanta](https://discourse.stonehearth.net/u/ConvinientSanta)\
**Post date:** [September 27, 2015, 3:03pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/21 "2015-09-27T15:03:35Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/b/9/b994cb5a56d2ae3f6c51940d729f5fd8f437e4d6.jpg)

This happend before [Not able to build floors](http://discourse.stonehearth.net/t/not-able-to-build-floors/15432)

And I have no idea what doing it, Reloading before it hits 1000 fixes it but it keeps coming back.

---

<div class="post-metadata">

**Author:** ![Avairian](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/avairian/32/47084_2.png) [@Avairian](https://discourse.stonehearth.net/u/Avairian)\
**Post date:** [September 27, 2015, 1:16pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/22 "2015-09-27T13:16:03Z")

</div>

Hmm… This seems to be the same bug mentioned here: [[Res] [Dev 2620] error in prune\_dead\_listeners](http://discourse.stonehearth.net/t/ack-bug-dev-2611-looping-error/16564/5)

This bug has been Acknowledged by the Dev team and hopefully should be fixed soon.

---

<div class="post-metadata">

**Author:** ![Jim\_Bozo](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@Jim\_Bozo](https://discourse.stonehearth.net/u/Jim_Bozo)\
**Post date:** [September 27, 2015, 2:12pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/23 "2015-09-27T14:12:52Z")

</div>

It appears to be the game freaking out when you kill a goblin. Play in Peaceful mode until the next patch and you shouldn’t experience the error.

---

<div class="post-metadata">

**Author:** ![legobil](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@legobil](https://discourse.stonehearth.net/u/legobil)\
**Post date:** [September 27, 2015, 8:28pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/24 "2015-09-27T20:28:13Z")

</div>

I had 2 footmen killing the occasional undead assailant (demoted to workers while there were no enemies) a few days into my latest playthrough and when the first armed goblin arrived I promoted them again and when they had killed the goblin i got this error spamming. I searched discourse for prune\_dead\_listeners it didnt turn up any results, so i figured i might post this:

```
develop-2611 (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>

```

It also generated/spammed a second c++ error, pointing to the above one being the traceback. Hope there is enogh info in here 😛

edit: sorry for posting dupe and thanks for merge @Relyss 😊

---

<div class="post-metadata">

**Author:** ![Ecchi\_Poro](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@Ecchi\_Poro](https://discourse.stonehearth.net/u/Ecchi_Poro)\
**Post date:** [September 29, 2015, 2:46pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/25 "2015-09-29T14:46:23Z")

</div>

So my stonehearth started to lag and i could not select anything i could just look at what the villagers where doing. I could not even go to escape to save and reload the game file. I also noticed that stonehearth uses a lot of cpu and ram so my question is what is happening with my game?  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/0/8/08dc271af3dcb042f607fb5ea9f253312b0f7858.png)

---

<div class="post-metadata">

**Author:** ![jonzoid](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jonzoid/32/44593_2.png) [@jonzoid](https://discourse.stonehearth.net/u/jonzoid)\
**Post date:** [September 29, 2015, 11:23am UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/26 "2015-09-29T11:23:23Z")

</div>

Did you get any errors before you started to notice the issue? There’s a known issue that typically happens during combat where you get tons of errors very quickly. You can tell this because the error popup has a number in the top right that just continually increases.

If that happens to be it, it should be fixed in the next release. A workaround is to save, quit to menu, and then reload your game any time that happens. Read about it here:

> [@\[Res\] \[Dev 2620\] error in prune\_dead\_listeners](http://discourse.stonehearth.net/t/ack-bug-dev-2611-looping-error/16564/3):
>
> Same happened to me game froze at 2700+ errors within few seconds. But none of my hearthlings died that time. But i can confirm there was a goblin spawn at this time. Lucky the game saved in background could continue game but after load got once: 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:83: in functio…

If that’s not it, can you post what error you got and anything you might have been doing around when it happened?

---

<div class="post-metadata">

**Author:** ![Ecchi\_Poro](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@Ecchi\_Poro](https://discourse.stonehearth.net/u/Ecchi_Poro)\
**Post date:** [September 29, 2015, 11:40am UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/27 "2015-09-29T11:40:48Z")

</div>

i was not doing anything. I had people working the farms and restocking chests. But there was this goblin that tried to attack me, he failed somehow and then he started to go towards his camp and an error occured.

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

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [September 29, 2015, 2:47pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/28 "2015-09-29T14:47:46Z")

</div>

that is indeed the error that @jonzoid mentioned, so i have merged your topic with the original.

---

<div class="post-metadata">

**Author:** ![OlderThanBefore](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/olderthanbefore/32/22691_2.png) [@OlderThanBefore](https://discourse.stonehearth.net/u/OlderThanBefore)\
**Post date:** [September 29, 2015, 9:05pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/29 "2015-09-29T21:05:39Z")

</div>

Hello everyone and deviant team ! 🙂

I got exactly the same bug than Ecchi\_Poro in the same way !  
A goblin tryed an attack on one of my villager, he failed and then get back to his camp and the “looping” error started !

Just giving my experience of the bug 😃

---

<div class="post-metadata">

**Author:** ![wrath\_lamp](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@wrath\_lamp](https://discourse.stonehearth.net/u/wrath_lamp)\
**Post date:** [September 29, 2015, 10:04pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/30 "2015-09-29T22:04:56Z")

</div>

develop-2611 (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\>

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/e/d/ed0005ea0ff64b5083d5c6b953e18eebb23c1cce.png)

after i alt+tabed out, and back in, everything froze, but at least i had all the good things in a screen cap.

details: 2 goblins appeared inside walls. killed one goblin. started to atack the other goblin. the exact moment the error popped up was when the goblin started showing visible hp loss.

---

<div class="post-metadata">

**Author:** ![GerhartRTFO](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/gerhartrtfo/32/22253_2.png) [@GerhartRTFO](https://discourse.stonehearth.net/u/GerhartRTFO)\
**Post date:** [September 29, 2015, 11:01pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/31 "2015-09-29T23:01:05Z")

</div>

Sorry to say this but I’m still getting this error with the new build 2617. Got it killing a Goblin.

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

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [September 29, 2015, 11:03pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/32 "2015-09-29T23:03:12Z")

</div>

> [@GerhartRTFO](#):
>
> Sorry to say this but I’m still getting this error with the new build 2617. Got it killing a Goblin.

oh dear! i took the [Res] tag off, paging @Albert…

---

<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:** [September 29, 2015, 11:15pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/33 "2015-09-29T23:15:32Z")

</div>

Rats. We messed up. This bug was not fixed. This is now noted in the patch notes on the forum.

---

<div class="post-metadata">

**Author:** ![Communistpenguin](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@Communistpenguin](https://discourse.stonehearth.net/u/Communistpenguin)\
**Post date:** [September 29, 2015, 11:32pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/34 "2015-09-29T23:32:37Z")

</div>

My soldiers were killin some goblins and this happened. up to 2k pages

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

Second page:

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

---

<div class="post-metadata">

**Author:** ![Hieronymous](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/hieronymous/32/28530_2.png) [@Hieronymous](https://discourse.stonehearth.net/u/Hieronymous)\
**Post date:** [September 30, 2015, 1:36am UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/36 "2015-09-30T01:36:46Z")

</div>

Same bug here in current dev build.

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

---

<div class="post-metadata">

**Author:** ![Cube1](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cube1/32/53900_2.png) [@Cube1](https://discourse.stonehearth.net/u/Cube1)\
**Post date:** [September 30, 2015, 3:45pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/37 "2015-09-30T15:45:32Z")

</div>

When i killed a goblin i got an infinite error.  
I played on the alpha 12 beta branch.

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [September 30, 2015, 3:35pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/38 "2015-09-30T15:35:04Z")

</div>

hey there @Cube1,

[quote=“Cube1, post:1, topic:16763”]  
When i killed a goblin i got an infinite error.I played on the beta branch.  
[/quote]is that this error perhaps,

> [@\[Res\] \[Dev 2620\] error in prune\_dead\_listeners](http://discourse.stonehearth.net/t/ack-bug-dev-2611-looping-error-prune-dead-listeners/16564):
>
> The only tasks I had going was farmer planting fields and the mason maintaining 25 stone fence in the stockpile. It collected 2000+ errors before the game froze. I managed to copy one of the error messages and I’ll include the log System: win10 home premium intel Core i7 @ 2.4 GHz 12GB RAM Nvidia GT260M w/ 1 GB GRAM \<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\_…

or this one,

> [@Another looping error](http://discourse.stonehearth.net/t/another-looping-error/16731):
>
> develop-2617 (x64) stonehearth/components/ai/execution\_frame.luac:688: :aborted\_frame:radiant\_policy\_rethrow stack traceback: [C]: ? [C]: in function 'error’ stonehearth/components/ai/execution\_frame.luac:688: in function '\_exit\_protected\_call’ stonehearth/components/ai/execution\_frame.luac:489: in function 'abort’ stonehearth/components/ai/execution\_unit\_v2.luac:223: in function 'fn’ stonehearth/services/server/threads/thread.luac:98: in function 'interrupt’ stonehearth/services/serve…

[quote=“Cube1, post:1, topic:16763”]  
Anyone else want to post their bugs here go ahead! 😃  
[/quote]we would appreciate it if you would post one bug per report/thread, it makes it much easier for the devs to sort through and fix.

---

<div class="post-metadata">

**Author:** ![Cube1](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cube1/32/53900_2.png) [@Cube1](https://discourse.stonehearth.net/u/Cube1)\
**Post date:** [September 30, 2015, 3:36pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/39 "2015-09-30T15:36:10Z")

</div>

the first one! and one time i got a looping error when it got day…

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [September 30, 2015, 3:46pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/40 "2015-09-30T15:46:19Z")

</div>

> [@Cube1](#):
>
> the first one!

alrighty, i just merged yours with this one. 😄

---

<div class="post-metadata">

**Author:** ![Seraphic](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Seraphic](https://discourse.stonehearth.net/u/Seraphic)\
**Post date:** [September 30, 2015, 7:02pm UTC](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564/41 "2015-09-30T19:02:14Z")

</div>

popped up after killing the first goblin in my new town

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

[Previous page](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564.md?page=1)

[Next page](https://discourse.stonehearth.net/t/res-dev-2620-error-in-prune-dead-listeners/16564.md?page=3)
