Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data hanging



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.