Every time I close iTunes 12.2.1 or randomly during usage, I see the beach ball of death and iTunes goes unresponsive and uses 99.5% of the processor.
The only way to get out of this is to force quit iTunes and send report to Apple. I alway get a very long error message, part of which I post below.
MacBook Air, OS X 10.10.4
Date/Time: 2015-07-25 21:43:10 +0200
OS Version: 10.10.4 (Build 14E46)
Architecture: x86_64
Report Version: 21
Command: iTunes
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Version: 12.2.1 (12.2.1.16)
Build Version: 2
Project Name: iTunes
Source Version: 1200012002001016
Parent: launchd [1]
PID: 7712
Event: hang
Duration: 11.60s (process was unresponsive for 24 seconds before sampling)
Steps: 117 (100ms sampling interval)
Hardware model: MacBookAir5,2
Active cpus: 4
Fan speed: 1998 rpm
--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------
Heaviest stack for the main thread of the target process:
117 ??? (iTunes + 9028) [0x10af97344]
117 ??? (iTunes + 8615238) [0x10b7cc546]
117 -[NSApplication run] + 594 (AppKit + 551667) [0x7fff8a22baf3]
117 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 (AppKit + 593496) [0x7fff8a235e58]
117 _DPSNextEvent + 1828 (AppKit + 596989) [0x7fff8a236bfd]
117 _NSHandleCarbonMenuEvent + 277 (AppKit + 1420512) [0x7fff8a2ffce0]
117 _HandleMenuSelection2 + 446 (HIToolbox + 614654) [0x7fff923510fe]
117 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 702 (HIToolbox + 615553) [0x7fff92351481]
117 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96 (HIToolbox + 612873) [0x7fff92350a09]
117 SendMenuItemSelectedEvent + 188 (HIToolbox + 613168) [0x7fff92350b30]
117 SendMenuCommandWithContextAndModifiers + 59 (HIToolbox + 613261) [0x7fff92350b8d]
117 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 428 (HIToolbox + 360261) [0x7fff92312f45]
117 SendEventToEventTarget + 40 (HIToolbox + 122038) [0x7fff922d8cb6]
117 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386 (HIToolbox + 32686) [0x7fff922c2fae]
117 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1260 (HIToolbox + 35692) [0x7fff922c3b6c]
117 NSSLMMenuEventHandler + 724 (AppKit + 2346347) [0x7fff8a3e1d6b]
117 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107 (AppKit + 3258546) [0x7fff8a4c08b2]
117 -[NSMenu _internalPerformActionForItemAtIndex:] + 35 (AppKit + 3258982) [0x7fff8a4c0a66]
117 -[NSMenu performActionForItemAtIndex:] + 131 (AppKit + 3259136) [0x7fff8a4c0b00]
117 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff95873cd7]
117 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 (AppKit + 2443644) [0x7fff8a3f997c]
117 -[NSMenuItem _corePerformAction] + 382 (AppKit + 2444366) [0x7fff8a3f9c4e]
117 -[NSApplication sendAction:to:from:] + 452 (AppKit + 2444977) [0x7fff8a3f9eb1]
117 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff95873cd7]
117 ??? (iTunes + 6048936) [0x10b559ca8]
117 ??? (iTunes + 9738822) [0x10b8dea46]
117 ??? (iTunes + 9772067) [0x10b8e6c23]
117 ??? (iTunes + 12566540) [0x10bb9100c]
117 ??? (iTunes + 12569161) [0x10bb91a49]
117 ??? (iTunes + 9373053) [0x10b88557d]
117 ??? (iTunes + 2746601) [0x10b2338e9]
117 -[NSApplication runModalForWindow:] + 119 (AppKit + 2461302) [0x7fff8a3fde76]
117 -[NSApplication _realDoModalLoop:peek:] + 666 (AppKit + 2476167) [0x7fff8a401887]
117 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 (AppKit + 593496) [0x7fff8a235e58]
117 _DPSNextEvent + 978 (AppKit + 596139) [0x7fff8a2368ab]
117 _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 205099) [0x7fff922ed12b]
117 ReceiveNextEventCommon + 431 (HIToolbox + 205546) [0x7fff922ed2ea]
117 RunCurrentEventLoopInMode + 235 (HIToolbox + 206191) [0x7fff922ed56f]
117 CFRunLoopRunSpecific + 296 (CoreFoundation + 465880) [0x7fff8f65fbd8]
117 __CFRunLoopRun + 927 (CoreFoundation + 467391) [0x7fff8f6601bf]
117 __CFRunLoopDoSources0 + 269 (CoreFoundation + 469901) [0x7fff8f660b8d]
117 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 (CoreFoundation + 526849) [0x7fff8f66ea01]
117 ??? (iTunes + 9347552) [0x10b87f1e0]
117 ??? (iTunes + 9347354) [0x10b87f11a]
117 ??? (iTunes + 9344338) [0x10b87e552]
117 ??? (iTunes + 8465590) [0x10b7a7cb6]
117 ??? (iTunes + 6797705) [0x10b610989]
116 ??? (iTunes + 6796658) [0x10b610572]
116 ??? (iTunes + 6800151) [0x10b611317]
116 mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff930c44de]
*116 ipc_mqueue_receive_continue + 0 (kernel + 1148928) [0xffffff8000318800]