XXX has not yielded after 10 ai spins

Summary:

Pantor was a simple worker fetching a box of Pumpkins to feed his friends, he got in a bit of a spin … 10 times to be exact.

Ella is a rebellious one, she decided to build a ladder up a wall to reach a mining spot and then just spun around looking pretty.

Steps to reproduce:

  1. x
  2. x
  3. x

Expected Results:

x

Actual Results:

x

Notes:

release-543 (x64)
@stonehearth/components/ai/ai_component.lua:566: (10491 Pantor Boltoose) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not get block to mine
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-543 (x64)
@stonehearth/components/ai/ai_component.lua:566: (738655 Ella Ember) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not get block to mine
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:

A15 v543

No mods, just templates.

System Information:

1 Like

NOOOO!!! Another mining AI spin bug…@albert, we need your help!

2 Likes

Summary:
An error appeared, but nothing visible happened
Steps to reproduce:

  1. play stonehearth
  2. don’t know what you do

Expected Results:
Nothing
Actual Results:
Engine Error
release-543 (x64)
@stonehearth/components/ai/ai_component.lua:566: (2550 Petra Bendel) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not get block to mine
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>
Version Number and Mods in use:
release 543 - Patrol mod

Sorry to put you in a bit of a spin, it wasn’t my intention to wind you up.

Hopefully there will be a nice quick turn around on this problem, the last thing we need is people to spin out of control on this issue.

Alright…

I’ll stop :cry:

5 Likes

Another one


release-543 (x64)
@stonehearth/components/ai/ai_component.lua:566: (9657 Juyne Ember) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: drop carrying in storage destination moved.
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>

Ok, I think I just fixed this one as well. Thanks everyone!

[Edit] Actually, does anyone have a save I can use to verify the fix?

3 Likes

1458767725411.7z (4.7 MB)

Here you go.

I just wanted to make mention, that while in build 537, the forest biome I normally play in and have several different game saves rarely produced the above mentioned assertion. Before and since release 543(I don’t feel the issue is as prevalent in release 543), while in the Desert Biome I started receiving the assertion regularly. Seemed strange how I received it so often In 1 biome but not really at all in the other…?

@Sicario - I saw a some mined out tunnels, but no active mining zone. Is this correct?

Hey, sorry for the late reply.

The save i gave you was a bit later then the actual incident. I apologise if that was incorrect.

Should i in the future make a save when i encounter a engine error?

The typical practice after an error is to load the previous save/autosave and see if it happens again. If it does, please post it to the forum so we can debug it. Thanks!

1 Like

Right, i’ll follow those methods in the future.

Sorry about that.

1 Like

Not at all. Thanks for posting the error!

1 Like