ios - Core data crash add object to relation -
i have problem core data crashing app. happens when i'm trying add object relationship.
homuser *artist = [homuser getuserwithdictionary:artistdict incontext:context]; [self addmartistsobject:artist]; * terminating app due uncaught exception 'nsrangeexception', reason: '* -[__nsarraym objectatindex:]: index 25 beyond bounds [0 .. 24]'
the number 25 represents how many entities in core data model. call stack. goes far framework cannot debug lot. didn't happened since always. i've checked , rechecked core data model. have ideea can wrong?
0 corefoundation 0x02c0e02e __exceptionpreprocess + 206 1 libobjc.a.dylib 0x02a33e7e objc_exception_throw + 44 2 corefoundation 0x02bb00b4 -[__nsarraym objectatindex:] + 196 3 coredata 0x0122ee2a -[nsmanagedobject(_nsinternalmethods) _includeobject:intopropertywithkey:andindex:] + 90 4 coredata 0x0122ed0e -[nsmanagedobject(_nsinternalmethods) _maintaininverserelationship:forproperty:olddestination:newdestination:] + 590 5 coredata 0x0122fcb1 -[nsmanagedobject(_nsinternalmethods) _maintaininverserelationship:forproperty:forchange:onset:] + 273 6 coredata 0x0122e956 -[nsmanagedobject(_nsinternalmethods) _didchangevalue:forrelationship:named:withinverse:] + 1878 7 coredata 0x0122e1f0 -[nsmanagedobjectcontext observevalueforkeypath:ofobject:change:context:] + 400 8 foundation 0x021a6ce7 nskeyvaluenotifyobserver + 357 9 foundation 0x021c03f4 nskeyvaluedidchange + 456 10 foundation 0x022239c3 -[nsobject(nskeyvalueobservernotification) didchangevalueforkey:withsetmutation:usingobjects:] + 131 11 coredata 0x0122fb58 _pf_managedobject_didchangevalueforkeywithsetmutation + 72 12 coredata 0x012a77e6 _sharedimpl_addobjecttoset_core + 310 13 ??? 0x0bcf1379 0x0 + 198120313 14 product name 0x000acb39 -[homevent initwithtitle:withartist:withplace:withwhen:withdescription:andwithoptionslink:andwithlinkwith:andwithfriends:insertintocontext:] + 1161 15 product name 0x002315a3 -[homaddeventvcviewcontroller postpressed:] + 8771 16 libobjc.a.dylib 0x02a47705 -[nsobject performselector:withobject:withobject:] + 77 17 uikit 0x016b7920 -[uiapplication sendaction:to:from:forevent:] + 96 18 uikit 0x016b78b8 -[uiapplication sendaction:totarget:fromsender:forevent:] + 61 19 uikit 0x01778671 -[uicontrol sendaction:to:forevent:] + 66 20 uikit 0x01778bcf -[uicontrol(internal) _sendactionsforevents:withevent:] + 578 21 uikit 0x01777d38 -[uicontrol touchesended:withevent:] + 546 22 uikit 0x0197b213 _uigesturerecognizerupdate + 7407 23 corefoundation 0x02bd6afe __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 30 24 corefoundation 0x02bd6a3d __cfrunloopdoobservers + 381 25 corefoundation 0x02bb47c2 __cfrunlooprun + 1106 26 corefoundation 0x02bb3f44 cfrunlooprunspecific + 276 27 corefoundation 0x02bb3e1b cfrunloopruninmode + 123 28 graphicsservices 0x038247e3 gseventrunmodal + 88 29 graphicsservices 0x03824668 gseventrun + 104 30 uikit 0x016b465c uiapplicationmain + 1211
Comments
Post a Comment