I've been playing around with the turret prototypes, and I've created a turret with more than one inventory slot. I suspect that it crashes when the first inventory slot is empty.
561.788 Error MainLoop.cpp:1173: Exception at tick 770400: The mod GunTurretAlerts caused a non-recoverable error.
Please report this error to the mod author.
Error while running event GunTurretAlerts::on_tick (ID 0)
LuaItemStack API call when LuaItemStack was invalid.
stack traceback:
GunTurretAlerts/control.lua:27: in function <GunTurretAlerts/control.lua:5>
stack traceback:
[C]: in function 'index'
__GunTurretAlerts/control.lua:27: in function <GunTurretAlerts/control.lua:5>