Questions tagged [nszombieenabled]

NSZombieEnabled is an Apple OS-specific (OSX and iOS) boolean reference to whether the zombie process has been enabled. See NSZombie for information about the Apple OS-specific zombie process.

NSZombieEnabled is an Apple OS-specific (OSX and iOS) boolean reference to whether the zombie process has been enabled. See NSZombie for information about the Apple OS-specific zombie process.

In Xcode 4, this feature can be activated by choosing edit scheme, then choosing the arguments tab, then adding NSZombieEnabled and the value YES to the Environment Variables section.

42 questions
35
votes
5 answers

Why is object not dealloc'ed when using ARC + NSZombieEnabled

I converted my app to ARC and noticed that an object alloc'ed in one of my view controllers was not being dealloc'ed when that view controller was dealloc'ed. It took a while to figure out why. I have Enable Zombie Objects on for my project while…
XJones
  • 21,959
  • 10
  • 67
  • 82
13
votes
1 answer

Xcode Instruments - Zombies - what am I looking for?

When I run Project/Profile in Xcode and choose "Zombies", the app runs in the simulator with "NSZombie detection" enabled. But what should I be looking for to tell me that there is a problem? All I see is the Allocation instrument running and the…
soleil
  • 12,133
  • 33
  • 112
  • 183
10
votes
1 answer

Parse saveInBackgroundWithBlock crashes on iOS

I am adding some data into my parse class (table) successfully. After saving is successfully completed (I can see the data on website), my app crashes without leaving any message on console. I tried to get a message by using "Enable Zombie Objects"…
JustWork
  • 1,944
  • 3
  • 22
  • 34
9
votes
1 answer

How to turn off NSZombieEnabled in Xcode 4

I have just migrated to Xcode 4 and i had zombie activated in Xcode 3 for my app. I used the following method: Go to Project -> Edit Active Executable Click Arguments Click + in the "Variables to be set in the environment" section Enter…
PeterK
  • 4,243
  • 4
  • 44
  • 74
7
votes
2 answers

Attempting to create USE_BLOCK_IN_FRAME ... EXC_BAD_ACCESS with NSFetchedResultsController

This is an update to my problem. I am receiving this warning now when the program aborts. warning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame. I can't find much information on what this means. This has me…
7
votes
3 answers

How to set environment variables in iPhone executable using XCode 4?

Since switching to XCode 4, I have been having issues finding how to set environment variables (such a NSZombies) in iPhone executables. In XCode 3, you could right-click on your .app file, select "Get Info" and set environment variables. But it…
Jason
  • 14,517
  • 25
  • 92
  • 153
5
votes
2 answers

Objective-c example code that intentionally messages a deallocated object

I'm new to objective-c and xcode and an app I'm currently writing is receiving the infamous EXC_BAD_ACCESS error. Almost everybody recommends starting to solve the problem using NSZombies. I think I have NSZombies working but xcode isn't giving me…
Alex Crist
  • 1,059
  • 2
  • 12
  • 22
4
votes
1 answer

Enable NSZombieEnabled for Archived Release Build

When I run with a connected iPad, I can enable NSZombieEnabled via "Enable Zombie Objects" or by passing NSZombieEnabled as an Environment Variable. However, I cannot seem to produce builds (i.e., the kind you archive and distribute ad-hoc) with…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
4
votes
3 answers

How do you enable NSZombie in Instruments of Xcode 4.1 under Lion?

This is ONLY regarding the new Xcode 4.1, specifically running on Lion. How do you enable NSZombie in Instruments ? It is no longer in Allocations in the (i) icon under Launch Configuration as in Xcode 4.0. Nor is there a Library entry called…
Ric
  • 796
  • 12
  • 28
4
votes
1 answer

iOS: Nonexistent Pointer is Crashing App

When I open a specific Storyboard scene, my app crashes with the error: "incorrect checksum for freed object - object was probably modified after being freed". I've also got some "EXC_BAD_ACCESS" crashes going on, it's usually one or the other. I…
Henry F
  • 4,960
  • 11
  • 55
  • 98
4
votes
2 answers

Why am I seeing all these leaks when NSZombie is enabled?

I am nearing completion on my first app and I'm suddenly seeing that the app is causing memory leaks. I have found a few leaks and fixed them. Now there are no leaks but to my surprise when NSZombie is enabled it is showing more than 4000 leaks…
vijaykumarg
  • 181
  • 1
  • 16
3
votes
2 answers

Should NSZombieEnabled be turned off for released app or not?

With NSZombieEnabled turned on it will provide some guard against the EXC_BAD_ACCESS issues happening at runtime. I am doing dual-diligence to make sure no/little memory leaks, but I might over releasing so having NSZombieEnabled turned on would…
tom
  • 14,273
  • 19
  • 65
  • 124
2
votes
1 answer

NSZombieEnabled FIXES my app?

When I push a certain view controller, then go pop it and then repeat a seemingly random number of times the app eventually crashes with the error EXC_BAD_ACCESS. This I can reliably replicate EVERY TIME. It happens mostly the second time I pop the…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
2
votes
0 answers

App crash logs not generated in device

My app is behaving in a similar way has NSZombie enabled.it is crashing but crash logs are not generated. I have cross checked many times Nszombie is not enabled.So pls let me know how to fix this issue. To be more exact app gets hanged / frozen…
Agarathi
  • 148
  • 1
  • 14
2
votes
2 answers

EXC_BAD_ACCESS iOS6 GM UITableTextAccessibilityElement

i'm starting to update my app, which has been available and working all the way from iOS 2.2.1 to 5 (I still manual memory management on it, if that matters). Now, when I run it on iOS6 GM I'm getting EXC_BAD_ACCESS, when I run the project with…
David Homes
  • 2,725
  • 8
  • 33
  • 53
1
2 3