iTunes Freezes when connecting iPhone (AppleMobileDeviceHelper/SyncServer to blame?)
I'm having several issues with iTunes and connecting my phone. iTunes becomes unresponive for about 30 mins when either connecting my iPhone (via cable or seeing it over WiFi when WiFi-sync is enabled), pressing sync, or sometimes other tasks which relate to the device. While frozen, iTunes continues playing the current track until the end, then it won't start the next one until it becomes responsive again.
I think I've tracked down the error; I noticed that iTunes has a child process called "AppleMobileDeviceHelper", terminating this causes iTunes to resume (although it won't sync the device anymore until it restarts). Upon further investigation, I looked at which files AppleMobileDeviceHelper was using, and found the "syncservices.log" log in ~/Library/Logs/Sync/. Looking at the log, it was clear something wrong was going on since the following lines were being added to it every few seconds:
2012-01-25 22:51:21:640|SyncServer|40031|0x10b016e50|Logging|Info| Logging initialized, engine version 673.3 : log level 3
2012-01-25 22:51:21:645|SyncServer|40031|0x10b016e50|SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 786713006080 bytes free in Robert.
2012-01-25 22:51:22:339|AppleMobileDeviceHelper|36432|0x35de40|Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
2012-01-25 22:51:22:876|AppleMobileDeviceHelper|36662|0x388730|Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
I couldn't find a process called "SyncServer", I'm guessing it failed to start due to being unable to start SQLite, which is why ApplyMobileDeviceHelper is presumably unable to connect to it, just after. The SQLite error complains of apparently not having enough space, although as you can see I have over 780GB free, and there's plenty of free space on my iPhone, too.
Does anyone have any idea why these errors might be happening? I've seen people report similar issues (and that iTunes normally resolves itself after a while), although it's not fixed it for me (as I have to do that everytime), and I've found nothing searching for the errors in that log.
Late 2008 15" MacBook Pro 2.8 Ghz, 10.7.2, iTunes 10.5.3, iPhone 4 running 5.0.1
Any help would be appreciated, thanks!
MacBook Pro, Mac OS X (10.7.2), Late 2008 15" 2.8 GHz