Once again a combination of high resistance and over loading the circuit beyond the safe range.
This boat was using AC and a water heater on the same 30A shore power circuit.. With AC and a water heater you need TWO 30A shore feeds not one.... FAIL.....