Summary: Occasionally when I promote a hearthling it will produce errors and the AI stops completely for that particular hearthling. They will remain in a perpetual “promoting” state and will just stand there, completely braindead. This doesn’t happen on every occasion.
Steps to reproduce:
- Wait for combat (see below notes).
- Promote a hearthling.
Notes: I’ve encountered this bug twice tonight and once with previous release-848 (so it hasn’t been introduced overnight). On today’s occasions I was promoting to a footman and another to a cleric at separate times during my game. On one occasion I recall combat was active, so I am unsure whether this is a contributing factor, as I cannot remember if combat was active on the previous occasion. I haven’t found a way to get the AI to begin working again, so I’ve had to reload an autosave on each occasion.
Attachments:
These errors occurred while promoting a hearthling from a herbalist to cleric while combat was underway.
ERROR 1 OF 5
release-849 (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:91: in function <...nehearth/services/server/tasks/task_group_action.lua:45> [C]: ? [C]: in function 'run' stonehearth/components/ai/ai_component.lua:530: in function <stonehearth/components/ai/ai_component.lua:514> [C]: in function 'xpcall' radiant/modules/commons.lua:73: in function 'xpcall' stonehearth/components/ai/ai_component.lua:514: in function '_thread_main' stonehearth/services/server/threads/thread.lua:277: in function <stonehearth/services/server/threads/thread.lua:274> [C]: in function 'xpcall' radiant/modules/commons.lua:73: in function 'xpcall' stonehearth/services/server/threads/thread.lua:274: in function 'f' radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>
ERROR 2 OF 5
release-849 (x64)[M]
stack traceback:
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:530: in function <stonehearth/components/ai/ai_component.lua:514>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:514: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:277: in function <stonehearth/services/server/threads/thread.lua:274>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:274: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>
ERROR 3 OF 5
release-849 (x64)[M]
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:192
(2447 Riley Fenton) (stonehearth:top) bad frame transition to “stop” from “starting_thinking”
Culprit:
frame: stonehearth:top
stack traceback:
[C]: ?
[C]: in function ‘stop’
stonehearth/components/ai/ai_component.lua:590: in function <stonehearth/components/ai/ai_component.lua:514>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:514: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:277: in function <stonehearth/services/server/threads/thread.lua:274>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:274: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>
ERROR 4 OF 5
release-849 (x64)[M]
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:1007
invalid initial state “starting_thinking” in run
Culprit:
frame: stonehearth:top
stack traceback:
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:530: in function <stonehearth/components/ai/ai_component.lua:514>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:514: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:277: in function <stonehearth/services/server/threads/thread.lua:274>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:274: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>
ERROR 5 OF 5
release-849 (x64)[M]
@stonehearth
/components/ai/ai_component.lua:575: (2447 Riley Fenton) has not yielded after 10 ai spins. Are they in a bad state? Last abort reasons: < (x10)>
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:262: in function ‘verify’
stonehearth/components/ai/ai_component.lua:575: in function <stonehearth/components/ai/ai_component.lua:514>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:514: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:277: in function <stonehearth/services/server/threads/thread.lua:274>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:274: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>
Version Number and Mods in use:
Release-849(x64)
Rivers
Giant Maps
System Information:
Operating System: Windows 10 Pro 64-bit (10.0, Build 17134) (17134.rs4_release.180410-1804)
Language: English (Regional Setting: English)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: G1.Sniper 5
BIOS: BIOS Date: 08/25/14 15:28:56 Ver: 04.06.05 (type: BIOS)
Processor: Intel® Core™ i7-4770K CPU @ 3.50GHz (8 CPUs), ~3.5GHz
Memory: 16384MB RAM
Available OS Memory: 16260MB RAM
Page File: 11439MB used, 7764MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 12