I occasionally get this error when saving to core data. I cannot manage to recreate it.
Does anyone have any experience with this error;
CoreData: error: NULL _cd_rawData but the object is not being turned into a fault
?
This happens when the object's context does not belong to the current thread. One of many ways that mistake can manifest itself.
When the crash occurs do the following:
NSManagedObjectContext
mainQueueConcurrencyType
then it needs to be on the main thread otherwise on the background threads.p context.concurrencyType
In the sample command above the NSManagedObjectContext
was stored in the variable context
(NSManagedObjectContextConcurrencyType) $R4 = mainQueueConcurrencyType
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With