Literally no idea what I've done now but it doesn't crash anymore, rather spit some other errors