This error message popped up on me when I deleted a plot of famland while a farmer happened to be starting to plow it. I’m not sure if it’s a proper bug, as it doesn’t seem to have affected the gameplay, so maybe it’s just telling me that my farmer can’t do what he was trying to do?
release-465 (x64)
std::logic_error: 'invalid reference in native get_id’
stack traceback:
[C]: in function 'get_id’
radiant/modules/entities.luac:100: in function ‘get_world_grid_location’
…/components/farmer_field/farmer_field_component.luac:82: in function '?'
stonehearth/ai/actions/call_method.luac:3: in function <stonehearth/ai/actions/call_method.luac:3>
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function ‘run’
…
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/components/ai/ai_component.luac:186: 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>
I attempted to recreate it by adding a field and then removing it as soon as the farmer started his work, but the message did not repeat.