Bad string formatting causing crash before the crash