问题
My App (under development, iOS 5.1) occasionally crashes with the following message:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Too many contexts. No space in contextList.'
Googling this message returns zero results.
I'm using a single NSManagedObjectContext taken from the AppDelegate singleton, simple and straightforward, no tricks.
Any ideas?
回答1:
You've probably got some object recursing into itself during construction, probably in alloc
or init
.
You can also set an exception breakpoint for "All Exceptions" and see what gets caught...
来源:https://stackoverflow.com/questions/10555523/ios-too-many-contexts-error