iOS - “太多上下文”错误? [英] iOS - "Too Many Contexts" error?
问题描述
我的应用程序(正在开发,iOS 5.1)偶尔会崩溃并显示以下消息:
My App (under development, iOS 5.1) occasionally crashes with the following message:
由于未捕获的异常'NSInternalInconsistencyException'而终止应用,原因:'太多的背景。 contextList中没有空格。'
通过Google搜索此消息会返回零结果。
Googling this message returns zero results.
我正在使用从AppDelegate单例中获取的单个NSManagedObjectContext,简单明了,没有技巧。
I'm using a single NSManagedObjectContext taken from the AppDelegate singleton, simple and straightforward, no tricks.
任何想法?
推荐答案
你可能在构造过程中有一些对象重复出现,可能在 alloc
或 init
。
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...
这篇关于iOS - “太多上下文”错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!