Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5935295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:14:02+00:00 2026-05-22T15:14:02+00:00

I got very weird issue with managedObjectContext:save. It hasn’t happened at the first time

  • 0

I got very weird issue with managedObjectContext:save. It hasn’t happened at the first time I save the context, it only happens at some point of my program. Could you help me to know why it happened and where should I should find a bug in my code? Thanks.

Here is the log:

-[NSCFNumber UTF8String]: unrecognized selector sent to instance 0x5a64110
2011-05-19 16:02:43.235 DMC to Go[98212:40b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFNumber UTF8String]: unrecognized selector sent to instance 0x5a64110'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x015d85a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x0172c313 objc_exception_throw + 44
    2   CoreFoundation                      0x015da0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x01549966 ___forwarding___ + 966
    4   CoreFoundation                      0x01549522 _CF_forwarding_prep_0 + 50
    5   CoreData                            0x002f870f -[NSSQLiteConnection execute] + 1231
    6   CoreData                            0x0034aebd -[NSSQLiteConnection updateRow:] + 365
    7   CoreData                            0x00349e64 -[NSSQLConnection performAdapterOperations:] + 180
    8   CoreData                            0x00349b0e -[NSSQLCore _performChangesWithAdapterOps:] + 494
    9   CoreData                            0x003485ea -[NSSQLCore performChanges] + 410
    10  CoreData                            0x00342038 -[NSSQLCore saveChanges:] + 216
    11  CoreData                            0x00300199 -[NSSQLCore executeRequest:withContext:error:] + 409
    12  CoreData                            0x003b070b -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 3691
    13  CoreData                            0x00338948 -[NSManagedObjectContext save:] + 712
    14  DMC to Go                           0x0000313b -[dmcIpadAppDelegate saveManagedObjectChanges] + 107
    15  DMC to Go                           0x00020dc5 +[DmcIpadAppDelegate saveManagedObjectChanges] + 117
    16  DMC to Go                           0x00027883 -[DownloadFileService observeValueForKeyPath:ofObject:change:context:] + 867
    17  Foundation                          0x00fae1e4 NSKeyValueNotifyObserver + 361
    18  Foundation                          0x00fadca6 NSKeyValueDidChange + 384
    19  Foundation                          0x00f943e2 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 123
    20  DMC to Go                           0x0002c674 -[DownloadManager connectionDidFinishLoading:] + 836
    21  Foundation                          0x00fd4112 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 108
    22  Foundation                          0x00fd406b _NSURLConnectionDidFinishLoading + 133
    23  CFNetwork                           0x01dd948e _ZN19URLConnectionClient23_clientDidFinishLoadingEPNS_26ClientConnectionEventQueueE + 220
    24  CFNetwork                           0x01ea46e1 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 293
    25  CFNetwork                           0x01dcfc80 _ZN19URLConnectionClient13processEventsEv + 100
    26  CFNetwork                           0x01dcfacf _ZN17MultiplexerSource7performEv + 251
    27  CoreFoundation                      0x015b98ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    28  CoreFoundation                      0x0151788b __CFRunLoopDoSources0 + 571
    29  CoreFoundation                      0x01516d86 __CFRunLoopRun + 470
    30  CoreFoundation                      0x01516840 CFRunLoopRunSpecific + 208
    31  CoreFoundation                      0x01516761 CFRunLoopRunInMode + 97
    32  GraphicsServices                    0x0202a1c4 GSEventRunModal + 217
    33  GraphicsServices                    0x0202a289 GSEventRun + 115
    34  UIKit                               0x00838c93 UIApplicationMain + 1160
    35  DMC to Go                           0x00001f59 main + 121
    36  DMC to Go                           0x00001ed5 start + 53
    37  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'

Current language: auto; currently objective-c

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:14:03+00:00Added an answer on May 22, 2026 at 3:14 pm
    1. Make sure you have no warnings
    2. Put breakpoints in your code where you think you are setting an NSString on your object
    3. And/Or NSLog %@ the class of NSString properties of your core data objects and make sure it is some variation of an NSString. (NSLog(@"%@", [obj.property class]);)

    What is happening is something that you are saving has an NSNumber object in place of an NSString. Since NSNumber does not respond to UTF8String your application is crashing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Last time I asked about the reverse process , and got some very efficient
In another question I posted yesterday, I got very good advice on how a
I got a very similar error to the one below: How can I fix
I've got a very simple WPF UserControl that looks like this: namespace MyUserControl {
I've got a very small standalone vb.net app that gets run automatically. Every now
I've got a very simple WPF UserControl that looks like this: namespace WpfControlLibrary1 {
I've got a very simplistic game set up on the iPhone. Things move around,
I got a core that looks very different from the ones I usually get
I've got an application that is very graphics intensive and built on DirectX and
We've got a WinForms app written in C# that has a very custom GUI.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.