iOS - “Too Many Contexts” error?

*爱你&永不变心* 提交于 2019-12-01 12:10:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!