Questions tagged [nszombie]

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counting.

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counted objects. In particular, it helps you track down objects that are over-released by recording a history of all -retain and -release messages sent to all objects created during execution.

When NSZombie is enabled, unbalanced -retain and -release messages cause the application to immediately halt and break into the debugger. This allows you to examine the problematic message to determine if there is an extraneous -release (or -autorelease), or a missing -retain.

Resources

223 questions
0
votes
3 answers

Message sent to deallocated instance - analyzed with zombie

I get a crash in my app with the message " ... sent to deallocated instance at the address ...". So, I analyzed the app with zombie instruments and I've presented below a fragment of code which causes the crash. I haven't found yet a scenario which…
dorin
  • 873
  • 2
  • 15
  • 34
0
votes
2 answers

Cocoa Zombies - Identifying source of message

I have turned on "Enable Zombie Objects", and I am getting the following: 2012-08-06 13:43:05.452 MyApp[234:707] *** -[MyViewController respondsToSelector:]: message sent to deallocated instance 0x97a6c50 I would like to know: is there an easy way…
Emil
  • 600
  • 4
  • 11
0
votes
1 answer

IBOutlet is somehow a NSZombie?

This is an OS X application. I am designing a custom sheet. Within my XIB file I have the sheet's window and a subclass of NSViewController which is responsible for controlling the views within the window/sheet. The owner of the XIB is another…
Carter
  • 4,738
  • 2
  • 22
  • 24
0
votes
1 answer

Early dealloc call over-releasing object iOS

My app is crashing due to an over-released object and I have narrowed it down to the early call of dealloc in a custom class. This causes a crash attributed to an NSMutableArray that is using the custom class listed below: #import…
Jace
  • 145
  • 2
  • 11
0
votes
1 answer

EXC_BAD_ACCESS at MFMessageController

I have got this error when I press send button from the message composer sheet, my piece of code is this: -(void)ComposerSheet { picker = [[MFMessageComposeViewController alloc] init]; picker.messageComposeDelegate = self; [self…
0
votes
1 answer

Strange behaviour with Zombie Objects for a project that mixes ARC and NON-ARC classes: EXC_BAD_ACCESS

I have a big problem in my application and I'm wondering how to resolve it. I've searched a lot in SO but I cannot find a valid solution. Here the scenario I'm working on. I have a NON-ARC application and I'm using a bunch of ARC classes within it.…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
1 answer

UITableView ARC issue

Right now I am making an app that uses a UITableView, but I have been struggling with this issue for 3 days now and I can't figure it out. In the .h File, I subscribe to both the tableview methods. Like this: #import #import…
user1320885
  • 135
  • 1
  • 15
-1
votes
1 answer

In what situation will a NSZombie be created in an ARC environment?

In what situation will a NSZombie be created in an ARC environment? That is, in ARC environment, how can an object be accessed or over-released after released?
allenlinli
  • 2,066
  • 3
  • 27
  • 49
-1
votes
1 answer

Crashing MapKit

I am currently working on a MapKit app, which puts custom annotations (locations) on a MapKit MapView. However, something is going wrong with placing the pins. The pins are in fact displayed on the map and such, but the app kept crashing. So I ran…
Jamie Coenen
  • 75
  • 1
  • 10
-1
votes
1 answer

Objective-C weak reference zombie

I'm trying to create a zombie object to detect sending messages to a deallocated object. Say i have a strong property object A with a weak reference to object B. When B is deallocated my weak reference becomes nil but calling a method e.g [obj1.obj2…
stefos
  • 1,235
  • 1
  • 10
  • 18
-1
votes
2 answers

Prematurely deallocated view controller

I am drawing a grid views and experiencing an EXC_BAD_ACCESS error when UIButton fires off a selector. Turning on zombie objects gives me the message: *** -[FooViewController performSelector:withObject:withObject:]: message sent to deallocated…
-2
votes
1 answer

IBOutlet is NIL when using Forward Declarations to call a class?

I have been having huge issues with this, so I drew a diagram... alt text http://tomsfil.es/7bdead0a.png I successfully get to the CLASS A - METHOD B but at that point, IBOutlet Z is Nil? :( Any ideas? note Somebody told me it might be an…
tarnfeld
  • 25,992
  • 41
  • 111
  • 146
-5
votes
2 answers

unrecognized selector sent to instance - i have no selector named that

Yes, one more of these, but this one makes no sense. It claims that: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIRoundedRectButton astroidImage]: unrecognized selector sent to instance 0x15a2a0' And it…
Seerex
  • 591
  • 1
  • 9
  • 21
1 2 3
14
15