Micro- and macrocrack formation