Promoting a footman froze the footman during promotion

Was promoting a citizen to footman for protection incase of goblin attack, all looked normal, villager walked up to the sword, then suddenly stopped, villager was still above ground, after a save and reload, villager still frozen, and now stuck whit just head above ground.
Just before, two workers were promoted to farmers, and 1 to trapper, whit no issues, did get some text ingame about error, did take a screenshot.

hi @Mokkun … does this sound like what is happening in this report?

But in fact the screenshot shows only one head, the rest of settlers look normal. So weird. :confused:

1 Like

Sorry, no, do not seem to be the same error.

The last time this bug happened to me, the trapper and carpenter were spared the wrath of the earth, with the rest being buried to their heads (and something weirder than that for one other villager). So that does seem to happen sometimes.

@Mokkun, I’m quite sure the stuck with head in ground part after saving/loading is that same bug. However, that still leaves the original freezing of the footman to be explained.

2 Likes

It seems this issue has come back or at least one that is very similar.
In this case it happens when promoting a Hearthling to a footman and the target dies while transforming. The Hearthling freezes and attempts to revert them back to a worker or another class does not work. I have attached the log which lists the four (4) errors that occurs. It is seems that the Hearthling is unable to resolve the missing target.

release-789 (x64)[M]
…tonehearth/services/server/combat/combat_service.lua:383: attempt to call method ‘is_valid’ (a nil value)
stack traceback:
…tonehearth/services/server/combat/combat_service.lua:383: in function ‘get_entity_radius’
…tonehearth/services/server/combat/combat_service.lua:355: in function ‘get_melee_range’
…ehearth/ai/actions/combat/get_melee_range_action.lua:27: in function <…ehearth/ai/actions/combat/get_melee_range_action.lua:18>
[C]: in function ‘start_thinking’
stonehearth/services/server/tasks/task_action.lua:102: in function ‘_start_stop_thinking’
stonehearth/services/server/tasks/task_action.lua:174: in function <stonehearth/services/server/tasks/task_action.lua:168>
[C]: in function ‘start_thinking’
…nehearth/services/server/tasks/task_group_action.lua:90: in function <…nehearth/services/server/tasks/task_group_action.lua:44>
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:515: in function <stonehearth/components/ai/ai_component.lua:499>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:66: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:499: 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/commons.lua:66: 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>

release-789 (x64)[M]
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (5707 Sam Papp) (stonehearth:top) bad frame transition to “stop” from “starting_thinking”
stack traceback:
[C]: ?
[C]: in function ‘stop’
stonehearth/components/ai/ai_component.lua:575: in function <stonehearth/components/ai/ai_component.lua:499>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:66: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:499: 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/commons.lua:66: 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>

release-789 (x64)[M]
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:982 invalid initial state “starting_thinking” in run
stack traceback:
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:515: in function <stonehearth/components/ai/ai_component.lua:499>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:66: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:499: 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/commons.lua:66: 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>

release-789 (x64)[M]
@stonehearth/components/ai/ai_component.lua:560: (5707 Sam Papp) has not yielded after 10 ai spins. Are they in a bad state? Last abort reasons: < (x10)>
stack traceback:
radiant/modules/commons.lua:46: in function ‘report_traceback’
radiant/modules/commons.lua:230: in function ‘verify’
stonehearth/components/ai/ai_component.lua:560: in function <stonehearth/components/ai/ai_component.lua:499>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:66: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:499: 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/commons.lua:66: 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>
stonehearth.log (797.4 KB)