[Adium-devl] Threaded preferences saving failure?
Zachary West
zacwest at gmail.com
Sat Apr 11 23:16:09 UTC 2009
2009/4/11 Evan Schoenberg <evan.s at dreskin.net>:
> It looks like this has already been noted and loggified... I'm not sure why
> it can happen. Does anyone already have a theory about it?
> 2009-04-11 19:11:13.690 Adium[88303:10b] Attempted to detach to save for
> <AIPreferenceContainer 0x7c7310: Group Last Seen, object
> <AIListContact:1e559a90 Facebook.4703149>> [ByObjectPrefs], but info was
> nil.
> 2009-04-11 19:11:23.733 Adium[88303:bdb93] *** Assertion failure in
> -[NSCFDictionary writeToPath:withName:],
> /Users/evands/adium/Frameworks/AIUtilities
> Framework/Source/AIDictionaryAdditions.m:130
> 2009-04-11 19:11:23.734 Adium[88303:bdb93] An uncaught exception was raised
> 2009-04-11 19:11:23.735 Adium[88303:bdb93] Invalid parameter not satisfying:
> path != nil
> 2009-04-11 19:11:23.736 Adium[88303:bdb93] *** Terminating app due to
> uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid
> parameter not satisfying: path != nil'
My guess was that we were trying to save after clearing the cache
because (due to a race condition) we didn't realize we had something
waiting to use the cache. However, that doesn't seem to be the case.
The timing just seems off: we save 10 seconds after changing, but
clear after 120 seconds. I don't really see how it's being hit,
something somewhere is being bad.
In either case, the userInfo for the NSTimer doing the detached save
is being passed as nil, so it ends up saving badly. *myGlobalPrefs is
nil in the preference container.
Ticket is: http://trac.adiumx.com/ticket/11813
Zac
More information about the devel
mailing list