Error after canceling and removing structure

As soon as the structure is fully removed after “Remove” command this error appears.

develop-2617 (x64)
stonehearth/components/ai/execution_frame.luac:688: :aborted_frame:radiant_policy_rethrow
stack traceback:
[C]: ?
[C]: in function 'error’
stonehearth/components/ai/execution_frame.luac:688: in function '_exit_protected_call’
stonehearth/components/ai/execution_frame.luac:489: in function 'abort’
stonehearth/components/ai/execution_unit_v2.luac:223: in function 'fn’
stonehearth/services/server/threads/thread.luac:98: in function 'interrupt’
stonehearth/services/server/threads/thread.luac:95: in function 'unsafe_interrupt’
stonehearth/components/ai/execution_unit_v2.luac:223: in function '_destroyed_cb’
stonehearth/components/ai/object_monitor.luac:29: in function '_on_destroyed’
stonehearth/components/ai/object_monitor.luac:15: in function <stonehearth/components/ai/object_monitor.luac:15>
[C]: in function ‘destroy_entity’

…arth/components/fabricator/fabricator_component.luac:91: in function 'method’
radiant/modules/events.luac:13: in function 'self’
radiant/modules/events.luac:54: in function <radiant/modules/events.luac:52>
[C]: in function 'xpcall’
radiant/modules/events.luac:52: in function <radiant/modules/events.luac:45>
[C]: in function 'destroy_entity’
radiant/modules/entities.luac:33: in function ‘destroy_entity’
…uction_progress/construction_progress_component.luac:28: in function ‘set_finished’
…arth/components/fabricator/fabricator_component.luac:338: in function ‘_update_fabricator_region’
…arth/components/fabricator/fabricator_component.luac:364: in function <…arth/components/fabricator/fabricator_component.luac:364>

evelop-2630 (x64)
radiant/modules/entities.luac:32: attempt to call method ‘is_valid’ (a nil value)
stack traceback:
[C]: in function 'is_valid’
radiant/modules/entities.luac:32: in function 'destroy_entity’
stonehearth/call_handlers/entities_call_handler.luac:5: in function <stonehearth/call_handlers/entities_call_handler.luac:5>

develop-2630 (x64)
c++ exception: lua runtime error
stack traceback:

On removing a large stockpile that had been my major storage point for most of the game.

Searching the forum saw other “attempt to call” bugs but not this particular variant so it seemed like it should be a separate thread, please merge if I’m incorrect.

no worries … sounds somewhat similar to this report, so its been merged… thanks! :+1:

I’ve got a similar sounding error message when removing a partially build building that refused to be finished. After closing the message it got removed alright.

develop-2630 (x64)
stonehearth/components/ai/execution_frame.luac:686: :aborted_frame:radiant_policy_rethrow
stack traceback:
[C]: ?
[C]: in function ‘error’
stonehearth/components/ai/execution_frame.luac:686: in function ‘_exit_protected_call’
stonehearth/components/ai/execution_frame.luac:487: in function ‘abort’
stonehearth/components/ai/execution_unit_v2.luac:223: in function ‘fn’
stonehearth/services/server/threads/thread.luac:98: in function ‘interrupt’
stonehearth/services/server/threads/thread.luac:95: in function ‘unsafe_interrupt’
stonehearth/components/ai/execution_unit_v2.luac:223: in function ‘_destroyed_cb’
stonehearth/components/ai/object_monitor.luac:29: in function ‘_on_destroyed’
stonehearth/components/ai/object_monitor.luac:15: in function <stonehearth/components/ai/object_monitor.luac:15>
[C]: in function ‘destroy_entity’

…arth/components/fabricator/fabricator_component.luac:91: in function ‘method’
radiant/modules/events.luac:13: in function ‘instance’
radiant/modules/events.luac:59: in function <radiant/modules/events.luac:57>
[C]: in function ‘xpcall’
radiant/modules/events.luac:57: in function <radiant/modules/events.luac:50>
[C]: in function ‘destroy_entity’
radiant/modules/entities.luac:33: in function ‘destroy_entity’
…uction_progress/construction_progress_component.luac:28: in function ‘set_finished’
…arth/components/fabricator/fabricator_component.luac:338: in function ‘_update_fabricator_region’
…arth/components/fabricator/fabricator_component.luac:364: in function <…arth/components/fabricator/fabricator_component.luac:364>