 This occurs because most liquid materials can hold a large amount of dissolved gas, but the solid form of the same material cannot, so the gas forms bubbles within the material as it cools.Gas porosity may present itself on the surface of the casting as porosity or the pore may be trapped inside the metal, which reduces strength in that vicinity.Nitrogen, oxygen and hydrogen are the most encountered gases in cases of gas porosity.