Engine error when removing scaffolding from custom building

Summary:
Finished constructing custom building (freestanding walls + floors + slabs). Continued to removing scaffolding, then threw this error in the middle fo the process.

I understand it’s somehow connected to the AI. I had several other tasks, like gathering resources, in addition to building. A hearthling that is referenced in the traceback (Abhi Kenaii) had a status “removing ladder” when the error popped. As far as I can see, she stopped working for a while and was hanging at the top of the ladder mid-scaffolding. Scaffolding is duplicated on the side she was working. After a while she continued removing scaffolding in another place (no work was being performed around her).

This error causes partially stuck scaffolding after building completion.

Actual Results:
release-566 (x64)[M]std::logic_error: 'invalid reference in native destination::get_reserved’stack traceback:
[C]: in function ‘get_reserved’
…th/ai/actions/teardown_structure_adjacent_action.lua:153: in function <…th/ai/actions/teardown_structure_adjacent_action.lua:149>
[C]: ?
[C]: ?
[C]: ?
[C]: in function ‘run’
…tonehearth/services/server/tasks/run_task_action.lua:143: in function <…tonehearth/services/server/tasks/run_task_action.lua:141>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/components/ai/ai_component.lua:541: in function <stonehearth/components/ai/ai_component.lua:525>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/components/ai/ai_component.lua:525: 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:257: 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>

release-566 (x64)[M](4936 Abhi Kenaii) (stonehearth:teardown_structure_adjacent) bad frame transition to “stop” from "stopping"stack traceback:
[C]: ?
[C]: ?
[C]: in function ‘stop’
…tonehearth/services/server/tasks/run_task_action.lua:149: in function <…tonehearth/services/server/tasks/run_task_action.lua:147>
[C]: ?
[C]: ?
[C]: in function 'stop’
stonehearth/components/ai/ai_component.lua:581: in function <stonehearth/components/ai/ai_component.lua:525>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/components/ai/ai_component.lua:525: 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:257: 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>

release-566 (x64)[M]start thinking called from non-stopped state "stopping"stack traceback:
[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/follow_path_action.lua:133: in function <stonehearth/ai/actions/follow_path_action.lua:41>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?

[C]: in function 'run’
stonehearth/components/ai/ai_component.lua:541: in function <stonehearth/components/ai/ai_component.lua:525>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/components/ai/ai_component.lua:525: 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:257: 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>

release-566 (x64)[M]@stonehearth/components/ai/ai_component.lua:567: (4936 Abhi Kenaii) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: Not adjacent to ladderstack traceback:
radiant/modules/common.lua:237: in function 'report_traceback’
radiant/modules/common.lua:456: in function 'verify’
stonehearth/components/ai/ai_component.lua:567: in function <stonehearth/components/ai/ai_component.lua:525>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
stonehearth/components/ai/ai_component.lua:525: 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:257: 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>

Attachments:

Version Number and Mods in use:
pre-Alpha17 release 566

1 Like