[Bug Report][con]Carpenter Freezes After Crafting


#1

Title: Carpenter freezes after crafting an item and not placing it in the outbox

Summary: I was watching my carpenter build a picket fence when he became hungry. Right after he finished the fence and picked it up he became hungry and dropped the fence on the ground within the workbench. After eating he froze and an error was created

Expected Results: Carpenter would take the item to the outbox, drop it off, then go eat.

Mods: Nihonjin (But I haven’t touched any ai so I’m thinking its a priority error)

Attachments: Error Code Pasted Below

lua.code | -- Script Error (lua) Begin ------------------------------- 
lua.code |    stonehearth/services/server/ai/compound_action.lua:212: placeholder ARGS.item.get_component(ARGS.item, mob).get_parent(ARGS.item.get_component(ARGS.item, mob)) failed to return a value in "pickup item on a table" action
        lua.code |    stack traceback:
        lua.code |    	[C]: ?
        lua.code |    	[C]: in function 'error'
        lua.code |    	stonehearth/services/server/ai/compound_action.lua:212: in function '_replace_placeholders'
         lua.code |    	stonehearth/services/server/ai/compound_action.lua:147: in function '_start_thinking'
         lua.code |    	stonehearth/services/server/ai/compound_action.lua:116: in function 'call_action_fn'
        lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:59: in function '_call_start_thinking'
          lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:513: in function '_do_start_thinking'
         lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:310: in function '_start_thinking_from_stopped'
         lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:172: in function '_start_thinking'
         lua.code |    	stonehearth/components/ai/execution_frame.lua:293: in function '_restart_thinking'
         lua.code |    	stonehearth/components/ai/execution_frame.lua:328: in function '_start_thinking_from_stopped'
         lua.code |    	...
          lua.code |    	stonehearth/components/ai/execution_frame.lua:354: in function 'start_thinking'
        lua.code |    	...tonehearth/services/server/tasks/run_task_action.lua:38: in function '_start_stop_thinking'
         lua.code |    	...tonehearth/services/server/tasks/run_task_action.lua:91: in function 'call_action_fn'
         lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:59: in function '_call_start_thinking'
        lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:513: in function '_do_start_thinking'
         lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:317: in function '_start_thinking_from_thinking'
         lua.code |    	stonehearth/components/ai/execution_unit_v2.lua:168: in function '_start_thinking'
         lua.code |    	stonehearth/components/ai/execution_frame.lua:293: in function '_restart_thinking'
        lua.code |    	stonehearth/components/ai/execution_frame.lua:93: in function '_on_position_changed'
        lua.code |    	stonehearth/components/ai/execution_frame.lua:71: in function <stonehearth/components/ai/execution_frame.lua:70>
         lua.code | -- Lua Error End   ------------------------------- 

#2

Hmm I’ve seen this error reported by one other person but they had no idea how to repro it. Your awesome description makes me wonder if it’s happening because the carpenter can’t find the thing on the floor to put in the outbox. Thank you so much; I’ll take a look after I get through the things on today’s queue.


#3

I also believe I saw one of my workers picking up the fence and placing it in the normal stockpile, in-case that is part of the issue.

No problem. :smile: Glad I could help.