This happens to me too. Not every time but more often than not, and I have not systematically investigated the conditions that make it happen. Others on the web have suggested that it only happens when the battery is about 1/3 charged.
The camera app works fine when the flash is turned off. As...