magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

CoreData could not fulfill a fault crash and method - (NSManagedObject *)objectWithID:(NSManagedObjectID *)objectID; #1302

Closed crespoxiao closed 7 years ago

crespoxiao commented 7 years ago

hi there, I got a core data crash on ios8 ,please check http://crashes.to/s/8c100d267af I search the crash reason "CoreData could not fulfill a fault" then find a link: http://www.cnblogs.com/breezemist/p/4654448.html
it seems the method - (NSManagedObject )objectWithID:(NSManagedObjectID )objectID; is not safe ,MagicalRecord (2.3.2) the file NSManagedObjectContext+MagicalRecord.m used this method, could it leads crash ? could this code be optimized ? I know it hard to say, there are many reasons. https://github.com/magicalpanda/MagicalRecord/issues/945 http://stackoverflow.com/questions/17037785/how-to-find-a-coredata-could-not-fulfill-a-fault-exception waiting for your reply, thanks !