Summary:
A15 Engine Failure AI Loop During Mining Steps to reproduce:
Using small mining tool to mark blocks to mine while making stone staircase
Marking a large number causes one worker (Jo Carvad) to enter AI loop (?)
Expected Results:
For workers to decide how to mine in most efficient manner… Actual Results:
Error on screen, slow mining. Notes:
develop-2871 (x64) @stonehearth/components/ai/ai_component.lua:566: (5245 Jo Carvad) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not reserve region
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:
Summary:
Ok, I’m just reposting the error message I got. It didn’t seem to effect gameplay.
Steps to reproduce:
I have no idea.
develop-2876 (x64) @stonehearth/components/ai/ai_component.lua:566: (234646 Monty Dorril) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not reserve region
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>
develop-2876 (x64) @stonehearth/components/ai/ai_component.lua:566: (455460 Rabbit) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: mover aborted
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>
No mods (no masters!), version is current dev branch on steam as per error message.
Just stared a fresh game, happened 5 minutes in, was about to mine, when it popped
Error:
release-537 (x64) @stonehearth/components/ai/ai_component.lua:566: (33057 Tippy Lebam) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not reserve region
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>
Ive only had this bug on worker Hearthlings (tho’s without tasks assigned).
Although i have a hunch (from trying to replicate) it may be associated with hearthlings that were once assigned a Job, but have been reassigned to worker.
? maybe they are trying to level up (‘xpcall’) while not having a job to be promoted in ?
Did you get a save file yet?
Can upload once i get back to my home machine
Thanks for all the saves! They really helped out. I was able to track down and fix the bug for mining (although there could be other bugs causing the ai to spin for other actions).
release-537 (x64)
@stonehearth/components/ai/ai_component.lua:566: (3384 Autumn Quess) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not reserve region
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
[C]: in function 'xpcall'
radiant/modules/common.lua:243: in function 'xpcall'
stonehearth/components/ai/ai_component.lua:524: in function 'threadmain'
stonehearth/services/server/threads/thread.lua:249: in function
[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
release-537 (x64) @stonehearth/components/ai/ai_component.lua:566: (59382 Riley Burlyhands) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: could not reserve region
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>
No need to apologize! That’s what us mods are here for.
If you are concerned about making duplicate posts (and you shouldn’t worry too much), check out the #support:bug-reports category and do a quick search. If nothing similar comes up, create your new topic. If you find a match, great! Remember, even if search shows no results, there still might be a duplicate. Search can be picky, particularly when dealing with all the formatting of engine errors. The mods read every post posted, so we tend to have a good idea of what exists on the site even when search fails. :smiley.
Correct. It’s non-fatal, but will consume more CPU than necessary. It’s probably fallout from building a floor adding multiple blocks where people are standing.
Wow, why isn’t this information a part of the "Report a bug information in-game?"
I’ve always done Print Screen, Mspaint, Ctrl-V check if it’s actually what I’m seeing in-game. Crop, Ctrl-C, Paste into forum-post.
Since I have dual monitors I always need to crop, but you are right, it’s actually there in the Screenshot folder…
release-687 (x64) @stonehearth/components/ai/ai_component.lua:598: (1810555 Lisy Wester) has not yielded after 10 ai spins. Are they in a bad state? Last abort reasons: <destination (10856651 stonehearth:decoration:firepit_seat) is no longer valid at start. filter description: find lit fire (x10)>
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:598: in function <stonehearth/components/ai/ai_component.lua:537>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/components/ai/ai_component.lua:537: in function '_thread_main’
stonehearth/services/server/threads/thread.lua:273: in function <stonehearth/services/server/threads/thread.lua:270>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/services/server/threads/thread.lua:270: in function 'f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>