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
0 answers

App crash NSDate message sent to deallocated instance?

When I launch my app it crashes and I'm getting this error : and after enabling Zombies object I get this error in log : -[__NSDate dealloc]: message sent to deallocated instance 0x16765ce0 Update : I used Profile (Cmd + I) and i choosed NSZombie…
YouSS
  • 560
  • 7
  • 20
0
votes
2 answers

Somehow my singleton properties are getting released

I have a singleton object called PoolManager that loads and saves some data in a plist. Throughout my program when something needs to know about my pool, it asks the [PoolManager sharedPoolManager] for it's properties. I have a single view that's…
Steve
  • 6,332
  • 11
  • 41
  • 53
0
votes
1 answer

I've detected a zombie.. now what?

I have the following navigation flow in my app: View controller A is embedded in a navigation controller. A presents B modally. Right before user dismisses B, the navigation controller's view controllers are set to: [A, C] After B is dismissed, C is…
Ivan Lesko
  • 1,274
  • 13
  • 26
0
votes
2 answers

NSZombie not logging to console

I am getting an EXC_BAD_ACCESS error on one of my table views. I have tried adding the NSZombieEnabled key to the executables environment variables. It seems to be working in that the screen no longer crashes, but I do not get any messages from the…
Chris James
  • 11,571
  • 11
  • 61
  • 89
0
votes
1 answer

Inconsistant NSZombie allocation log

I'm working on old code now imported into Xcode 7. My problem is I have a random crash when changing a master/detail view controller that is pretty basic. The crash happens in main() so, not really helpful, but it's a message sent to an released…
Yann Bizeul
  • 403
  • 3
  • 10
0
votes
0 answers

Object are becoming zombies

I've two variables that are becoming zombies. They are declared like this: @interface SyncPoolController : NSObject { NSString *lastUploadQueryTime; NSString *lastDownloadQueryTime; NSString *pendingPkId; NSDate *pendingTimeStamp; …
Rashad
  • 11,057
  • 4
  • 45
  • 73
0
votes
1 answer

Analyzing NSZombie

I keep getting bad instruction or bad exception so I enabled NSZombieEnabled and the other vars needed, and I have no idea how to analyze the results. This is what was logged: ToDoWall(1634) malloc: recording malloc stacks to disk using standard…
Kurbz
  • 11,003
  • 2
  • 17
  • 12
0
votes
1 answer

Swift - Model from Core Data release and exc bad access

I have EXC_BAD_ACCESS at this line: self.accountControl.baseInfo = base When I enabled NSZombies I get this error: -[CFString release]: message sent to deallocated instance 0x1478cbc0 I found out that my problem is here: override func…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
0
votes
2 answers

NSZombieEnabled breaking working code?

I have the following method in UIImageManipulation.m: +(UIImage *)scaleImage:(UIImage *)source toSize:(CGSize)size { UIImage *scaledImage = nil; if (source != nil) { UIGraphicsBeginImageContext(size); [source…
Gordon Fontenot
  • 1,370
  • 3
  • 17
  • 38
0
votes
1 answer

Instruments crashes at zombie

I am regularly experiencing EXC_BAD_ACCESS on the same line of code, leading me to believe there is a zombie, when I run the app on a device or on a simulator. In an attempt to debug this exception, I turned on "Zombie Objects" for the scheme and…
HGDev
  • 2,203
  • 2
  • 17
  • 23
0
votes
1 answer

Why is my UILabel getting deallocated?

Im trying to track down the source of a crash. I've profiled the app to look for zombies and it appears to be related to updating the text in one of my UILabels. I don't think I am setting the text value improperly. Does this look right? This is…
0
votes
0 answers

Debugging EXC_BAD_ACCESS with NSZombie

I am getting a rather peculiar issue of EXC_BAD_ACCESS. In an inventory based app, when creating a receipt..the app works fine if the vehicle already exists in the database and crashes when a receipt with new vehicle is being viewed. I tried to run…
Gaurav Wadhwani
  • 1,352
  • 2
  • 15
  • 32
0
votes
1 answer

EXC_BAD_ACCESS from Apple Subthread

All of a sudden, I receive this EXC_BAD_ACCESS and NSZombie isn't saying anything. Anyone have an effective way to debug and eliminate this issue?
Hedam
  • 2,209
  • 27
  • 53
0
votes
2 answers

how to fix over released objects

NSZombie detected that one of the objected is over released in my app and that is causing the app to crash every time when a button is pressed. However, after inspecting the source code of where the over release happens, I couldn't see any obvious…
0
votes
2 answers

EXC_BAD_ACCESS in Swift when adding a SKSpriteNode

I am creating a little game in Swift for OS X to practise but I encountered an error unkonwn to me. It appears when I try to create two new SKSpriteNodes: var battleBegan:Bool = false let beginButton = SKSpriteNode(imageNamed: "button") var…
P1kachu
  • 1,077
  • 3
  • 11
  • 33