Updated to Capitan, iTunes quits on start
As the headline says; after updating to Capitan, iTunes quits on start. In more detail, the iTunes window opens normally, and immediately the "The last time you opened iTunes it unexpectedly quit" window with the do / don't reopen buttons pop up. Then the iTunes quick tour window opens beneath it. All options are greyed out. No matter whether I choose to reopen or nor, iTunes quits and I get the "iTunes quit unexpectedly" window.
As far as I can tell, all my music files are where they're supposed to be. I've reinstalled iTunes (downloaded from Apple), logged out, logged in, and rebooted my mac. Tried starting iTunes with the option key down. Choosing the old itl library causes iTunes to quit. Choosing "create new" gives me an empty (new) iTunes folder and then iTunes quits again.
I have the following files in my iTunes folder (plus lots of music files):
iTunes Library Extras.itdb
iTunes Library Genius.itdb
iTunes Library.itl
iTunes Library.xml
iTunes Music Library.xml
I used Time Machine to restore iTune Library.itl to a pre-Capitan version. It didn't seem to make a difference.
I found this in the crash log:
Crashed Thread: 0 iTunes main Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
Crashing on exception: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
Also:
Thread 0 Crashed:: iTunes main Dispatch queue: com.apple.main-thread
0 com.apple.AppKit 0x00007fff93feda46 -[NSApplication _crashOnException:] + 109
1 com.apple.AppKit 0x00007fff93fed9a0 -[NSApplication reportException:] + 140
My system:
iMac 12.2 (2011)
Intel Core i7
3,4 GHz
1 processor, 4 cores
Memory 16 GB
iTunes 12,3
OS X El Capitan 10.11