I receive a message with the error ‘cannot write to debug.log’ and then the game crashes.