• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: core data hanging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data hanging


  • Subject: Re: core data hanging
  • From: Ron Lue-Sang <email@hidden>
  • Date: Tue, 26 Aug 2008 19:39:09 -0700

Are there any other threads doing anything?
This smells like a deadlock to me.

Can you open the same file using the plain CoreData (non document based) app?

On Aug 25, 2008, at 8:49 PM, Chris Idou wrote:

I've got a really simple application of core data. It's a document based application, but its not a NSPersistentDocument, because I have an opaque bundle/directory data format and the core data is only a tiny part of it.

Its hanging on the call to:

persistentStore = [persistentStoreCoordinator addPersistentStoreWithType:NSXMLStoreType configuration:nil URL:url options:nil error:&error];

with 100% CPU usage.

I did a sample in the activity monitor:

1201 Thread_2503
1201 start
1201 main
1201 NSApplicationMain
1201 -[NSApplication run]
1201 -[NSApplication sendEvent:]
1201 -[NSApplication _handleKeyEquivalent:]
1201 -[NSMenu performKeyEquivalent:]
1201 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
1201 -[NSMenu performActionForItemAtIndex:]
1201 -[NSApplication sendAction:to:from:]
1201 -[AutomatonAppDelegate openNotesWindow:]
1201 -[NSDocumentController (DocumentControllerUtil) openDocument:ofType:display:error:]
1201 -[NSDocumentController openDocumentWithContentsOfURL:display:error:]
1201 -[NSDocumentController makeDocumentWithContentsOfURL:ofType:error:]
1201 -[NSDocument initWithContentsOfURL:ofType:error:]
1201 -[NotesDocument readFromURL:ofType:error:]
1201 -[NotesDocument managedObjectContext]
1201 -[NotesDocument persistentStoreCoordinator]
1201 - [NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]
1201 -[NSXMLObjectStore initWithPersistentStoreCoordinator:configurationName:URL:options:]
1201 -[NSXMLDocument initWithContentsOfURL:options:error:]
1201 + [NSURLConnection sendSynchronousRequest:returningResponse:error:]
1201 createCFRequest
1201 + [NSHTTPCookieStorage sharedHTTPCookieStorage]
1201 pthread_once
1201 initSharedCookieManager
1201 - [NSHTTPCookieStorage(NSInternal) _internalInit]
1201 - [NSHTTPCookieStorageInternal init]
1201 + [NSURLConnection(NSURLConnectionPrivate) resourceLoaderRunLoop]
1201 pthread_once
1201 NSURLConnectionInit
1201 __semwait_signal
1201 __semwait_signal



Why on earth there would be mentions of HTTP and Cookies for a file:// URL has me puzzled. I'm also puzzled how my tiny bit of code, which is basically like the core data sample app, it just saves the managedObjectContext in saveToURL:.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


--------------------------
RONZILLA



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >core data hanging (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: xcode: how to not Go with Instruments
  • Next by Date: How to create rounded view for iPhone App
  • Previous by thread: core data hanging
  • Next by thread: re: core data hanging
  • Index(es):
    • Date
    • Thread