nothirst / TICoreDataSync

Automatic synchronization for Core Data apps, between any combination of Mac OS X and iOS: Mac to iPhone to iPad to iPod touch and back again.
https://github.com/nothirst/TICoreDataSync/wiki
807 stars 61 forks source link

Unrecognized selector crash #2

Closed tonyarnold closed 11 years ago

tonyarnold commented 12 years ago

I'm hitting a crash in TICDSDocumentSyncManager.m:

- (void)vacuumOperation:(TICDSVacuumOperation *)anOperation failedToCompleteWithError:(NSError *)anError
{
    TICDSLog(TICDSLogVerbosityErrorsOnly, @"Vacuum Operation Failed to Complete with Error: %@", anError);
    [self ti_alertDelegateWithSelector:@selector(documentSyncManager:didFailToVacuumUnneededRemoteFilesWithError:), anError];
    [self postDecreaseActivityNotification];
}

Specifically the line calling TICDSLog(). The error passed through is an instance of NSError, but calling po on the object in LLDB returns:

Printing description of anError:
(NSError *) anError = 0x0bac0780
2012-07-24 23:12:25.325 AwesomeClientApp[5427:c07] +[TICDSFileManagerBasedVacuumOperation localizedDescription]: unrecognized selector sent to class 0x30a0b4
MrRooni commented 12 years ago

Could you get me a bit more information on this one? If you enable TICDS logging by including a call to [TICDSLog setVerbosity:TICDSLogVerbosityEveryStep]; somewhere near application launch it will log everything the framework does. Just include a partial dump of that output near where the error occurs and that should help me track down where it's coming from.

tonyarnold commented 12 years ago

@MrRooni here you go: https://gist.github.com/7c0a7ca0f8cab8867247

MrRooni commented 12 years ago

Thanks Tony, that looks to be enough info to give me a good starting point for figuring out what's wrong.

tonyarnold commented 12 years ago

No worries — just let me know if you need more info.

MrRooni commented 12 years ago

Tony,

I'm not able to trace this through the code. Could you possibly email me a sample project that does this or give me instructions to reproduce it?

best, Michael