"Wrong thread buddy" warning
itsthejb opened this issue · 2 comments
Hi Oliver,
Thanks again for all your prompt and helpful input. Much appreciated!
Quick question here: Since adapting my rest suite to use the full SLRestful stack, I'm running into intermittent threading issues and the "wrong thread buddy" warning. From reading the code this seems to warn that the managed object has moved to a different MOC during a property setting operation and thus something unsafe is taking place.
I think I know the source of this problem in my own code but if you can confirm this or have any useful input I would be most appreciative.
Thanks again!
The assertion kicks in when you access a NSManagedObject on a thread that is not the thread of its NSManagedObjectContext. This is not supported by CoreData and can result in very hard to track crashes or bugs, hence the assertion.
Thanks, Oliver. Think I know what is happening here, problem at my end.