Error message when removing unbuilt building

Summary: Place the template, click “remove” and an error message pops up. Edit: Placing the template results in misplaced walls. Looks like the recent bug already mentioned.

Steps to reproduce:

  1. Place
  2. Remove
  3. Error

Expected Results: No error.

Actual Results: Argh.

Notes:
develop-2881 (x64)std::logic_error: 'invalid reference in native get_id’stack traceback:
radiant/modules/common.lua:223: in function ‘report_traceback’
radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
[C]: in function ‘get_id’
radiant/modules/entities.lua:287: in function ‘get_world_grid_location’
stonehearth/lib/build_util.lua:917: in function ‘grow_local_box_to_roof’
stonehearth/components/wall/wall_component.lua:484: in function ‘_compute_wall_shape’
stonehearth/components/wall/wall_component.lua:283: in function ‘layout’
…onehearth/components/building/building_component.lua:382: in function ‘layout_roof’
…onehearth/components/building/building_component.lua:247: in function ‘_remove_structure’
…onehearth/components/building/building_component.lua:316: in function ‘obj’
radiant/modules/events.lua:73: in function ‘instance’

radiant/modules/entities.lua:82: in function ‘destroy_entity’
…ruction_progress/construction_progress_component.lua:58: in function ‘set_finished’
…earth/components/fabricator/fabricator_component.lua:1160: in function ‘_update_fabricator_region’
…earth/components/fabricator/fabricator_component.lua:176: in function ‘set_teardown’
…ruction_progress/construction_progress_component.lua:97: in function ‘set_teardown’
stonehearth/services/server/build/build_service.lua:113: in function ‘cb’
stonehearth/services/server/build/build_service.lua:82: in function ‘_call_all_children’
stonehearth/services/server/build/build_service.lua:78: in function ‘_call_all_children’
stonehearth/services/server/build/build_service.lua:110: in function ‘set_teardown’
stonehearth/call_handlers/build_call_handler.lua:25: in function <stonehearth/call_handlers/build_call_handler.lua:23>

Attachments: The template: gatehouse.zip (280.0 KB)

Version Number and Mods in use: 2881

System Information: Core i5 3470, GTX 970, 8 GB RAM, Win 7 64 Bit

Can I see the pictures

I have none. But feel free to download the template and experience the bug firsthand, provided you’re running build 2881.

This builds and can be removed without error in a15r537. Did take some extra ladders for removal though…

1 Like