We call those "heisenbugs" - one of the most terrifying and maddening things you can encounter prior to a launch. I'm almost positive that I remember reading a sort from a game dev who ran into one of these right before a release, where printing some variable caused it to have the correct value; in this case, it was left in the game.