Re: Advice for error "NSBundle was released too many times"
Re: Advice for error "NSBundle was released too many times"
- Subject: Re: Advice for error "NSBundle was released too many times"
- From: Mike Abdullah <email@hidden>
- Date: Tue, 22 Apr 2014 09:25:13 +0100
On 22 Apr 2014, at 09:10, Colas <email@hidden> wrote:
> Dear cocoa-dev,
>
> I have the following error in my application.
> Warning: NSBundle NSBundle </System/Library/PrivateFrameworks/CorePDF.framework> (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
>
> It appeared when I added a new class in my application that deals with PDFs. Before that, I had another class which deals with PDFs and never had this error.
>
> I tried to pu the #import <Quartz/Quartz/h> in the .pch instead of each of the classes, but the error is still there.
>
> This error is not raised every time. I would say that it happened about 50% of times.
>
> I put a breakpoint, as advised but I don’t know what to do once I am at the concerned assembly line.
>
> Foundation`__NSBundleOverreleased:
> 0x7fff922031a5: pushq %rbp
> 0x7fff922031a6: movq %rsp, %rbp
> 0x7fff922031a9: testq %rdi, %rdi
> 0x7fff922031ac: je 0x7fff922031b0 ; __NSBundleOverreleased + 11
> 0x7fff922031ae: popq %rbp
> 0x7fff922031af: ret
> 0x7fff922031b0: leaq -337650111(%rip), %rdi ; @"' '"
> 0x7fff922031b7: xorb %al, %al
> 0x7fff922031b9: popq %rbp
> 0x7fff922031ba: jmpq 0x7fff9217bc04 ; NSLog
>
>
> Here is a link to a image of the stack : http://s21.postimg.org/jm03t68kn/Capture_d_cran_2014_04_21_16_08_56.png
>
> If you have any guess on what’s going on and/or any advice, THanKS ;-) !!!
Fire up Instruments, probably with the Zombies tool. It should be able to show exactly when a bundle gets released and retained so you can hunt down the culprit.
_______________________________________________
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