Thought ai spinning issue was gone :)

Summary:
seems to be an issue with the honey part
Steps to reproduce:

  1. not sure why it happens

Expected Results:

Actual Results:

Notes:

release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (7662 Trevlon Homer) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6363057 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (5547 Luna Nelvin) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6363201 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (2172492 Alex Bendel) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (831074 Luca Zedro) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (1220539 Devona Freywind) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (6393 Azlynn Wester) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (5547 Luna Nelvin) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (1882199 Beth Belltower) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6366991 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>
release-549 (x64)
@stonehearth/components/ai/ai_component.lua:566: (2172492 Alex Bendel) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: (6363057 Honey Vat) has no stonehearth:food_container entity data
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:442: in function 'verify'
	stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:524: 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:243: 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>

Attachments:

Version Number and Mods in use:

System Information:

I think the reason is that the Honey (from the Café Mod) may be tagged as food but really isn’t. Had a farmer do this, just stand in front of it when they were hungry. It happed with the honey just laying on the ground. I had to put the town into defense mode to draw them away from the honey. They then selected food from another closer stockpile.

I don’t know if this is the reason why, still learning about the .json files, but there are two spaces between the : and the "
on the honey vat and the cheese and pig feed which work only has one space.

 "stonehearth:material" : {
     "tags" :  "resource food_container honey"

  "stonehearth:material": {
     "tags": "resource food_container cheese"
  },

also I should have said the “cookmod”

“stonehearth:material”: {
“tags”: “prepared_food animal_feed pig_feed”

wait I found it.

the cheese has this

“entity_data”: {
“stonehearth:food_container”: {
“effect”: “fiddle”,
“food”: “cookmod:cooking:cheese_serving”,
“stacks_per_serving”: 1

adding this portion to the honey should stop the previous behavior, but the hearthling will probable consume it.

the Honey vat is missing this entry: ( I don’t think it was meant to be an actually edible)

@Froggy is the creator they might know

I’ll take a look now. Honey is not meant to be consumable on it’s own, I designed it as a cooking ingredient.

The food_container entry is probably in there as a remnant of the evolution of honey. I’m pretty sure I might have made it edible to begin with…

2 Likes

Ai spinning was fixed (hopefully) for mining, but may still occur on other activities. It’s not a serious error, but can degrade performance while it is happening.

Thanks for posting! We’ll take a look at it.

5 Likes