Heat flow, solidification and crack formation