Exception after destroying a ladder

Summary: Exception after destroying a ladder

After I destroyed a building which couldn’t be finished (certainly due to a bug) I had the exception quoted in the “Steps to reproduce”.

Steps to reproduce:

  1. Make a building construction not achieving
  2. Sometimes a ladder will stay
  3. Create a ladder under it to make your hearthling destroying it
  4. The exception will spawn

release-687 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:785: attempt to index field ‘_owning_scaffolding’ (a nil value)
stack traceback:
radiant/modules/common.lua:237: in function ‘report_traceback’
radiant/modules/common.lua:248: in function <radiant/modules/common.lua:242>
…hearth/components/scaffolding/scaffolding_region.lua:785: in function ‘instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/common.lua:257: in function ‘xpcall’
radiant/modules/events.lua:285: in function <radiant/modules/events.lua:251>
[C]: in function ‘destroy_entity’
radiant/modules/entities.lua:82: in function ‘destroy_entity’
stonehearth/services/server/build/ladder_builder.lua:143: in function <stonehearth/services/server/build/ladder_builder.lua:124>
[C]: in function ‘destroy’
stonehearth/services/server/build/ladder_manager.lua:71: in function ‘_destroy_builder’
stonehearth/services/server/build/ladder_builder.lua:456: in function ‘_check_if_valid’
stonehearth/services/server/build/ladder_builder.lua:326: in function ‘_update_build_mode’
stonehearth/services/server/build/ladder_builder.lua:115: in function <stonehearth/services/server/build/ladder_builder.lua:114>

Expected Results: Not have the exception

Notes: The exception isn’t a show-stopper :slight_smile:

Attachments:

Version Number and Mods in use: release-687 (x64) with the new tribe: Rayya’sChildren

System Information:

Operating System: Windows 10 Professionnel 64-bit (10.0, Build 14393) (14393.rs1_release_inmarket.161208-2252)
Language: French (Regional Setting: French)
System Manufacturer: ASUS
System Model: All Series
BIOS: BIOS Date: 06/03/15 09:34:27 Ver: 23.04
Processor: Intel(R) Core™ i7-4790K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
Memory: 12288MB RAM
DirectX Version: DirectX 12
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.14393.0000 64bit Unicode
Card name: NVIDIA GeForce GTX 970
Driver: 372.70 (certified WHQL)

A post was merged into an existing topic: Engine error about scaffolding A19