Hi!
Using the Thermal Solar Power (Lite) mod, I get the following crash upon trying to remove one of its heat pipes or solars:
Error while running event RealisticReactors::on_pre_player_mined_item (ID 11)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__RealisticReactors/scripts/heat/math.lua:47: in function 'calculate_score'
RealisticReactors/scripts/heat/math.lua:59: in function <RealisticReactors/scripts/heat/math.lua:52>
(...tail calls...)
RealisticReactors/scripts/heat/math.lua:271: in function 'callback'
RealisticReactors/scripts/heat/math.lua:211: in function 'neighbour_cells'
RealisticReactors/scripts/heat/math.lua:265: in function 'inside_linked_entities'
RealisticReactors/scripts/heat/math.lua:315: in function 'get_linked_entities'
RealisticReactors/scripts/heat/network.lua:307: in function 'split_heat_network_cell'
RealisticReactors/scripts/heat/network.lua:526: in function 'remove_entity_from_network_cell'
RealisticReactors/scripts/heat/network.lua:607: in function 'remove_reactor'
RealisticReactors/scripts/events/destruct.lua:116: in function 'entity'
RealisticReactors/control.lua:61: in function <RealisticReactors/control.lua:59>
It doesn't happen consistently in all situations, but some configurations of solars and heat pipes can crash the game always. I have a cluster of solars and pipes which are literally impossible to remove.
I hope this is of use to you!