2010-08-03 6 views
1

"managedobjectcontext save : nil"작업을 호출 할 때마다 위임 메서드에서 모든 단일 활동을 주석 처리 했어도 응용 프로그램이 다음과 같이 여러 가지 오류로 인해 충돌합니다. (릴리스 문제하지만. 내가 EXC_BAD_ACCESS 어디서 확실하지)NSFetchedResultsController가 모든 저장 작업에서 충돌 함

#0 0x02813a93 in objc_msgSend 
#1 0xbfffd5b0 in ?? 
#2 0x0236c1b2 in -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] 
#3 0x023721bc in -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] 
#4 0x00024c1d in _nsnote_callback 
#5 0x02690cf9 in __CFXNotificationPost_old 
#6 0x0261011a in _CFXNotificationPostNotification 
#7 0x0001a7c2 in -[NSNotificationCenter postNotificationName:object:userInfo:] 
#8 0x022ae519 in -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] 
#9 0x0231db33 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] 
#10 0x02290f78 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] 
#11 0x022caa15 in -[NSManagedObjectContext save:] 
#12 0x00005147 in -[PostsViewController saveMOC:] at PostsViewController.m:254 
#13 0x00039e9a in __NSThreadPerformPerform 
#14 0x02699d7f in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 
#15 0x025f81dd in __CFRunLoopDoSources0 
#16 0x025f77c6 in __CFRunLoopRun 
#17 0x025f7280 in CFRunLoopRunSpecific 
#18 0x025f71a1 in CFRunLoopRunInMode 
#19 0x02f1d2c8 in GSEventRunModal 
#20 0x02f1d38d in GSEventRun 
#21 0x002c8b58 in UIApplicationMain 
#22 0x000028c0 in main at main.m:14 

답변

2

당신이 가장 가능성이 컨텍스트를 저장할 때 FRC를 변경하는 속성을 가지고있다. 속성이 sectionNameKeyPath 인 경우 저장시 속성을 변경하면이 문제가 발생할 수 있습니다.