Crash report ( 9 errors long)

release-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (task_group:1239) bad frame transition to “unit_ready” from "starting"
stack traceback:
[C]: in function 'set_think_output’
stonehearth/services/server/tasks/task_action.lua:65: in function <stonehearth/services/server/tasks/task_action.lua:58>
[C]: in function 'set_think_output’
stonehearth/ai/actions/loop_action.lua:292: in function '_finish_building_loops’
stonehearth/ai/actions/loop_action.lua:168: in function '_loop_set_think_output’
stonehearth/ai/actions/loop_action.lua:48: in function <stonehearth/ai/actions/loop_action.lua:47>
[C]: in function 'fn’
stonehearth/services/server/threads/thread.lua:346: in function 'private_msg’
stonehearth/services/server/threads/thread.lua:543: in function '_dispatch_messages’
stonehearth/services/server/threads/thread.lua:403: in function <stonehearth/services/server/threads/thread.lua:384>
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (stonehearth:follow_path) bad frame transition to “start” from "stopped"
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'start’
stonehearth/services/server/tasks/task_action.lua:189: in function <stonehearth/services/server/tasks/task_action.lua:183>
[C]: ?
[C]: in function ‘start’
…nehearth/services/server/tasks/task_group_action.lua:104: in function <…nehearth/services/server/tasks/task_group_action.lua:100>
[C]: ?
[C]: ?
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (stonehearth:reserve_entity) bad frame transition to “start” from "stopped"
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'start’
stonehearth/services/server/tasks/task_action.lua:189: in function <stonehearth/services/server/tasks/task_action.lua:183>
[C]: ?
[C]: in function ‘start’
…nehearth/services/server/tasks/task_group_action.lua:104: in function <…nehearth/services/server/tasks/task_group_action.lua:100>
[C]: ?
[C]: ?
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (stonehearth:pickup_item_adjacent) bad frame transition to “start” from "stopped"
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'start’
stonehearth/services/server/tasks/task_action.lua:189: in function <stonehearth/services/server/tasks/task_action.lua:183>
[C]: ?
[C]: in function ‘start’
…nehearth/services/server/tasks/task_group_action.lua:104: in function <…nehearth/services/server/tasks/task_group_action.lua:100>
[C]: ?
[C]: ?
[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-765 (x64)
…ehearth/ai/actions/find_path_to_reachable_entity.lua:22: assertion failed!
stack traceback:
[C]: in function ‘assert’
…ehearth/ai/actions/find_path_to_reachable_entity.lua:22: in function <…ehearth/ai/actions/find_path_to_reachable_entity.lua:18>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/services/server/tasks/task_action.lua:196: in function <stonehearth/services/server/tasks/task_action.lua:193>

[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-765 (x64)
stonehearth/ai/actions/follow_path_action.lua:27: attempt to index field ‘path’ (a nil value)
stack traceback:
stonehearth/ai/actions/follow_path_action.lua:27: in function <stonehearth/ai/actions/follow_path_action.lua:25>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/services/server/tasks/task_action.lua:196: in function <stonehearth/services/server/tasks/task_action.lua:193>
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (stonehearth:follow_path) bad frame transition to “stop” from "starting_thinking"
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'stop’
stonehearth/services/server/tasks/task_action.lua:205: in function <stonehearth/services/server/tasks/task_action.lua:202>
[C]: ?
[C]: in function ‘run’
…nehearth/services/server/tasks/task_group_action.lua:123: in function <…nehearth/services/server/tasks/task_group_action.lua:114>
[C]: ?
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:189 (4458 Aleff Djanni) (stonehearth:find_path_to_reachable_entity) bad frame transition to “stop” from "starting_thinking"
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'stop’
stonehearth/services/server/tasks/task_action.lua:205: in function <stonehearth/services/server/tasks/task_action.lua:202>
[C]: ?
[C]: in function ‘run’
…nehearth/services/server/tasks/task_group_action.lua:123: in function <…nehearth/services/server/tasks/task_group_action.lua:114>
[C]: ?
[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-765 (x64)
CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:831 start thinking called from non-stopped state "starting_thinking"
stack traceback:
[C]: in function 'fn’
stonehearth/services/server/threads/thread.lua:346: in function 'private_msg’
stonehearth/services/server/threads/thread.lua:543: in function '_dispatch_messages’
stonehearth/services/server/threads/thread.lua:403: in function <stonehearth/services/server/threads/thread.lua:384>
[C]: in function 'suspend’
stonehearth/ai/actions/follow_path_action.lua:141: in function <stonehearth/ai/actions/follow_path_action.lua:45>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[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>

the game crashed and when I got the popup window to close it I got this error too
the game ‘crashed’ but kept running . the window kept poping up each time I tried to close it and had to force close stonehearth

sorry @sdee or anyone else form radiant its a long list… it seems that once of my Hearthlings to bugged and that’s what caused it


release-765 (x64)
Unknown C++ exception
stack traceback:
[C]: in function 'fn’
stonehearth/services/server/threads/thread.lua:346: in function 'private_msg’
stonehearth/services/server/threads/thread.lua:543: in function '_dispatch_messages’
stonehearth/services/server/threads/thread.lua:403: in function <stonehearth/services/server/threads/thread.lua:384>
[C]: in function 'suspend’
stonehearth/ai/actions/follow_path_action.lua:141: in function <stonehearth/ai/actions/follow_path_action.lua:45>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[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>

@Fralee you do you remember what was the hearthling Aleff Djani doing when the 9 errors appeared?
Was he a worker or another class? By the traces he might have been restocking or going to eat, I think.

@max99x do you have any clue about these AI errors?

no I don’t know what he was doing I think I was relpying to a message or email and when I came back to the game that happened

Can you post the stonehearth.log from this session? Most of those errors look like symptoms caused by some other error that may have happened earlier.

I got the save if that helps?

https://drive.google.com/drive/folders/1u6aoxvOb2Ci4SR3_75QDVf-fQlUZbzxm?usp=sharing

it dose not seem to want to load that save file anymore

the log file was overrode from be tring to get the savefile working again

it took me a few times with trying to load the game and then once it got stuck I forceable closed the game and retried to load the game and that seemed to have done it… it took abut 6 times

Thanks for the savefile! It failing to load is an unrelated issue that is fixed and the fix will be out with the next unstable version. The AI error, however, I wasn’t able to reproduce on that file. I’ll take a look at the code surrounding those error messages, but if it happens again, it would be super useful if you could upload stonehearth.log before it’s overwritten. Thanks for helping us debug this!

I wonder if there is a way to make a folder that would save every gameplay log?

but will do for the log file