Alpha 15 Workers stop working and cannot do new tasks

Summary: Engine error box pops up and some workers cannot continue with their tasks or be assigned new tasks.

Steps to reproduce: It appears to be when building, as the farmers are fine.

Expected Results: Workers finish their tasks, and then are able to queue new tasks.

Actual Results: Workers just stay on one spot.

Please see bug reports below (there were a lot of errors but it appears that the same error pair (error 2 and 3) occurs for each worker), I hope all are useful:-

Error 1 (could items in their backpacks be causing this error?):

develop-2860 (x64)
No matching overload found, candidates: custom [double] distance_to_squared(Point3 const&,Point3 const&)
stack traceback:
	[C]: in function 'distance_to_squared'
	...ut_another_restockable_item_into_backpack_action.lua:112: in function '_find_path_to_item'
	...ut_another_restockable_item_into_backpack_action.lua:24: in function <...ut_another_restockable_item_into_backpack_action.lua:16>
	[C]: in function 'fn'
	stonehearth/services/server/threads/thread.lua:322: in function 'private_msg'
	stonehearth/services/server/threads/thread.lua:515: in function '_dispatch_messages'
	stonehearth/services/server/threads/thread.lua:379: in function <stonehearth/services/server/threads/thread.lua:360>
	[C]: in function 'suspend'
	stonehearth/ai/actions/run_effect_action.lua:66: in function <stonehearth/ai/actions/run_effect_action.lua:38>
	[C]: ?
	[C]: ?
	...
	[C]: in function 'run'
	stonehearth/components/ai/ai_component.lua:536: in function <stonehearth/components/ai/ai_component.lua:520>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:520: 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>

Error 2 (this appears to be the issue when the workers don’t work anymore):

develop-2860 (x64)
(8587 Willad Coroda) (stonehearth:top) bad frame transition to "stop" from "starting_thinking"
stack traceback:
	[C]: ?
	[C]: in function 'stop'
	stonehearth/components/ai/ai_component.lua:561: in function <stonehearth/components/ai/ai_component.lua:520>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:520: 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>

Error 3 (very similar to the above):

develop-2860 (x64)
invalid initial state "starting_thinking" in run
stack traceback:
	[C]: ?
	[C]: in function 'run'
	stonehearth/components/ai/ai_component.lua:536: in function <stonehearth/components/ai/ai_component.lua:520>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:520: 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>

Error 4 (like the above, more in depth. This error occurred exactly as printed for two workers):

develop-2860 (x64)
(9421 Leah Coroda) (stonehearth:work) bad frame transition to "add_action" from "starting_thinking"
stack traceback:
	radiant/modules/common.lua:223: in function 'report_traceback'
	radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
	[C]: in function 'fn'
	stonehearth/services/server/threads/thread.lua:322: in function 'private_msg'
	stonehearth/services/server/threads/thread.lua:515: in function '_dispatch_messages'
	stonehearth/services/server/threads/thread.lua:379: in function 'suspend'
	stonehearth/services/server/threads/thread.lua:421: in function 'sleep_realtime'
	stonehearth/components/ai/ai_component.lua:551: in function <stonehearth/components/ai/ai_component.lua:520>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:243: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:520: 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>

Version Number and Mods in use: develop-2860 (x64) - Alpha 15 unstable, no mods

System Information: AMD FX 6350 CPU, 8GB RAM, 512GB SSD, AMD 380 4GB GFX Card

Many thanks getting this far!

kickback

Hey there @kickback, welcome to the Discourse! Thanks for the detailed report.

1 Like

Hi there,
I’m putting in a fix for this for next unstable release. When a new release happens, please let me know if this continues to happen.
Thanks
-Yang

2 Likes

Thanks so much for the quick response and all your hard work on the game, it’s a joy to play.

1 Like