[new builder] Error message after destroying in-progress building

Built a building in Build 823 with a size of 3x3 and probably 100+ blocks high, no roof, just one room stretched upwards. Let it build halfway and then destroyed it causing most Hearthlings to fall down. Got this error message:

release-823 (x64)
std::logic_error: ‘invalid reference in native destination::get_region’
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
[C]: in function ‘get_region’
stonehearth/components/building2/plan/chunk.lua:452: in function ‘_update_adjacent_region’
stonehearth/components/building2/plan/chunk.lua:381: in function ‘set_ready_for_updates’
…ponents/building2/scaffolding/scaffolding_region.lua:99: in function ‘fn’
radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:285: in function ‘trigger’
radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:374: in function ‘_fire_async_triggers’
radiant/modules/events.lua:452: in function ‘_update’
radiant/server.lua:67: in function <radiant/server.lua:64>

2 Likes

I managed to repro several times, I selected all the walls with double click and stretched them upwards like you said, and clicked on destroy when they have already built part of the scaffolding. Sometimes there’s an extra outline in the blueprint at a different height:

3 Likes