It's dependent on a number of factors. So far we have: Map, dismantling ConVec position, glitch won't happen if GP is in the 6th bay (happened to not work in the 5th bay for me once too).
If the weapon is a building, it usually crashes. If the weapon is mining beacon, it spawns mining beacons on the turret if a target is adjacent. Thing is, those beacons disappear and you can't try to use them. The beacons will also be random mining beacons (could be fumaroles and magma vents, but since the GP's there, it might not show up).