Cracking of strain-softening materials