I tried deleting/re-installing iTunes 12.2, but found no relief from the problems. I have about 80,000 files in my iTunes library and am getting pretty much all of the freezes in the application that others have mentioned.
It's pretty obvious that this is an Apple quality problem. I mean, iTunes 12.0 gave me nightmare syncing problems, freezing iTunes for 30-45 minutes whenever I tried to sync my iPod Classic--a doubly painful problem when watching Apple TV since the freeze also meant the Apple TV device couldn't access the iTunes content on my computer until iTunes stopped freezing. iTunes 12.1 fixed that.
But iTunes 12.2 suddenly means long freezes for routine editing of playlists? Obviously, this is an application defect/bug. If iTunes 12.1 had few freezes and delays, it isn't a large library that "suddenly" breaks iTunes repeatedly. Instead, this is probably a design problem or a true bug. I've encountered other issues with iTunes 12.2 that are clearly bugs: my favorite is when I use the "Edit Playlist" function and find that when I attempt to drag and drop content to the end of the target playlist, the interface jumps to the top of the target playlist, blocking me from adding the content.
But back to the freezing problem. iTunes freezes when I:
- Switch views between the Music, TV, Movies, and Podcasts views. This is typically a 10-second freeze for me and occurs with every attempt.
- iTunes intermittently freezes when I attempt to start or pause a song play, typically 10-15 seconds.
- iTunes freezes when mounting a device via USB. The iPhone 5s freezes iTunes for about 60 seconds, the iPod Classic freezes iTunes for 45-60 seconds. I have not had the patience to test the iPad 2 for this behavior.
- iTunes freezes when loading a CD, typically about 60 seconds.
- iTunes freezes intermittently for about 20 seconds when a song ends. The freeze usually begins 2-5 seconds before the song actually finishes and unfreezes about 14-15 seconds into the new track. While this doesn't happen every time, I'd guess the freeze occurs in about 98/100 cases.
- iTunes freezes for about 10-20 seconds whenever I drag content from one playlist on to another playlist, Skipping the buggy "Edit Playlist" steps punishes me with this freeze.
- iTunes freezes for 15-30 seconds when I delete content in a playlist (I use the "Songs" view exclusively).
I've tried turning off all Apple Music functions, going so far as to take the MacBook completely offline (WiFi off, ethernet disconnected), hoping that the delays were related to excessive calls to the iTunes store to build recommendation engine information. That seemed to slightly reduce the delays when deleting songs in playlists, but had no other benefit.
While there are many factors that could lead to these problems, the fact that iTunes 12.1's only freeze issue was the view change (Music, Movies, TV, Podcasts) leads me to conclude that this is most likely a design defect. My first guess would be that the write process to the iTunes library file was changed or that some supporting process was modified, creating the delays/freezes. My own ITL file is just under 35 MB, and if the write process, say, is forced to re-write the entire file each time I delete a song from a playlist, that could explain the delays, but there are other possibilities. It's interesting that the iTunes popup alert for adding duplicate songs to a playlist does not cause delays, nor does the popup alert for deleting content from the library. In both cases, the freeze only begins after I confirm the popup choice.
As others have mentioned, using the Activity Monitor reveals interesting behavior. My dual core MacBook shows that when there is activity in iTunes, the kernel_task activity owned by root is running around 120%-140% of CPU capacity despite the fact that I have no other applications open. Memory usage seems unaffected, but perhaps the defective iTunes processes are related to the kernel_task behaving in such a strange fashion? If iTunes is left inactive for a long time, the kernel_task eventually stops hogging CPU cycles, but this takes a long time (as much as an hour of iTunes inactivity).
Given that I'm also seeing design defects and bugs in Safari, Mail, and Finder, it's likely this is all about Apple's focus on quality (or lack). I find it amazing that it appears they haven't made it a practice to test iTunes on extremely large libraries and with devices like iPod Classics. It's clear their design focus is on pushing users to a streaming solution, but I live and recreate in a US state that has large areas without cellular coverage, so it's an impractical solution. Besides, beyond the problem of Apple Music lacking all the content I desire, I expect the streaming music industry to increasingly adopt the practices of the streaming video providers who sign exclusivity deals with content owners, forcing you to purchase multiple subscriptions to see the content you want. $10 USD isn't bad for a big streaming service, until exclusivity deals force you to pay 3 or 4 different providers so you can hear what you want. But as long as Apple focuses on streaming, it may be time for music fanatics to consider abandoning the Apple ecosystem.