I recently mentioned a bug in the Photos app in iOS 5. What was happening to me was this:
- Open Camera app.
- Take photos.
- Look at Camera Roll from Camera app and verify that photos are there.
- Quit Camera app.
- Open Photos app.
- Navigate to Camera Roll.
- Photos app crashes.
- Open it again, and navigate to Camera Roll again.
- Camera Roll appears empty.
- Look again from Camera app, and the Camera Roll shows the recent photos.
Clearly, the photos are in my Camera Roll, but they're just not appearing when viewed from the Photos app. So WTF?
After a good deal of research I was able to track the problem down to what would seem to be a corrupt database. The solution is kind of a pain, but it works and seem to keep the problem from happening ever again. So here it is, the fix:
- Plug in and back up your iPhone, for good measure.
- Download and install either iExplorer (formerly iPhone Explorer) or any app that lets you view the file system of your iPhone.
- With iPhone still connected, launch iExplorer.
- In iExplorer navigate to the Your_iPhone->Media->PhotoData folder.
- If you're at all concerned or paranoid (like I am) back this entire folder up to your computer by simply dragging it from iExplorer to your Desktop.
- Delete the following three files:
When the iPhone returns to service the Photos app should show your Camera Roll repopulated with your recent photos. If you don't have any other albums, you're done. Otherwise, any other albums you had — particularly ones that you'd been syncing from iPhoto — will need to be resynced. Simply open up iTunes and perform a sync operation.
That's it! You're done. From here on out your iPhone should behave properly when taking new photos; the Camera Roll should always display recent photos from inside the Photos app.