I noticed that the shotgun was having trouble building curved rails, it seemed to delete the single tile of track between two curved rails in a circle, but I couldn't reproduce it very well.
So I copied a 90 degree corner and pasted it a few times in a row. While building those ghosts, I got the following crash:
Error while running event blueprint-shotgun::on_tick (ID 0)
__blueprint-shotgun__/scripts/build/entity-ghosts.lua:76: attempt to index local 'entity' (a nil value)
stack traceback:
__blueprint-shotgun__/scripts/build/entity-ghosts.lua:76: in function '?'
__blueprint-shotgun__/scripts/flying-items.lua:23: in function 'on_tick'
__blueprint-shotgun__/control.lua:171: in function <__blueprint-shotgun__/control.lua:169>
There was a single tree marked for deconstruction in the way of one of the curved rails, but other than that nothing obvious that would be causing an issue. The only ghosts are the curved rails and straight rails between.