Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__NSBundleOverreleased #19

Open
shnhrrsn opened this issue Feb 9, 2014 · 1 comment
Open

__NSBundleOverreleased #19

shnhrrsn opened this issue Feb 9, 2014 · 1 comment

Comments

@shnhrrsn
Copy link

shnhrrsn commented Feb 9, 2014

I keep getting this error whenever I have multiple documents auto-open on app launch using ARC:

Warning: NSBundle NSBundle </Users/Shaun/Library/Developer/Xcode/DerivedData/redacted-edafojbpmvjdhtddphiimoumkrow/Build/Products/Debug/redacted/Contents/Resources/redacted.momd> (not yet loaded) was released too many times. For compatibility, it will not be deallocated, but this may change in the future. Set a breakpoint on __NSBundleOverreleased() to debug

When I set the breakpoint, it triggers on line 128 of BSManagedDocument.m:

_managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:[NSArray arrayWithObject:[NSBundle mainBundle]]];
@mikeabdullah
Copy link
Collaborator

Hi Shaun, that is weird :(

Can you repro it just by opening multiple documents at any time, or is it only through state restoration?

Can I assume you haven't overridden -managedObjectModel in your app?

Worth asking I guess, what deployment target and SDK are you using?

Come to look it, what if you change that line of code to:

_managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];

Does that make any difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants