Sudden engine error xpcall

Before crashing i deleted a stockpile and changed game speed to double. Not know what leads to this. Error seems to be not reproduceable. No one of my hearthlings died btw.
I am sorry to not can provide any further information to this error.
Error 1 of 7

develop-2611 (x64)radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
radiant/modules/entities.luac:360: in function 'trace_location'
...arth/ai/actions/pickup_item_from_storage_action.luac:14: in function 'start'
stonehearth/services/server/ai/compound_action.luac:123: in function 'call_fn'
stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_start'
stonehearth/components/ai/execution_unit_v2.luac:226: in function '_do_start'
stonehearth/components/ai/execution_unit_v2.luac:196: in function '_start_from_ready'
stonehearth/components/ai/execution_unit_v2.luac:132: in function '_start'
stonehearth/components/ai/execution_frame.luac:451: in function '_start_from_ready'
stonehearth/components/ai/execution_frame.luac:124: in function '_start'
stonehearth/components/ai/execution_frame.luac:348: in function <stonehearth/components/ai/execution_frame.luac:348>
...
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Error 2 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
	stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
	[C]: in function 'error'
	stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
	stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
	stonehearth/components/ai/execution_frame.luac:348: in function 'start'
	stonehearth/services/server/ai/compound_action.luac:125: in function 'call_fn'
	stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_start'
	stonehearth/components/ai/execution_unit_v2.luac:226: in function '_do_start'
	stonehearth/components/ai/execution_unit_v2.luac:196: in function '_start_from_ready'
	stonehearth/components/ai/execution_unit_v2.luac:132: in function '_start'
	stonehearth/components/ai/execution_frame.luac:451: in function '_start_from_ready'
	...
	stonehearth/components/ai/execution_frame.luac:129: in function '_run'
	stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
	[C]: in function 'xpcall'
	stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
	stonehearth/components/ai/execution_frame.luac:362: in function 'run'
	stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
	stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
	[C]: in function 'xpcall'
	stonehearth/services/server/threads/thread.luac:89: in function 'f'
	radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Error 3 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
[C]: in function 'error'
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:348: in function 'start'
...onehearth/services/server/tasks/run_task_action.luac:56: in function 'call_fn'
stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_start'
stonehearth/components/ai/execution_unit_v2.luac:226: in function '_do_start'
stonehearth/components/ai/execution_unit_v2.luac:196: in function '_start_from_ready'
stonehearth/components/ai/execution_unit_v2.luac:132: in function '_start'
stonehearth/components/ai/execution_frame.luac:508: in function '_unwind_call_stack'
...
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Errror 4 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
[C]: in function 'error'
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/services/server/ai/compound_action.luac:133: in function 'call_fn'
stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_run'
stonehearth/components/ai/execution_unit_v2.luac:198: in function '_run_from_started'
stonehearth/components/ai/execution_unit_v2.luac:141: in function '_run'
stonehearth/components/ai/execution_frame.luac:456: in function <stonehearth/components/ai/execution_frame.luac:456>
[C]: in function 'xpcall'
...
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Error 5 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
[C]: in function 'error'
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:456: in function '_run_from_started'
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/services/server/ai/compound_action.luac:133: in function 'call_fn'
...
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Error 6 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
[C]: in function 'error'
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/services/server/ai/compound_action.luac:133: in function 'call_fn'
stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_run'
stonehearth/components/ai/execution_unit_v2.luac:198: in function '_run_from_started'
stonehearth/components/ai/execution_unit_v2.luac:141: in function '_run'
stonehearth/components/ai/execution_frame.luac:456: in function <stonehearth/components/ai/execution_frame.luac:456>
[C]: in function 'xpcall'
...
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Error 7 of 7

develop-2611 (x64)stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: stonehearth/components/ai/execution_frame.luac:688: radiant/modules/entities.luac:360: attempt to index a nil valuestack traceback:
stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
[C]: in function 'error'
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call'
stonehearth/components/ai/execution_frame.luac:683: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:456: in function '_run_from_started'
stonehearth/components/ai/execution_frame.luac:129: in function '_run'
stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
[C]: in function 'xpcall'
stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call'
stonehearth/components/ai/execution_frame.luac:362: in function 'run'
stonehearth/components/ai/ai_component.luac:178: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

develop-2630 (x64)stonehearth/jobs/crafting_job.luac:41: i18n(stonehearth:jobs.blacksmith.blacksmith_description.display_name) has no exp reward tuned for level 6 recipesstack traceback:
radiant/modules/events.luac:48: in function <radiant/modules/events.luac:45>
[C]: in function 'assert’
stonehearth/jobs/crafting_job.luac:41: in function 'fn’
radiant/modules/events.luac:58: in function <radiant/modules/events.luac:57>
[C]: in function 'xpcall’
radiant/modules/events.luac:57: in function 'trigger’
radiant/modules/events.luac:73: in function '_fire_async_triggers’
radiant/modules/events.luac:87: in function '_update’
radiant/server.luac:19: in function <radiant/server.luac:17>

Thanks! The error from the first post should be fixed for the next build. The crafting error in the second post should already be fixed, but only for newly created games.

1 Like

Paging @8BitCrab, @SteveAdamo, or @Relyss, this has been acknowledged and a fix will be in the next build, does this get a “RES” or a “ACK”?

1 Like

the usual process is [ACK] until the fix is live, and then moved to resolved… :+1:

2 Likes