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
1 answer

Crash after a popToRootViewControllerAnimated

I have a crash when trying to switch to another VC. Here is the structure: TabBarController [Home, Tab2, Result tab] from these tabs, I can push a new viewController called addVC which contains a UITextField. What I want to do, is to be able to…
Vico
  • 1,696
  • 1
  • 24
  • 57
0
votes
0 answers

zombie not showing up in instrumentation on xcode 5

Enabled NSZombieEnable Run App in ios 7 sim Went to a specific operation that crashes Boom -[Not A Type _cfTypeID]: message sent to deallocated instance 0xe1852f80 I fire up instrument Choose Zombie from the memory options do the same thing in…
Mehdi
  • 772
  • 7
  • 16
0
votes
0 answers

Weird NSZombie error in nsmutuablearray

I had faced a weird error for a few days ago. Luckly, i had solved this error about in 4-5 day. However, i just wonder that the error why happen. First of all, i will describe the situation with same sample of code. @interface SampleViewController…
0
votes
1 answer

Custom CollectionView layout - message was sent to deallocated NSDictionary

I'm having trouble switching between two subclassed CollectionViewFlowLayouts. I call the following method in my collectionViewController: header: @property (nonatomic, strong) PortraitFlowLayout *portraitFlowLayout; @property (nonatomic, strong)…
Chris
  • 7,830
  • 6
  • 38
  • 72
0
votes
1 answer

Tracking zombie in UINavigationController and UITableViewController

I am trying to track down a zombie, I have run the application with NSZombies enabled. A message is being send to a deallocated object in BookEventViewController (code below). the crash happens when moving from through the UITabBar buttons.…
Mark Gilchrist
  • 1,972
  • 3
  • 24
  • 44
0
votes
1 answer

EXC_BAD_ACCESS (code 2) when calling 'presentViewController'

I'm really stumped here. _vc = [[VLCKitViewControlleriPhone alloc]initWithNibName:@"VLCKitViewControlleriPhone" bundle:nil]; _vc.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:_vc animated:YES…
Joseph Toronto
  • 1,882
  • 1
  • 15
  • 29
0
votes
1 answer

gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer crashing

I have a gesture recognizer on my view controller which I use to slide in/out the navigation bar. Unfortunately there is a bad NSZombie that makes the whole app crash when I go swipe to go to the previous controller. It's very difficult to track…
ctatti
  • 170
  • 1
  • 1
  • 11
0
votes
1 answer

NSLocalizedStringFromTable crash

I create a UIActionSheet with button texts from a txts file. After I set NSZombieEnabled, NSDebuEnabled to YES and NSDeallocateZombies to NO, I get a breakpoint with the message: *** -[CFString isEqual:]: message sent to deallocated instance…
Mihai
  • 1
  • 3
0
votes
0 answers

What is restoreLevelAfterRunningModal and why is it being sent to my destroyed NSWindow?

I have a modal window, which was causing problems when destroyed. I learned how to use Zombies and I got this error message:-[NSWindow _restoreLevelAfterRunningModal]: message sent to deallocated instance 0x6000001f9500 The address listed is the…
0
votes
2 answers

Release call twice with the same object NSNotificationCenter

I want to pass an object in view A to view B, that's work, but when I repeat this method, I have a crash (Thread 1: EXC_BREAKPOINT). I initialize in my view B as : - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { …
0
votes
1 answer

EXC_BAD_ACCESS, Using NSZombies to track down

I have got a EXC_BAD_ACCESS error while dismissing a view controller on device. But strangely this does not happen in simulator. The Question: I am using the Instruments and NSZombies enabled and here is the report at the error. I am not getting…
BangOperator
  • 4,377
  • 2
  • 24
  • 38
0
votes
1 answer

Using NSZombies for large periods of time in an app that actually needs to release lots of memory frequently

There is an occasional EXC_BAD_ACCESS error in my game using cocos2d-iphone. When it happens, Xcode does either of these: Show me the main.m file, with no stack backtrace etc. Show me a part in cocos2d-iphone's framework that handles touches…
Saturn
  • 17,888
  • 49
  • 145
  • 271
0
votes
1 answer

GDB dies because of NSZombieEnabled

I was having some problems with memory (exc-bad-access) in Objective-C, XCode, for iPhone, so I searched a little bit and found about the (awesome) NSZombieEnabled. Everyone outhere is just explaining how cool this is ... but it doesn't work for me…
0
votes
3 answers

NSZombie on a distributed application

Is there any danger in compiling an application for distribution with NSZombie still enabled? I generally leave it turned on for all of my apps while developing because of how useful it is, but I don't understand the full ramifications and potential…
mjdth
  • 6,536
  • 6
  • 37
  • 44
0
votes
2 answers

NSZombie exception on NSEnumerator::nextObject (or, does nextObject touch its query?)

Okay, I've been coding by trade for 12 years, but I'm relatively inexperienced with Obj-C - especially memory management - and I'm getting an error that surprises me. Here's the code block: // self.contained is an NSMutableSet NSEnumerator…
S'pht'Kr
  • 2,809
  • 1
  • 24
  • 43