Saturday, April 05, 2014

iOS 7.1 movies (video) sync from iCloud but not iTunes - a bug and a fix

The afternoon that we were leaving for holiday I discovered that I couldn’t use iTunes to sync a movie (or a video Podcast) to my daughter’s iPhone 4S. [1] Sync was normal for all other devices but on her iPhone we got stuck at the agonizing “Waiting for changes to be applied” prompt [3]. If I waited 15 minutes or so the sync “completed” without an error message, but no movies were transferred. When I inspected the iPhone contents from iTunes I saw ghostly outlines of the movies I was trying to transfer.

I could download our movies from iCloud directly to the phone, but that’s fairly slow. iTunes sync is faster. Our flight was delayed long enough for me to try many  things including

  • sync of non-DRMd home video (didn’t work)
  • turn off all sync for movies then sync then remove media then try one movie
  • Parental Controls toggle including age range check
  • restarts of iOS and OS X
  • PhoneView inspection of the file system (iOS CloudAssets directory was empty post iOS 7.1 fix for the Other Data cache bug.)
  • Sign out and sign in to App Store from iOS and OS X iTunes.
  • Looked for anything in Console.app related to iTunes (nothing)
  • Backing up, wiping (“restore” to default) iPhone, then restoring it 
I gave up and made do with iCloud download, but @gaelicwizard suggested
Could try initiating a sync with a different computer and letting it overwrite the link with this one. Then, back again. That would clear any caches...

That worked. The key here is that when you sync an iOS device to a different iTunes instance you lose all of your media, but you don’t lose anything else. You don’t lose Apps or App data or iCloud data, etc [2]. If you’re old enough to remember the iPod you can see that when the iTunes is treating the iPhone as though it were an iPod. I did this:

  1. Backup iPhone on Primary iTunes. (iTunesP)
  2. Switched to the admin account on my Mac and launched iTunes there (iTunesA). 
  3. Selected a single short movie to sync (and nothing else). iTunes warned me all media (but only media) would be wiped from my iPhone. (Note difference from the usual “restore” and “restore from backup” behavior.)
  4. The movie synched normally.
  5. Switched back to iTunesP. Did same thing, again iTunes warned me all media would be removed. The moved synched normally.
  6. Turned on sync for Music, TV, Photo, etc. iTunes remembered all of the prior settings so this went quickly.
I suspect this is a new 7.1 bug possibly related to the fix for the Other Data cache bug. Apple clearly wants to end media synchronization from the desktop, so we can expect more bugs like this in the future. 
 
Three thoughts on items that might be related to this bug…
  • We downloaded the (great) movie Frozen from iCloud to our Apple TV very early in its release cycle. There was odd behavior when I later downloaded a copy to iTunes; the new download had a slightly different file size and iTunes seemed to think they were different movies. I can’t remember how I fixed that … (probably deleted and redownloaded)
  • Since wiping the phone and restoring from backup didn’t fix the problem, it’s likely related to something that’s backed up.
  • Even after I synchronized the iPhone with my admin account iTunes instance, I still saw the ghostly outlines of the movies I’d been unable to sync previously. 

 - fn - 

[1] This was a week ago, and I can’t recall if TV shows were behaving normally. I think they were, which is extra weird so maybe I’m remembering incorrectly.

[2] Pre-iCloud days I used to sync Calendar/Contacts for my wife on one iTunes account, and media on a different iTunes account.  In the iPod era Apple was worried about using iPods to share media between iTunes instances — something that seems quaint now. Today’s DRM infrastructure is much more robust.

[3] A common indicator of a sync problem. It’s so annoying that error details don’t appear in Console logs.

No comments:

Post a Comment